mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Lint
This commit is contained in:
@@ -32,6 +32,7 @@ def decodeScriptNum(script_bytes, o):
|
||||
v += int(b) << 8 * i
|
||||
return (v, 1 + num_len)
|
||||
|
||||
|
||||
def decodePushData(script_bytes, o):
|
||||
datasize = None
|
||||
pushdata_type = None
|
||||
@@ -76,6 +77,7 @@ def decodePushData(script_bytes, o):
|
||||
# return data and the number of bytes to skip forward
|
||||
return (data, i + datasize - o)
|
||||
|
||||
|
||||
def getP2SHScriptForHash(p2sh):
|
||||
return bytes((OpCodes.OP_HASH160, 0x14)) \
|
||||
+ p2sh \
|
||||
|
||||
Reference in New Issue
Block a user