Skip to content

Commit 1056bbd

Browse files
committed
Address comments remaining from #25353
1 parent 194710d commit 1056bbd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/policy/mempool-replacements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ other consensus and policy rules, each of the following conditions are met:
1515

1616
*Rationale*: See [BIP125
1717
explanation](https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki#motivation).
18-
The Bitcoin Core implementation offers a node setting (`mempoolfullrbf`) to allow transaction
19-
replacement without enforcement of the opt-in signaling rule.
18+
Use the (`-mempoolfullrbf`) configuration option to allow transaction replacement without enforcement of the
19+
opt-in signaling rule.
2020

2121
2. The replacement transaction only include an unconfirmed input if that input was included in
2222
one of the directly conflicting transactions. An unconfirmed input spends an output from a

doc/release-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ New settings
8787
------------
8888

8989
- A new `mempoolfullrbf` option has been added, which enables the mempool to
90-
accept transaction replacement without enforcing the opt-in replaceability
91-
signal. (#25353)
90+
accept transaction replacement without enforcing BIP125 replaceability
91+
signaling. (#25353)
9292

9393
Tools and Utilities
9494
-------------------

test/functional/feature_rbf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,17 +702,16 @@ def test_replacement_relay_fee(self):
702702
assert_raises_rpc_error(-26, "insufficient fee", self.nodes[0].sendrawtransaction, tx.serialize().hex())
703703

704704
def test_fullrbf(self):
705-
txid = self.wallet.send_self_transfer(from_node=self.nodes[0])['txid']
706-
self.generate(self.nodes[0], 1)
707-
confirmed_utxo = self.wallet.get_utxo(txid=txid)
708705

706+
confirmed_utxo = self.make_utxo(self.nodes[0], int(2 * COIN))
709707
self.restart_node(0, extra_args=["-mempoolfullrbf=1"])
708+
assert self.nodes[0].getmempoolinfo()["fullrbf"]
710709

711710
# Create an explicitly opt-out transaction
712711
optout_tx = self.wallet.send_self_transfer(
713712
from_node=self.nodes[0],
714713
utxo_to_spend=confirmed_utxo,
715-
sequence=SEQUENCE_FINAL,
714+
sequence=BIP125_SEQUENCE_NUMBER + 1,
716715
fee_rate=Decimal('0.01'),
717716
)
718717
assert_equal(False, self.nodes[0].getmempoolentry(optout_tx['txid'])['bip125-replaceable'])
@@ -728,6 +727,7 @@ def test_fullrbf(self):
728727

729728
# Optout_tx is not anymore in the mempool.
730729
assert optout_tx['txid'] not in self.nodes[0].getrawmempool()
730+
assert conflicting_tx['txid'] in self.nodes[0].getrawmempool()
731731

732732
if __name__ == '__main__':
733733
ReplaceByFeeTest().main()

0 commit comments

Comments
 (0)