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

Function is_p2tr

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

Source from the content-addressed store, hash-verified

583 fundingtx = l1.bitcoin.rpc.decoderawtransaction(res['fundingtx'])
584
585 def is_p2tr(output):
586 return output['type'] == 'witness_v1_taproot' and \
587 address == scriptpubkey_addr(output)
588
589 assert any(is_p2tr(output['scriptPubKey']) for output in wallettx['vout'])
590 assert only_one(fundingtx['vin'])['txid'] == res['wallettxid']

Callers 1

test_p2tr_fundingFunction · 0.70

Calls 1

scriptpubkey_addrFunction · 0.90

Tested by

no test coverage detected