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
6 changed files with 22 additions and 1 deletions
@@ -437,6 +437,8 @@ namespace cryptonote
if (!sort_tx_extra(tx.extra, tx.extra))
return false;
CHECK_AND_ASSERT_MES(tx.extra.size() <= MAX_TX_EXTRA_SIZE, false, "TX extra size (" << tx.extra.size() << ") is greater than max allowed (" << MAX_TX_EXTRA_SIZE << ")");
//check money
if(summary_outs_money > summary_inputs_money )
{