Skip to content

Commit 3dc263c

Browse files
committed
Use a sensible default for blockmaxweight
No sensible user will ever keep the default settings here, so not having sensible defaults only serves to screw users who are paying less attention, which makes for terrible defaults.
1 parent ba206d2 commit 3dc263c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/policy/policy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CCoinsViewCache;
1717
class CTxOut;
1818

1919
/** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/
20-
static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = 3000000;
20+
static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = MAX_BLOCK_WEIGHT - 4000;
2121
/** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/
2222
static const unsigned int DEFAULT_BLOCK_MIN_TX_FEE = 1000;
2323
/** The maximum weight for transactions we're willing to relay/mine */

0 commit comments

Comments
 (0)