@ -136,7 +136,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
// Minimum block size you want to create; block will be filled with free transactions
// Minimum block size you want to create; block will be filled with free transactions
// until there are no more or the block reaches this size:
// until there are no more or the block reaches this size:
unsigned int nBlockMinSize = GetArg ( " -blockminsize " , 0 ) ;
unsigned int nBlockMinSize = GetArg ( " -blockminsize " , DEFAULT_BLOCK_MIN_SIZE ) ;
nBlockMinSize = std : : min ( nBlockMaxSize , nBlockMinSize ) ;
nBlockMinSize = std : : min ( nBlockMaxSize , nBlockMinSize ) ;
// Collect memory pool transactions into the block
// Collect memory pool transactions into the block
@ -254,7 +254,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
continue ;
continue ;
// Skip free transactions if we're past the minimum block size:
// Skip free transactions if we're past the minimum block size:
if ( fSortedByFee & & ( dFeePerKb < CTransaction : : nMinTxFee ) & & ( nBlockSize + nTxSize > = nBlockMinSize ) )
if ( fSortedByFee & & ( dFeePerKb < CTransaction : : nMinRelay TxFee ) & & ( nBlockSize + nTxSize > = nBlockMinSize ) )
continue ;
continue ;
// Prioritize by fee once past the priority size or we run out of high-priority
// Prioritize by fee once past the priority size or we run out of high-priority