aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorjeffro256 <jeffro256@tutanota.com>2024-03-07 09:23:41 -0600
committerjeffro256 <jeffro256@tutanota.com>2024-03-08 08:14:06 -0600
commiteeb7c7c5467dae9c72e4dde11cbd51dab3b448f9 (patch)
tree3ad1a652f3c371e74efc1d20810a172efb1fc5d7 /src/crypto
parentMerge pull request #9217 (diff)
downloadmonero-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.cpp1
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;
}
}