aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authorNoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com>2015-05-01 17:16:48 -0700
committerwarptangent <warptangent@inbox.com>2015-07-15 21:13:42 -0700
commitda1d3c01de23d5c6a3efa0b047de68f26f18d7af (patch)
treec3b9ad85585f717e735a90f2b645a02d3390fd4e /src/blockchain_db/lmdb/db_lmdb.h
parentMerge pull request #336 (diff)
downloadmonero-da1d3c01de23d5c6a3efa0b047de68f26f18d7af.tar.xz
Experimental BDB workaround optimizations
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h
index 6f2262546..cbab431b9 100644
--- a/src/blockchain_db/lmdb/db_lmdb.h
+++ b/src/blockchain_db/lmdb/db_lmdb.h
@@ -177,6 +177,10 @@ public:
virtual tx_out_index get_output_tx_and_index_from_global(const uint64_t& index) const;
virtual tx_out_index get_output_tx_and_index(const uint64_t& amount, const uint64_t& index) const;
+ virtual void get_output_tx_and_index(const uint64_t& amount, std::vector<uint64_t> &offsets, std::vector<tx_out_index> &indices) const
+ {
+ // do nothing
+ };
virtual std::vector<uint64_t> get_tx_output_indices(const crypto::hash& h) const;
virtual std::vector<uint64_t> get_tx_amount_output_indices(const crypto::hash& h) const;
@@ -198,6 +202,7 @@ public:
virtual void pop_block(block& blk, std::vector<transaction>& txs);
+ virtual bool has_bulk_indices() const { return false; }
private:
void do_resize(uint64_t size_increase=0);