mirror of
https://github.com/monero-project/monero.git
synced 2025-08-17 03:50:23 -04:00
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>
This commit is contained in:
parent
f307621678
commit
caa7561705
4 changed files with 10 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue