diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-25 10:45:25 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-25 12:36:11 +0000 |
commit | 5f397e441275d0e282a371bcdeed963c9a9b69f1 (patch) | |
tree | 4ed5d4039320b142710befac10cbb7e816cfe173 /src/blockchain_db/blockchain_db.h | |
parent | db_bdb: record numbers for recno databases start at 1 (diff) | |
download | monero-5f397e441275d0e282a371bcdeed963c9a9b69f1.tar.xz |
Add functions to iterate through blocks, txes, outputs, key images
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/blockchain_db.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h index 24bf4024d..1666e57c5 100644 --- a/src/blockchain_db/blockchain_db.h +++ b/src/blockchain_db/blockchain_db.h @@ -493,6 +493,11 @@ public: // returns true if key image <img> is present in spent key images storage virtual bool has_key_image(const crypto::key_image& img) const = 0; + virtual bool for_all_key_images(std::function<bool(const crypto::key_image&)>) const = 0; + virtual bool for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const cryptonote::block&)>) const = 0; + virtual bool for_all_transactions(std::function<bool(const crypto::hash&, const cryptonote::transaction&)>) const = 0; + virtual bool for_all_outputs(std::function<bool(uint64_t amount, const crypto::hash &tx_hash, size_t tx_idx)> f) const = 0; + // Hard fork related storage virtual void set_hard_fork_starting_height(uint8_t version, uint64_t height) = 0; virtual uint64_t get_hard_fork_starting_height(uint8_t version) const = 0; |