mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 23:26:12 -04: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
|
@ -76,11 +76,6 @@ namespace cryptonote {
|
|||
return CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
size_t get_max_block_size()
|
||||
{
|
||||
return CRYPTONOTE_MAX_BLOCK_SIZE;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
size_t get_max_tx_size()
|
||||
{
|
||||
return CRYPTONOTE_MAX_TX_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue