diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-08 11:11:23 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-08 17:36:52 +0000 |
commit | 06b8f299926090b63a95d43072ca09e57c5f042e (patch) | |
tree | cb870a9e21ba2216d109bd1ef7662f6a6a7576f0 /src/blockchain_db/testdb.h | |
parent | Merge pull request #5497 (diff) | |
download | monero-06b8f299926090b63a95d43072ca09e57c5f042e.tar.xz |
blockchain: keep alternative blocks in LMDB
Alternative blocks are cleared on startup unless --keep-alt-blocks
is passed on the command line
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/testdb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/blockchain_db/testdb.h b/src/blockchain_db/testdb.h index 6c97713d5..a32359c6c 100644 --- a/src/blockchain_db/testdb.h +++ b/src/blockchain_db/testdb.h @@ -155,6 +155,13 @@ public: virtual uint64_t get_max_block_size() override { return 100000000; } virtual void add_max_block_size(uint64_t sz) override { } + + virtual void add_alt_block(const crypto::hash &blkid, const cryptonote::alt_block_data_t &data, const cryptonote::blobdata &blob) override {} + virtual bool get_alt_block(const crypto::hash &blkid, alt_block_data_t *data, cryptonote::blobdata *blob) override { return false; } + virtual void remove_alt_block(const crypto::hash &blkid) override {} + virtual uint64_t get_alt_block_count() override { return 0; } + virtual void drop_alt_blocks() override {} + virtual bool for_all_alt_blocks(std::function<bool(const crypto::hash &blkid, const alt_block_data_t &data, const cryptonote::blobdata *blob)> f, bool include_blob = false) const override { return true; } }; } |