From eeb7c7c5467dae9c72e4dde11cbd51dab3b448f9 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Thu, 7 Mar 2024 09:23:41 -0600 Subject: [PATCH] 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. --- src/cryptonote_core/tx_pool.cpp | 1 + 1 file changed, 1 insertion(+) 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; } }