MCPcopy Create free account
hub / github.com/ElementsProject/lightning / scriptpubkey_addr

Function scriptpubkey_addr

tests/utils.py:434–440  ·  view source on GitHub ↗
(scriptpubkey)

Source from the content-addressed store, hash-verified

432
433
434def scriptpubkey_addr(scriptpubkey):
435 if 'addresses' in scriptpubkey:
436 return scriptpubkey['addresses'][0]
437 elif 'address' in scriptpubkey:
438 # Modern bitcoin (at least, git master)
439 return scriptpubkey['address']
440 return None

Callers 7

_closeFunction · 0.90
is_p2wpkhFunction · 0.90
test_txprepareFunction · 0.90
test_txsendFunction · 0.90
test_repro_4258Function · 0.90
test_permfailFunction · 0.90

Calls

no outgoing calls

Tested by 7

_closeFunction · 0.72
is_p2wpkhFunction · 0.72
test_txprepareFunction · 0.72
test_txsendFunction · 0.72
test_repro_4258Function · 0.72
test_permfailFunction · 0.72