Skip to content

Commit fa0ceae

Browse files
author
MarcoFalke
committed
test: Fix utxo set hash serialisation signedness
1 parent 5b8990a commit fa0ceae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/functional/feature_utxo_set_hash.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test UTXO set hash value calculation in gettxoutsetinfo."""
66

7-
import struct
8-
97
from test_framework.messages import (
108
CBlock,
119
COutPoint,
@@ -58,7 +56,7 @@ def test_muhash_implementation(self):
5856
continue
5957

6058
data = COutPoint(int(tx.rehash(), 16), n).serialize()
61-
data += struct.pack("<i", height * 2 + coinbase)
59+
data += (height * 2 + coinbase).to_bytes(4, "little")
6260
data += tx_out.serialize()
6361

6462
muhash.insert(data)

0 commit comments

Comments
 (0)