diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-02-07 12:10:29 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-02-07 12:07:44 +0100 |
commit | fab15723b0518acbb1015e64df47dcac0187e92f (patch) | |
tree | e6115cec19b8cd81dfc945d6929d8932ce47b782 /test/functional/test_framework/script.py | |
parent | 5b8990a1f3c49b0b02b7383c69e95320acbda13e (diff) | |
download | bitcoin-fab15723b0518acbb1015e64df47dcac0187e92f.tar.xz |
test: Fix SegwitV0SignatureMsg nLockTime signedness
Diffstat (limited to 'test/functional/test_framework/script.py')
-rw-r--r-- | test/functional/test_framework/script.py | 2 |
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 |