Changeset View
Changeset View
Standalone View
Standalone View
src/miner.cpp
Show First 20 Lines • Show All 505 Lines • ▼ Show 20 Lines | while (mi != mempool.mapTx.get<ancestor_score>().end() || | ||||
} | } | ||||
} | } | ||||
// We skip mapTx entries that are inBlock, and mapModifiedTx shouldn't | // We skip mapTx entries that are inBlock, and mapModifiedTx shouldn't | ||||
// contain anything that is inBlock. | // contain anything that is inBlock. | ||||
assert(!inBlock.count(iter)); | assert(!inBlock.count(iter)); | ||||
uint64_t packageSize = iter->GetSizeWithAncestors(); | uint64_t packageSize = iter->GetSizeWithAncestors(); | ||||
uint64_t packageBillableSize = iter->GetBillableSizeWithAncestors(); | |||||
Amount packageFees = iter->GetModFeesWithAncestors(); | Amount packageFees = iter->GetModFeesWithAncestors(); | ||||
int64_t packageSigOps = iter->GetSigOpCountWithAncestors(); | int64_t packageSigOps = iter->GetSigOpCountWithAncestors(); | ||||
if (fUsingModified) { | if (fUsingModified) { | ||||
packageSize = modit->nSizeWithAncestors; | packageSize = modit->nSizeWithAncestors; | ||||
packageBillableSize = modit->nBillableSizeWithAncestors; | |||||
packageFees = modit->nModFeesWithAncestors; | packageFees = modit->nModFeesWithAncestors; | ||||
packageSigOps = modit->nSigOpCountWithAncestors; | packageSigOps = modit->nSigOpCountWithAncestors; | ||||
} | } | ||||
if (packageFees < blockMinFeeRate.GetFee(packageSize)) { | if (packageFees < blockMinFeeRate.GetFee(packageBillableSize)) { | ||||
// Everything else we might consider has a lower fee rate | // Everything else we might consider has a lower fee rate | ||||
return; | return; | ||||
} | } | ||||
if (!TestPackage(packageSize, packageSigOps)) { | if (!TestPackage(packageSize, packageSigOps)) { | ||||
if (fUsingModified) { | if (fUsingModified) { | ||||
// Since we always look at the best entry in mapModifiedTx, we | // Since we always look at the best entry in mapModifiedTx, we | ||||
// must erase failed entries so that we can consider the next | // must erase failed entries so that we can consider the next | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |