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

Function scriptpubkey_addr

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

Source from the content-addressed store, hash-verified

476
477
478def scriptpubkey_addr(scriptpubkey):
479 if 'addresses' in scriptpubkey:
480 return scriptpubkey['addresses'][0]
481 elif 'address' in scriptpubkey:
482 # Modern bitcoin (at least, git master)
483 return scriptpubkey['address']
484 return None
485
486
487class GenChannel(object):

Callers 7

_closeFunction · 0.90
is_p2trFunction · 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_p2trFunction · 0.72
test_txprepareFunction · 0.72
test_txsendFunction · 0.72
test_repro_4258Function · 0.72
test_permfailFunction · 0.72