diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core_tests/chaingen.h | 4 | ||||
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index 822ccfb11..17b78da8e 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -498,7 +498,9 @@ inline bool do_replay_events(std::vector<test_event_entry>& events) return false; } t_test_class validator; - return replay_events_through_core<t_test_class>(c, events, validator); + bool ret = replay_events_through_core<t_test_class>(c, events, validator); + c.deinit(); + return ret; } //-------------------------------------------------------------------------- template<class t_test_class> diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index 82b1a33ff..899f216fd 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 @@ -282,7 +283,6 @@ TEST(reorganize, Same) TEST(reorganize, Changed) { - int history = 4; TestDB db; HardFork hf(db, 1, 0, 1, 1, 4, 100); |