Merge 09e60df115 into merged_master (Bitcoin PR bitcoin/bitcoin#23723)

This commit is contained in:
Byron Hambly 2023-06-06 11:56:36 +00:00
commit 32bcb2de54

View file

@ -64,13 +64,15 @@ FILTER_TYPE_BASIC = 0
WITNESS_SCALE_FACTOR = 4
# Serialization/deserialization tools
def sha256(s):
return hashlib.new('sha256', s).digest()
return hashlib.sha256(s).digest()
def hash256(s):
return sha256(sha256(s))
def ser_compact_size(l):
r = b""
if l < 253: