mirror of
https://github.com/monero-project/monero.git
synced 2025-12-20 09:45:20 -05: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:
parent
fe3403c8f0
commit
089c7637a6
10 changed files with 100 additions and 16 deletions
|
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue