From 5f397e441275d0e282a371bcdeed963c9a9b69f1 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 25 Oct 2015 10:45:25 +0000 Subject: Add functions to iterate through blocks, txes, outputs, key images --- src/blockchain_db/lmdb/db_lmdb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/blockchain_db/lmdb/db_lmdb.h') diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h index 380954295..6125ef2ef 100644 --- a/src/blockchain_db/lmdb/db_lmdb.h +++ b/src/blockchain_db/lmdb/db_lmdb.h @@ -189,6 +189,11 @@ public: virtual bool has_key_image(const crypto::key_image& img) const; + virtual bool for_all_key_images(std::function) const; + virtual bool for_all_blocks(std::function) const; + virtual bool for_all_transactions(std::function) const; + virtual bool for_all_outputs(std::function f) const; + virtual uint64_t add_block( const block& blk , const size_t& block_size , const difficulty_type& cumulative_difficulty -- cgit v1.2.3