Skip to content

Commit 453803a

Browse files
author
MarcoFalke
committed
[test] wallet_txn_clone: Correctly clone txin sequence
1 parent 18857b4 commit 453803a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/wallet_txn_clone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run_test(self):
6565

6666
# Construct a clone of tx1, to be malleated
6767
rawtx1 = self.nodes[0].getrawtransaction(txid1, 1)
68-
clone_inputs = [{"txid": rawtx1["vin"][0]["txid"], "vout": rawtx1["vin"][0]["vout"]}]
68+
clone_inputs = [{"txid": rawtx1["vin"][0]["txid"], "vout": rawtx1["vin"][0]["vout"], "sequence": rawtx1["vin"][0]["sequence"]}]
6969
clone_outputs = {rawtx1["vout"][0]["scriptPubKey"]["addresses"][0]: rawtx1["vout"][0]["value"],
7070
rawtx1["vout"][1]["scriptPubKey"]["addresses"][0]: rawtx1["vout"][1]["value"]}
7171
clone_locktime = rawtx1["locktime"]

0 commit comments

Comments
 (0)