MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / check_script

Function check_script

test/functional/test_framework/address.py:82–87  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

80 assert(False)
81
82def check_script(script):
83 if (type(script) is str):
84 script = hex_str_to_bytes(script) # Assuming this is hex string
85 if (type(script) is bytes or type(script) is CScript):
86 return script
87 assert(False)

Callers 3

script_to_p2shFunction · 0.85
script_to_p2wshFunction · 0.85
script_to_p2sh_p2wshFunction · 0.85

Calls 2

typeClass · 0.85
hex_str_to_bytesFunction · 0.85

Tested by

no test coverage detected