diff options
author | jeffro256 <jeffro256@tutanota.com> | 2023-03-27 16:32:47 -0500 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2023-03-29 02:07:15 -0500 |
commit | 059b975388f346a4243273a75d86c16fd8e6990d (patch) | |
tree | a0b101c8351d78cdc89d9df076d8e35e78c9aac6 /src/cryptonote_protocol | |
parent | Merge pull request #8801 (diff) | |
download | monero-059b975388f346a4243273a75d86c16fd8e6990d.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_protocol')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index bd2f8ce85..d72bdbae2 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -1020,7 +1020,7 @@ namespace cryptonote for (auto& tx : arg.txs) { tx_verification_context tvc{}; - if (!m_core.handle_incoming_tx({tx, crypto::null_hash}, tvc, tx_relay, true)) + if (!m_core.handle_incoming_tx({tx, crypto::null_hash}, tvc, tx_relay, true) && !tvc.m_no_drop_offense) { LOG_PRINT_CCONTEXT_L1("Tx verification failed, dropping connection"); drop_connection(context, false, false); |