aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-30 17:30:01 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-30 17:30:01 +0000
commit70dd34634cd20c19ede2eb1d19fa2419aa760e56 (patch)
treec40ef86e91e960a8624fd5de0482b5655219a5ee /tests/unit_tests
parentMerge pull request #578 (diff)
downloadmonero-70dd34634cd20c19ede2eb1d19fa2419aa760e56.tar.xz
unit_tests: fix hardfork test build
The dummy blockchain class needed to have the newly added is_read_only virtual function.
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/hardfork.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp
index 82b1a33ff..97f08a49d 100644
--- a/tests/unit_tests/hardfork.cpp
+++ b/tests/unit_tests/hardfork.cpp
@@ -102,6 +102,7 @@ public:
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 bool is_read_only() const { return false; }
virtual void add_block( const block& blk
, const size_t& block_size