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

Function is_p2wpkh

tests/test_misc.py:456–458  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

454 fundingtx = l1.bitcoin.rpc.decoderawtransaction(res['fundingtx'])
455
456 def is_p2wpkh(output):
457 return output['type'] == 'witness_v0_keyhash' and \
458 address == scriptpubkey_addr(output)
459
460 assert any(is_p2wpkh(output['scriptPubKey']) for output in wallettx['vout'])
461 assert only_one(fundingtx['vin'])['txid'] == res['wallettxid']

Callers 1

test_bech32_fundingFunction · 0.70

Calls 1

scriptpubkey_addrFunction · 0.90

Tested by

no test coverage detected