From 089c7637a64652c8bcf6c437065237c23266d4a9 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 4 Apr 2019 00:15:57 +0000 Subject: cryptonote: rework block blob size sanity check Use the actual block weight limit, assuming that weight is always greater or equal to size --- src/cryptonote_basic/cryptonote_basic_impl.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/cryptonote_basic/cryptonote_basic_impl.cpp') diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index e336cc1d1..d8de65b81 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -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; -- cgit v1.2.3