Skip to content

Commit 7e4e4ea

Browse files
committed
Give 1000 bytes instead of 4000 bytes before the block is full
1 parent 873bd6c commit 7e4e4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ void BlockAssembler::addPackageTxs(int &nPackagesSelected, int &nDescendantsUpda
452452

453453
++nConsecutiveFailed;
454454

455-
if (nConsecutiveFailed > MAX_CONSECUTIVE_FAILURES && nBlockSize > nBlockMaxSize - 4000) {
455+
if (nConsecutiveFailed > MAX_CONSECUTIVE_FAILURES && nBlockSize > nBlockMaxSize - 1000) {
456456
// Give up if we're close to full and haven't succeeded in a while
457457
break;
458458
}

0 commit comments

Comments
 (0)