Add a size limit for tx_extra in tx pool

This commit is contained in:
tevador 2023-02-05 21:53:32 +01:00 committed by selsta
parent 99be9a044f
commit 5900ed3706
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
6 changed files with 22 additions and 1 deletions

View file

@ -1275,6 +1275,8 @@ namespace cryptonote
add_reason(reason, "fee too low");
if ((res.too_few_outputs = tvc.m_too_few_outputs))
add_reason(reason, "too few outputs");
if ((res.tx_extra_too_big = tvc.m_tx_extra_too_big))
add_reason(reason, "tx-extra too big");
const std::string punctuation = reason.empty() ? "" : ": ";
if (tvc.m_verifivation_failed)
{