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:
moneromooo-monero 2019-04-04 00:15:57 +00:00
parent fe3403c8f0
commit 089c7637a6
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
10 changed files with 100 additions and 16 deletions

View file

@ -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;