diff options
author | jeffro256 <jeffro256@tutanota.com> | 2024-03-07 09:23:41 -0600 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2024-03-07 09:23:51 -0600 |
commit | 781502311718c98e34dc09d85e75e9b56a29c574 (patch) | |
tree | 2ce9a4e6282e862558f791a7e3e404653a87b0e9 | |
parent | Merge pull request #9004 (diff) | |
download | monero-781502311718c98e34dc09d85e75e9b56a29c574.tar.xz |
tx_memory_pool: make double spends a no-drop offense
Nodes who see different txs in a double spend attack will drop each other, splitting the network.
Issue found by @boog900.
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index d86a9f5f9..cd6b4bec5 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -246,6 +246,7 @@ namespace cryptonote LOG_PRINT_L1("Transaction with id= "<< id << " used already spent key images"); tvc.m_verifivation_failed = true; tvc.m_double_spend = true; + tvc.m_no_drop_offense = true; return false; } } |