Skip to content

Commit 46c103f

Browse files
committed
Miner selects any feerate no matter how small
1 parent 3c37653 commit 46c103f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/miner.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
169169
// transaction (which in most cases can be a no-op).
170170
fIncludeWitness = IsWitnessEnabled(pindexPrev, chainparams.GetConsensus()) && fMineWitnessTx;
171171

172-
addPriorityTxs();
172+
//addPriorityTxs(); addPackageTxs will take anything at any rate
173173
int nPackagesSelected = 0;
174174
int nDescendantsUpdated = 0;
175175
addPackageTxs(nPackagesSelected, nDescendantsUpdated);
@@ -485,11 +485,6 @@ void BlockAssembler::addPackageTxs(int &nPackagesSelected, int &nDescendantsUpda
485485
packageSigOpsCost = modit->nSigOpCostWithAncestors;
486486
}
487487

488-
if (packageFees < blockMinFeeRate.GetFee(packageSize)) {
489-
// Everything else we might consider has a lower fee rate
490-
return;
491-
}
492-
493488
if (!TestPackage(packageSize, packageSigOpsCost)) {
494489
if (fUsingModified) {
495490
// Since we always look at the best entry in mapModifiedTx,

0 commit comments

Comments
 (0)