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.
pull/9218/head
jeffro256 2 months ago
parent 7b7958bbd9
commit 7815023117
No known key found for this signature in database
GPG Key ID: 6F79797A6E392442

@ -246,6 +246,7 @@ namespace cryptonote
LOG_PRINT_L1("Transaction with id= "<< id << " used already spent key images"); LOG_PRINT_L1("Transaction with id= "<< id << " used already spent key images");
tvc.m_verifivation_failed = true; tvc.m_verifivation_failed = true;
tvc.m_double_spend = true; tvc.m_double_spend = true;
tvc.m_no_drop_offense = true;
return false; return false;
} }
} }

Loading…
Cancel
Save