Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Commit

Permalink
Update default configuration to produce larger blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarzik committed Nov 17, 2017
1 parent 385cbc9 commit d09f3de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/miner.cpp
Expand Up @@ -75,6 +75,8 @@ int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParam
BlockAssembler::BlockAssembler(const CChainParams& _chainparams) BlockAssembler::BlockAssembler(const CChainParams& _chainparams)
: chainparams(_chainparams) : chainparams(_chainparams)
{ {
fWitnessSeasoned = true;

// Block resource limits // Block resource limits
// If neither -blockmaxsize or -blockmaxweight is given, limit to DEFAULT_BLOCK_MAX_* // If neither -blockmaxsize or -blockmaxweight is given, limit to DEFAULT_BLOCK_MAX_*
// If only one is given, only restrict the specified resource. // If only one is given, only restrict the specified resource.
Expand Down Expand Up @@ -118,7 +120,7 @@ void BlockAssembler::resetBlock()
nBlockWeight = 4000; nBlockWeight = 4000;
nBlockSigOpsCost = 400; nBlockSigOpsCost = 400;
fIncludeWitness = false; fIncludeWitness = false;
fWitnessSeasoned = false; fWitnessSeasoned = true;


// These counters do not include coinbase tx // These counters do not include coinbase tx
nBlockTx = 0; nBlockTx = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/policy/policy.h
Expand Up @@ -15,11 +15,11 @@
class CCoinsViewCache; class CCoinsViewCache;


/** Default for -blockmaxsize, which controls the maximum size of block the mining code will create **/ /** Default for -blockmaxsize, which controls the maximum size of block the mining code will create **/
static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 750000; static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 1750000;
/** Default for -blockprioritysize, maximum space for zero/low-fee transactions **/ /** Default for -blockprioritysize, maximum space for zero/low-fee transactions **/
static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 0; static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 0;
/** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/ /** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/
static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = 3000000; static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = 5000000;
/** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/ /** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/
static const unsigned int DEFAULT_BLOCK_MIN_TX_FEE = 1000; static const unsigned int DEFAULT_BLOCK_MIN_TX_FEE = 1000;
/** The maximum weight for transactions we're willing to relay/mine */ /** The maximum weight for transactions we're willing to relay/mine */
Expand Down

0 comments on commit d09f3de

Please sign in to comment.