mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Prevent low feerate txs from (directly) replacing high feerate txs
Previously all conflicting transactions were evaluated as a whole to determine if the feerate was being increased. This meant that low feerate children pulled the feerate down, potentially allowing a high transaction with a high feerate to be replaced by one with a lower feerate.
This commit is contained in:
@@ -219,7 +219,7 @@ class Test_ReplaceByFee(unittest.TestCase):
|
||||
self.proxy.getrawtransaction(tx.GetHash())
|
||||
|
||||
def test_replacement_feeperkb(self):
|
||||
"""Replacement requires overall fee-per-KB to be higher"""
|
||||
"""Replacement requires fee-per-KB to be higher"""
|
||||
tx0_outpoint = self.make_txout(1.1*COIN)
|
||||
|
||||
tx1a = CTransaction([CTxIn(tx0_outpoint, nSequence=0)],
|
||||
|
||||
Reference in New Issue
Block a user