Skip to content

Commit

Permalink
doc: explain why we substract 4000 from DEFAULT_BLOCK_MAX_WEIGHT
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaelsadeeq committed Nov 27, 2024
1 parent 49b1e6d commit 889145a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/policy/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class CCoinsViewCache;
class CFeeRate;
class CScript;

/** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/
/** Default value for -blockmaxweight, which controls the range of block weights the mining code will create.
* The 4000 weight units subtracted are reserved for the miner's coinbase transaction weight.
**/
static constexpr unsigned int DEFAULT_BLOCK_MAX_WEIGHT{MAX_BLOCK_WEIGHT - 4000};
/** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/
static constexpr unsigned int DEFAULT_BLOCK_MIN_TX_FEE{1000};
Expand Down

0 comments on commit 889145a

Please sign in to comment.