From 19bd11aab2276a931175302d3cbb83ecb135a282 Mon Sep 17 00:00:00 2001 From: expiredhotdog <108702183+expiredhotdog@users.noreply.github.com> Date: Wed, 25 Jan 2023 02:00:02 +0000 Subject: [PATCH] Temporarily restrict block creation size to 4 MB Due to < 0.3.0 clients being restricted to 4 MB message sizes, this is a temporary limit so that 0.3.0 clients don't accidentally produce invalid blocks before the fork height. --- src/policy/policy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/policy/policy.h b/src/policy/policy.h index ba631bc..167f16f 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -23,7 +23,8 @@ class CCoinsViewCache; static const CAmount RECOMMENDED_MIN_TX_FEE = 25 * COIN; /** Default for -blockmaxsize, which controls the maximum size of block the mining code will create **/ -static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 8 * 1000000; +// This can be increased to MAX_BLOCK_BASE_SIZE after blockheight 290000 +static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 4 * 1000000; /** Default for -blockprioritysize, maximum space for zero/low-fee transactions **/ static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 0; /** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/