We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6868474 + fa0ceae commit 7d837b5Copy full SHA for 7d837b5
test/functional/feature_utxo_set_hash.py
@@ -4,8 +4,6 @@
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
"""Test UTXO set hash value calculation in gettxoutsetinfo."""
6
7
-import struct
8
-
9
from test_framework.messages import (
10
CBlock,
11
COutPoint,
@@ -58,7 +56,7 @@ def test_muhash_implementation(self):
58
56
continue
59
57
60
data = COutPoint(int(tx.rehash(), 16), n).serialize()
61
- data += struct.pack("<i", height * 2 + coinbase)
+ data += (height * 2 + coinbase).to_bytes(4, "little")
62
data += tx_out.serialize()
63
64
muhash.insert(data)
0 commit comments