1414 CTransaction ,
1515 CTxIn ,
1616 CTxOut ,
17+ SEQUENCE_FINAL ,
1718)
1819from test_framework .script import CScript , OP_DROP
1920from test_framework .test_framework import BitcoinTestFramework
@@ -402,7 +403,7 @@ def test_opt_in(self):
402403
403404 # Create a non-opting in transaction
404405 tx1a = CTransaction ()
405- tx1a .vin = [CTxIn (tx0_outpoint , nSequence = 0xffffffff )]
406+ tx1a .vin = [CTxIn (tx0_outpoint , nSequence = SEQUENCE_FINAL )]
406407 tx1a .vout = [CTxOut (1 * COIN , DUMMY_P2WPKH_SCRIPT )]
407408 tx1a_hex = tx1a .serialize ().hex ()
408409 tx1a_txid = self .nodes [0 ].sendrawtransaction (tx1a_hex , 0 )
@@ -445,7 +446,7 @@ def test_opt_in(self):
445446 tx2a_txid = int (tx2a_txid , 16 )
446447
447448 tx3a = CTransaction ()
448- tx3a .vin = [CTxIn (COutPoint (tx1a_txid , 0 ), nSequence = 0xffffffff ),
449+ tx3a .vin = [CTxIn (COutPoint (tx1a_txid , 0 ), nSequence = SEQUENCE_FINAL ),
449450 CTxIn (COutPoint (tx2a_txid , 0 ), nSequence = 0xfffffffd )]
450451 tx3a .vout = [CTxOut (int (0.9 * COIN ), CScript ([b'c' ])), CTxOut (int (0.9 * COIN ), CScript ([b'd' ]))]
451452 tx3a_hex = tx3a .serialize ().hex ()
@@ -579,7 +580,7 @@ def test_no_inherited_signaling(self):
579580 optout_child_tx = self .wallet .send_self_transfer (
580581 from_node = self .nodes [0 ],
581582 utxo_to_spend = parent_utxo ,
582- sequence = 0xffffffff ,
583+ sequence = SEQUENCE_FINAL ,
583584 fee_rate = Decimal ('0.01' ),
584585 )
585586
@@ -589,7 +590,7 @@ def test_no_inherited_signaling(self):
589590 replacement_child_tx = self .wallet .create_self_transfer (
590591 from_node = self .nodes [0 ],
591592 utxo_to_spend = parent_utxo ,
592- sequence = 0xffffffff ,
593+ sequence = SEQUENCE_FINAL ,
593594 fee_rate = Decimal ('0.02' ),
594595 mempool_valid = False ,
595596 )
@@ -608,7 +609,7 @@ def test_no_inherited_signaling(self):
608609 replacement_parent_tx = self .wallet .send_self_transfer (
609610 from_node = self .nodes [0 ],
610611 utxo_to_spend = confirmed_utxo ,
611- sequence = 0xffffffff ,
612+ sequence = SEQUENCE_FINAL ,
612613 fee_rate = Decimal ('0.03' ),
613614 )
614615 # Check that child is removed and update wallet utxo state
0 commit comments