File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,6 @@ std::string HelpMessage(HelpMessageMode mode)
453
453
454
454
strUsage += HelpMessageGroup (_ (" Block creation options:" ));
455
455
strUsage += HelpMessageOpt (" -blockmaxcost=<n>" , strprintf (_ (" Set maximum block cost (default: %d)" ), DEFAULT_BLOCK_MAX_COST));
456
- strUsage += HelpMessageOpt (" -blockminsize=<n>" , strprintf (_ (" Set minimum block size in bytes (default: %u)" ), DEFAULT_BLOCK_MIN_SIZE));
457
456
strUsage += HelpMessageOpt (" -blockmaxsize=<n>" , strprintf (_ (" Set maximum block size in bytes (default: %d)" ), DEFAULT_BLOCK_MAX_SIZE));
458
457
strUsage += HelpMessageOpt (" -blockprioritysize=<n>" , strprintf (_ (" Set maximum size of high-priority/low-fee transactions in bytes (default: %d)" ), DEFAULT_BLOCK_PRIORITY_SIZE));
459
458
if (showDebug)
Original file line number Diff line number Diff line change @@ -100,13 +100,8 @@ BlockAssembler::BlockAssembler(const CChainParams& _chainparams)
100
100
// Limit size to between 1K and MAX_BLOCK_SERIALIZED_SIZE-1K for sanity:
101
101
nBlockMaxSize = std::max ((unsigned int )1000 , std::min ((unsigned int )(MAX_BLOCK_SERIALIZED_SIZE-1000 ), nBlockMaxSize));
102
102
103
- // Minimum block size you want to create; block will be filled with free transactions
104
- // until there are no more or the block reaches this size:
105
- nBlockMinSize = GetArg (" -blockminsize" , DEFAULT_BLOCK_MIN_SIZE);
106
- nBlockMinSize = std::min (nBlockMaxSize, nBlockMinSize);
107
-
108
103
// Whether we need to account for byte usage (in addition to cost usage)
109
- fNeedSizeAccounting = (nBlockMaxSize < MAX_BLOCK_SERIALIZED_SIZE-1000 ) || (nBlockMinSize > 0 ) ;
104
+ fNeedSizeAccounting = (nBlockMaxSize < MAX_BLOCK_SERIALIZED_SIZE-1000 );
110
105
}
111
106
112
107
void BlockAssembler::resetBlock ()
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class BlockAssembler
141
141
142
142
// Configuration parameters for the block size
143
143
bool fIncludeWitness ;
144
- unsigned int nBlockMaxCost, nBlockMaxSize, nBlockMinSize ;
144
+ unsigned int nBlockMaxCost, nBlockMaxSize;
145
145
bool fNeedSizeAccounting ;
146
146
147
147
// Information on the current status of the block
Original file line number Diff line number Diff line change 14
14
15
15
class CCoinsViewCache ;
16
16
17
- /* * Default for -blockmaxsize and -blockminsize , which control the range of sizes the mining code will create **/
17
+ /* * Default for -blockmaxsize, which controls the maximum size of block the mining code will create **/
18
18
static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 750000 ;
19
- static const unsigned int DEFAULT_BLOCK_MIN_SIZE = 0 ;
20
19
/* * Default for -blockprioritysize, maximum space for zero/low-fee transactions **/
21
20
static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 0 ;
22
21
/* * Default for -blockmaxcost, which control the range of block costs the mining code will create **/
You can’t perform that action at this time.
0 commit comments