diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-04-02 20:46:21 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-04-02 20:46:21 -0400 |
| commit | a371e60a3075a16e82f4489969899d3627116e7b (patch) | |
| tree | dfa0ed2ccbe2c31ef00c32d3ea2f1be612a94a71 /src/cryptonote_protocol | |
| parent | 2f62dd5b782ef83af9810b423522eeeb8c4e5570 (diff) | |
| parent | 059b975388f346a4243273a75d86c16fd8e6990d (diff) | |
| download | monzero-core-a371e60a3075a16e82f4489969899d3627116e7b.tar.gz monzero-core-a371e60a3075a16e82f4489969899d3627116e7b.tar.xz monzero-core-a371e60a3075a16e82f4489969899d3627116e7b.zip | |
Merge pull request #8813
059b975 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); |
