mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
test: Fix utxo set hash serialisation signedness
This commit is contained in:
parent
5b8990a1f3
commit
fa0ceae970
1 changed files with 1 additions and 3 deletions
|
@ -4,8 +4,6 @@
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
"""Test UTXO set hash value calculation in gettxoutsetinfo."""
|
"""Test UTXO set hash value calculation in gettxoutsetinfo."""
|
||||||
|
|
||||||
import struct
|
|
||||||
|
|
||||||
from test_framework.messages import (
|
from test_framework.messages import (
|
||||||
CBlock,
|
CBlock,
|
||||||
COutPoint,
|
COutPoint,
|
||||||
|
@ -58,7 +56,7 @@ class UTXOSetHashTest(BitcoinTestFramework):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
data = COutPoint(int(tx.rehash(), 16), n).serialize()
|
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()
|
data += tx_out.serialize()
|
||||||
|
|
||||||
muhash.insert(data)
|
muhash.insert(data)
|
||||||
|
|
Loading…
Add table
Reference in a new issue