From 781502311718c98e34dc09d85e75e9b56a29c574 Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Thu, 7 Mar 2024 09:23:41 -0600 Subject: 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(+) (limited to 'src/cryptonote_core/tx_pool.cpp') 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; } } -- cgit v1.2.3