aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_utxo_set_hash.py
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-02-07 11:51:23 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-02-07 11:47:17 +0100
commitfa0ceae970242d8d6bdef150c98f04c67b06e20c (patch)
treea82680d3646b3ed6799abfb54ebe7e5c72893e44 /test/functional/feature_utxo_set_hash.py
parent5b8990a1f3c49b0b02b7383c69e95320acbda13e (diff)
downloadbitcoin-fa0ceae970242d8d6bdef150c98f04c67b06e20c.tar.xz
test: Fix utxo set hash serialisation signedness
Diffstat (limited to 'test/functional/feature_utxo_set_hash.py')
-rwxr-xr-xtest/functional/feature_utxo_set_hash.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/feature_utxo_set_hash.py b/test/functional/feature_utxo_set_hash.py
index be154b411f..0bdcc6d83d 100755
--- a/test/functional/feature_utxo_set_hash.py
+++ b/test/functional/feature_utxo_set_hash.py
@@ -4,8 +4,6 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test UTXO set hash value calculation in gettxoutsetinfo."""
-import struct
-
from test_framework.messages import (
CBlock,
COutPoint,
@@ -58,7 +56,7 @@ class UTXOSetHashTest(BitcoinTestFramework):
continue
data = COutPoint(int(tx.rehash(), 16), n).serialize()
- data += struct.pack("<i", height * 2 + coinbase)
+ data += (height * 2 + coinbase).to_bytes(4, "little")
data += tx_out.serialize()
muhash.insert(data)