diff options
author | jeffro256 <jeffro256@tutanota.com> | 2024-03-07 09:23:41 -0600 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2024-03-08 08:14:06 -0600 |
commit | eeb7c7c5467dae9c72e4dde11cbd51dab3b448f9 (patch) | |
tree | 3ad1a652f3c371e74efc1d20810a172efb1fc5d7 /src/crypto | |
parent | Merge pull request #9217 (diff) | |
download | monero-eeb7c7c5467dae9c72e4dde11cbd51dab3b448f9.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.
Diffstat (limited to '')
-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 36fea56a3..5f058b83d 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -247,6 +247,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; } } |