From b52abd1370cc21484d64f45504adbab47240debf Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 14 May 2017 14:06:55 +0100 Subject: Move txpool to the database Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete. --- tests/core_tests/chaingen.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/core_tests/chaingen.h') diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index eef10312d..add48eebe 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -472,6 +472,16 @@ inline bool do_replay_events(std::vector& events) MERROR("Failed to init core"); return false; } + + // start with a clean pool + std::vector pool_txs; + if (!c.get_pool_transaction_hashes(pool_txs)) + { + MERROR("Failed to flush txpool"); + return false; + } + c.get_blockchain_storage().flush_txes_from_pool(std::list(pool_txs.begin(), pool_txs.end())); + t_test_class validator; bool ret = replay_events_through_core(c, events, validator); c.deinit(); -- cgit v1.2.3