diff options
author | luigi1111 <luigi1111w@gmail.com> | 2023-04-02 20:44:18 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2023-04-02 20:44:18 -0400 |
commit | 5f2bbf78a02e6471bd8e54220334e13503ba9e20 (patch) | |
tree | edc6898f77d4951b2c8e4a1cf5b9a704eba4bd9e /src/cryptonote_protocol | |
parent | Merge pull request #8794 (diff) | |
parent | cryptonote core/protocol: don't drop peers for soft offenses (diff) | |
download | monero-5f2bbf78a02e6471bd8e54220334e13503ba9e20.tar.xz |
Merge pull request #8808
caa7561 cryptonote core/protocol: don't drop peers for soft offenses (jeffro256)
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); |