diff options
author | jeffro256 <jeffro256@tutanota.com> | 2023-03-27 16:32:47 -0500 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2023-03-29 02:05:43 -0500 |
commit | caa75617059cb8d7118f4c80b71a4f7eb74b2bd6 (patch) | |
tree | 66431c8b182369e9cf0d8336089b75330a8ad14c /src/cryptonote_core/tx_pool.cpp | |
parent | Merge pull request #8775 (diff) | |
download | monero-caa75617059cb8d7118f4c80b71a4f7eb74b2bd6.tar.xz |
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 <sergey.v.chernykh@gmail.com>
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 656d5bfd3..74f36f89b 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -212,6 +212,7 @@ namespace cryptonote { tvc.m_verifivation_failed = true; tvc.m_fee_too_low = true; + tvc.m_no_drop_offense = true; return false; } @@ -230,6 +231,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; } |