We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8095402 commit 69d81dbCopy full SHA for 69d81db
1 file changed
bitcoin/core/serialize.py
@@ -344,14 +344,13 @@ def compact_from_uint256(v):
344
def uint256_to_str(u):
345
r = b""
346
for i in range(8):
347
- r += struct.pack('<I', u >> (i * 32) & 0xffff)
+ r += struct.pack('<I', u >> (i * 32) & 0xffffffff)
348
return r
349
350
def uint256_to_shortstr(u):
351
s = "%064x" % (u,)
352
return s[:16]
353
354
-
355
__all__ = (
356
'MAX_SIZE',
357
'Hash',
0 commit comments