mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Fix edge case with stale fee estimates
This commit is contained in:
parent
78ae62d264
commit
44b64b933d
1 changed files with 3 additions and 1 deletions
|
@ -321,9 +321,11 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (txHeight < nBestSeenHeight) {
|
if (txHeight != nBestSeenHeight) {
|
||||||
// Ignore side chains and re-orgs; assuming they are random they don't
|
// Ignore side chains and re-orgs; assuming they are random they don't
|
||||||
// affect the estimate. We'll potentially double count transactions in 1-block reorgs.
|
// affect the estimate. We'll potentially double count transactions in 1-block reorgs.
|
||||||
|
// Ignore txs if BlockPolicyEstimator is not in sync with chainActive.Tip().
|
||||||
|
// It will be synced next time a block is processed.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue