diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index da8345b881..9d3c77847c 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -86,6 +86,7 @@ def ser_compact_size(l): r = struct.pack(">= 32 - return rs + return u.to_bytes(32, 'little') def uint256_from_str(s): - r = 0 - t = struct.unpack("