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/cryptonote_core/tx_pool.cpp | |
| parent | b23116424d3cc4e5749a900dfda2f895f7d4d8e4 (diff) | |
| download | monzero-core-eeb7c7c5467dae9c72e4dde11cbd51dab3b448f9.tar.gz monzero-core-eeb7c7c5467dae9c72e4dde11cbd51dab3b448f9.tar.xz monzero-core-eeb7c7c5467dae9c72e4dde11cbd51dab3b448f9.zip | |
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 'src/cryptonote_core/tx_pool.cpp')
| -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; } } |
