aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authorjeffro256 <jeffro256@tutanota.com>2023-03-27 16:32:47 -0500
committerjeffro256 <jeffro256@tutanota.com>2023-03-29 02:07:15 -0500
commit059b975388f346a4243273a75d86c16fd8e6990d (patch)
treea0b101c8351d78cdc89d9df076d8e35e78c9aac6 /src/cryptonote_core/tx_pool.cpp
parentMerge pull request #8801 (diff)
downloadmonero-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 '')
-rw-r--r--src/cryptonote_core/tx_pool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 359ded875..cdd55aa4f 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -207,6 +207,7 @@ namespace cryptonote
{
tvc.m_verifivation_failed = true;
tvc.m_fee_too_low = true;
+ tvc.m_no_drop_offense = true;
return false;
}
@@ -225,6 +226,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;
}