|
|
|
@ -612,7 +612,7 @@ int64 CTransaction::GetMinFee(unsigned int nBlockSize, bool fAllowFree,
@@ -612,7 +612,7 @@ int64 CTransaction::GetMinFee(unsigned int nBlockSize, bool fAllowFree,
|
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
// Free transaction area
|
|
|
|
|
if (nNewBlockSize < 27000) |
|
|
|
|
if (nNewBlockSize < DEFAULT_BLOCK_PRIORITY_SIZE) |
|
|
|
|
nMinFee = 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -4215,13 +4215,13 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
@@ -4215,13 +4215,13 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|
|
|
|
pblocktemplate->vTxSigOps.push_back(-1); // updated at end
|
|
|
|
|
|
|
|
|
|
// Largest block you're willing to create:
|
|
|
|
|
unsigned int nBlockMaxSize = GetArg("-blockmaxsize", MAX_BLOCK_SIZE_GEN/4); |
|
|
|
|
unsigned int nBlockMaxSize = GetArg("-blockmaxsize", DEFAULT_BLOCK_MAX_SIZE); |
|
|
|
|
// Limit to betweeen 1K and MAX_BLOCK_SIZE-1K for sanity:
|
|
|
|
|
nBlockMaxSize = std::max((unsigned int)1000, std::min((unsigned int)(MAX_BLOCK_SIZE-1000), nBlockMaxSize)); |
|
|
|
|
|
|
|
|
|
// How much of the block should be dedicated to high-priority transactions,
|
|
|
|
|
// included regardless of the fees they pay
|
|
|
|
|
unsigned int nBlockPrioritySize = GetArg("-blockprioritysize", 27000); |
|
|
|
|
unsigned int nBlockPrioritySize = GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE); |
|
|
|
|
nBlockPrioritySize = std::min(nBlockMaxSize, nBlockPrioritySize); |
|
|
|
|
|
|
|
|
|
// Minimum block size you want to create; block will be filled with free transactions
|
|
|
|
|