support old BP

This commit is contained in:
wowario
2020-09-19 17:44:50 +03:00
parent 48eeca2077
commit d99c27e24d
14 changed files with 1567 additions and 49 deletions
+2 -2
View File
@@ -109,8 +109,8 @@ namespace cryptonote
uint64_t get_transaction_weight_limit(uint8_t version)
{
// from v8, limit a tx to 50% of the minimum block weight
if (version >= 8)
// from v12, limit a tx to 50% of the minimum block weight
if (version >= 12)
return get_min_block_weight(version) / 2 - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE;
else
return get_min_block_weight(version) - CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE;