aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-25 10:45:25 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-25 12:36:11 +0000
commit5f397e441275d0e282a371bcdeed963c9a9b69f1 (patch)
tree4ed5d4039320b142710befac10cbb7e816cfe173 /src/blockchain_db/lmdb/db_lmdb.h
parentdb_bdb: record numbers for recno databases start at 1 (diff)
downloadmonero-5f397e441275d0e282a371bcdeed963c9a9b69f1.tar.xz
Add functions to iterate through blocks, txes, outputs, key images
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.h')
-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 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<bool(const crypto::key_image&)>) const;
+ virtual bool for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const cryptonote::block&)>) const;
+ virtual bool for_all_transactions(std::function<bool(const crypto::hash&, const cryptonote::transaction&)>) const;
+ virtual bool for_all_outputs(std::function<bool(uint64_t amount, const crypto::hash &tx_hash, size_t tx_idx)> f) const;
+
virtual uint64_t add_block( const block& blk
, const size_t& block_size
, const difficulty_type& cumulative_difficulty