diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-10-27 09:03:05 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-10-27 09:03:07 +0200 |
commit | 9292c1e7cddbc65789d1a78a7db99111ce1980f2 (patch) | |
tree | 4206eac96b7430bd4d712cf6cf796ebaae5bbc83 /tests/unit_tests/hardfork.cpp | |
parent | Merge pull request #451 (diff) | |
parent | Build fixes for the old blockchain_storage version (diff) | |
download | monero-9292c1e7cddbc65789d1a78a7db99111ce1980f2.tar.xz |
Merge pull request #453
3e89df4 Build fixes for the old blockchain_storage version (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests/hardfork.cpp')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index 210c1959b..5c58b3f4b 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -98,6 +98,11 @@ public: virtual void add_spent_key(const crypto::key_image& k_image) {} virtual void remove_spent_key(const crypto::key_image& k_image) {} + virtual bool for_all_key_images(std::function<bool(const crypto::key_image&)>) const { return true; } + virtual bool for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const cryptonote::block&)>) const { return true; } + virtual bool for_all_transactions(std::function<bool(const crypto::hash&, const cryptonote::transaction&)>) const { return true; } + virtual bool for_all_outputs(std::function<bool(uint64_t amount, const crypto::hash &tx_hash, size_t tx_idx)> f) const { return true; } + virtual void add_block( const block& blk , const size_t& block_size , const difficulty_type& cumulative_difficulty |