Skip to content

Commit fab1572

Browse files
author
MarcoFalke
committed
test: Fix SegwitV0SignatureMsg nLockTime signedness
1 parent 5b8990a commit fab1572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ def SegwitV0SignatureMsg(script, txTo, inIdx, hashtype, amount):
747747
ss += struct.pack("<q", amount)
748748
ss += struct.pack("<I", txTo.vin[inIdx].nSequence)
749749
ss += ser_uint256(hashOutputs)
750-
ss += struct.pack("<i", txTo.nLockTime)
750+
ss += txTo.nLockTime.to_bytes(4, "little")
751751
ss += struct.pack("<I", hashtype)
752752
return ss
753753

0 commit comments

Comments
 (0)