aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.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/cryptonote_core.cpp
parent4f47fd26269764ff702e87242d8a75ce4f1bce67 (diff)
downloadmonzero-core-059b975388f346a4243273a75d86c16fd8e6990d.tar.gz
monzero-core-059b975388f346a4243273a75d86c16fd8e6990d.tar.xz
monzero-core-059b975388f346a4243273a75d86c16fd8e6990d.zip
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_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index d8c782f78..d2b8dafa7 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1099,7 +1099,7 @@ namespace cryptonote
else if(tvc[i].m_verifivation_impossible)
{MERROR_VER("Transaction verification impossible: " << results[i].hash);}
- if(tvc[i].m_added_to_pool)
+ if(tvc[i].m_added_to_pool && results[i].tx.extra.size() <= MAX_TX_EXTRA_SIZE)
{
MDEBUG("tx added: " << results[i].hash);
valid_events = true;