diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-04-10 16:10:33 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-10 16:10:33 -0500 |
commit | 228af683a7e187c4541ea50621ed4b3382c5eb6a (patch) | |
tree | d617991d6bd17f31b433d7ade31b1a9c4e86016c /tests/core_tests/tx_pool.h | |
parent | Merge pull request #6398 (diff) | |
parent | Correct key image check in tx_pool (diff) | |
download | monero-228af683a7e187c4541ea50621ed4b3382c5eb6a.tar.xz |
Merge pull request #6403
5de2295 Correct key image check in tx_pool (vtnerd)
Diffstat (limited to 'tests/core_tests/tx_pool.h')
-rw-r--r-- | tests/core_tests/tx_pool.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/core_tests/tx_pool.h b/tests/core_tests/tx_pool.h index 996c76698..eb71dcf79 100644 --- a/tests/core_tests/tx_pool.h +++ b/tests/core_tests/tx_pool.h @@ -77,6 +77,7 @@ class txpool_double_spend_base : public txpool_base std::unordered_set<crypto::hash> m_no_relay_hashes; std::unordered_map<crypto::hash, uint64_t> m_all_hashes; size_t m_no_new_index; + size_t m_failed_index; size_t m_new_timestamp_index; crypto::hash m_last_tx; @@ -86,6 +87,7 @@ public: txpool_double_spend_base(); bool mark_no_new(cryptonote::core& c, size_t ev_index, const std::vector<test_event_entry>& events); + bool mark_failed(cryptonote::core& c, size_t ev_index, const std::vector<test_event_entry>& events); bool mark_timestamp_change(cryptonote::core& c, size_t ev_index, const std::vector<test_event_entry>& events); //! Pause for 1 second, so that `receive_time` for tx meta changes (tx hidden from public rpc being updated) @@ -116,3 +118,12 @@ struct txpool_double_spend_local : txpool_double_spend_base bool generate(std::vector<test_event_entry>& events) const; }; + +struct txpool_double_spend_keyimage : txpool_double_spend_base +{ + txpool_double_spend_keyimage() + : txpool_double_spend_base() + {} + + bool generate(std::vector<test_event_entry>& events) const; +}; |