aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-02-07 12:10:29 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-02-07 12:07:44 +0100
commitfab15723b0518acbb1015e64df47dcac0187e92f (patch)
treee6115cec19b8cd81dfc945d6929d8932ce47b782 /test/functional/test_framework
parent5b8990a1f3c49b0b02b7383c69e95320acbda13e (diff)
downloadbitcoin-fab15723b0518acbb1015e64df47dcac0187e92f.tar.xz
test: Fix SegwitV0SignatureMsg nLockTime signedness
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r--test/functional/test_framework/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/script.py b/test/functional/test_framework/script.py
index 78d8580794..3275517888 100644
--- a/test/functional/test_framework/script.py
+++ b/test/functional/test_framework/script.py
@@ -747,7 +747,7 @@ def SegwitV0SignatureMsg(script, txTo, inIdx, hashtype, amount):
ss += struct.pack("<q", amount)
ss += struct.pack("<I", txTo.vin[inIdx].nSequence)
ss += ser_uint256(hashOutputs)
- ss += struct.pack("<i", txTo.nLockTime)
+ ss += txTo.nLockTime.to_bytes(4, "little")
ss += struct.pack("<I", hashtype)
return ss