From 059b975388f346a4243273a75d86c16fd8e6990d Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Mon, 27 Mar 2023 16:32:47 -0500 Subject: cryptonote core/protocol: don't drop peers for soft offenses Also: txs with tx_extra which is too large will not get published to ZMQ Co-authored-by: SChernykh --- src/cryptonote_core/tx_pool.cpp | 2 ++ 1 file changed, 2 insertions(+) (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 359ded875..cdd55aa4f 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -207,6 +207,7 @@ namespace cryptonote { tvc.m_verifivation_failed = true; tvc.m_fee_too_low = true; + tvc.m_no_drop_offense = true; return false; } @@ -225,6 +226,7 @@ namespace cryptonote LOG_PRINT_L1("transaction tx-extra is too big: " << tx_extra_size << " bytes, the limit is: " << MAX_TX_EXTRA_SIZE); tvc.m_verifivation_failed = true; tvc.m_tx_extra_too_big = true; + tvc.m_no_drop_offense = true; return false; } -- cgit v1.2.3