mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 639715df61 into merged_master (Elements PR #1356)
This commit is contained in:
commit
05090af6ca
2 changed files with 40 additions and 2 deletions
|
|
@ -425,15 +425,23 @@ void BlockAssembler::addPackageTxs(const CTxMemPool& mempool, int& nPackagesSele
|
|||
uint64_t packageSize = iter->GetSizeWithAncestors();
|
||||
CAmount packageFees = iter->GetModFeesWithAncestors();
|
||||
int64_t packageSigOpsCost = iter->GetSigOpCostWithAncestors();
|
||||
uint64_t discountSize = iter->GetDiscountSizeWithAncestors();
|
||||
if (fUsingModified) {
|
||||
packageSize = modit->nSizeWithAncestors;
|
||||
packageFees = modit->nModFeesWithAncestors;
|
||||
packageSigOpsCost = modit->nSigOpCostWithAncestors;
|
||||
discountSize = modit->discountSizeWithAncestors;
|
||||
}
|
||||
|
||||
if (packageFees < blockMinFeeRate.GetFee(packageSize)) {
|
||||
// Everything else we might consider has a lower fee rate
|
||||
return;
|
||||
if (Params().GetAcceptDiscountCT()) {
|
||||
if (packageFees < blockMinFeeRate.GetFee(discountSize)) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// Everything else we might consider has a lower fee rate
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!TestPackage(packageSize, packageSigOpsCost)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue