mirror of
https://github.com/monero-project/monero.git
synced 2026-01-15 14:23:31 -08:00
cryptonote: rework block blob size sanity check
Use the actual block weight limit, assuming that weight is always greater or equal to size
This commit is contained in:
@@ -422,6 +422,8 @@ namespace cryptonote
|
||||
FIELDS(*static_cast<block_header *>(this))
|
||||
FIELD(miner_tx)
|
||||
FIELD(tx_hashes)
|
||||
if (tx_hashes.size() > CRYPTONOTE_MAX_TX_PER_BLOCK)
|
||||
return false;
|
||||
END_SERIALIZE()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user