Skip to content

Commit

Permalink
Temporarily restrict block creation size to 4 MB
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
expiredhotdog authored Jan 25, 2023
1 parent 4f2e30c commit 19bd11a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/policy/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 **/
Expand Down

0 comments on commit 19bd11a

Please sign in to comment.