mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
test: refactor: add constant for sequence number SEQUENCE_FINAL
This commit is contained in:
@@ -17,6 +17,7 @@ from test_framework.messages import (
|
||||
CTxOut,
|
||||
MAX_BLOCK_WEIGHT,
|
||||
MAX_MONEY,
|
||||
SEQUENCE_FINAL,
|
||||
tx_from_hex,
|
||||
)
|
||||
from test_framework.script import (
|
||||
@@ -100,7 +101,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
||||
coin = coins.pop() # Pick a random coin(base) to spend
|
||||
output_amount = Decimal('0.025')
|
||||
raw_tx_final = node.signrawtransactionwithwallet(node.createrawtransaction(
|
||||
inputs=[{'txid': coin['txid'], 'vout': coin['vout'], "sequence": 0xffffffff}], # SEQUENCE_FINAL
|
||||
inputs=[{'txid': coin['txid'], 'vout': coin['vout'], "sequence": SEQUENCE_FINAL}],
|
||||
outputs=[{node.getnewaddress(): output_amount}],
|
||||
locktime=node.getblockcount() + 2000, # Can be anything
|
||||
))['hex']
|
||||
|
Reference in New Issue
Block a user