|
7 | 7 | from decimal import Decimal |
8 | 8 |
|
9 | 9 | from test_framework.messages import ( |
10 | | - BIP125_SEQUENCE_NUMBER, |
| 10 | + MAX_BIP125_RBF_SEQUENCE, |
11 | 11 | COIN, |
12 | 12 | SEQUENCE_FINAL, |
13 | 13 | ) |
@@ -428,7 +428,7 @@ def test_too_many_replacements_with_default_mempool_params(self): |
428 | 428 |
|
429 | 429 | optin_parent_tx = wallet.send_self_transfer_multi( |
430 | 430 | from_node=normal_node, |
431 | | - sequence=BIP125_SEQUENCE_NUMBER, |
| 431 | + sequence=MAX_BIP125_RBF_SEQUENCE, |
432 | 432 | utxos_to_spend=[root_utxos[graph_num]], |
433 | 433 | num_outputs=txs_per_graph, |
434 | 434 | ) |
@@ -636,14 +636,14 @@ def test_no_inherited_signaling(self): |
636 | 636 | optin_parent_tx = self.wallet.send_self_transfer( |
637 | 637 | from_node=self.nodes[0], |
638 | 638 | utxo_to_spend=confirmed_utxo, |
639 | | - sequence=BIP125_SEQUENCE_NUMBER, |
| 639 | + sequence=MAX_BIP125_RBF_SEQUENCE, |
640 | 640 | fee_rate=Decimal('0.01'), |
641 | 641 | ) |
642 | 642 | assert_equal(True, self.nodes[0].getmempoolentry(optin_parent_tx['txid'])['bip125-replaceable']) |
643 | 643 |
|
644 | 644 | replacement_parent_tx = self.wallet.create_self_transfer( |
645 | 645 | utxo_to_spend=confirmed_utxo, |
646 | | - sequence=BIP125_SEQUENCE_NUMBER, |
| 646 | + sequence=MAX_BIP125_RBF_SEQUENCE, |
647 | 647 | fee_rate=Decimal('0.02'), |
648 | 648 | ) |
649 | 649 |
|
@@ -711,7 +711,7 @@ def test_fullrbf(self): |
711 | 711 | optout_tx = self.wallet.send_self_transfer( |
712 | 712 | from_node=self.nodes[0], |
713 | 713 | utxo_to_spend=confirmed_utxo, |
714 | | - sequence=BIP125_SEQUENCE_NUMBER + 1, |
| 714 | + sequence=MAX_BIP125_RBF_SEQUENCE + 1, |
715 | 715 | fee_rate=Decimal('0.01'), |
716 | 716 | ) |
717 | 717 | assert_equal(False, self.nodes[0].getmempoolentry(optout_tx['txid'])['bip125-replaceable']) |
|
0 commit comments