File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParam
74
74
BlockAssembler::BlockAssembler (const CChainParams& _chainparams)
75
75
: chainparams(_chainparams)
76
76
{
77
- // Largest block you're willing to create:
77
+ // Largest block you're willing to create:
78
78
nBlockMaxSize = GetArg (" -blockmaxsize" , DEFAULT_BLOCK_MAX_SIZE);
79
79
// Limit to between 1K and MAX_BLOCK_SIZE-1K for sanity:
80
80
nBlockMaxSize = std::max ((unsigned int )1000 , std::min ((unsigned int )(MAX_BLOCK_SIZE-1000 ), nBlockMaxSize));
@@ -262,6 +262,11 @@ void BlockAssembler::addScoreTxs()
262
262
clearedTxs.pop ();
263
263
}
264
264
265
+ // If tx already in block, skip (added by addPriorityTxs)
266
+ if (inBlock.count (iter)) {
267
+ continue ;
268
+ }
269
+
265
270
// If tx is dependent on other mempool txs which haven't yet been included
266
271
// then put it in the waitSet
267
272
if (isStillDependent (iter)) {
You can’t perform that action at this time.
0 commit comments