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

Function _verify_utxos

tests/test_opening.py:2996–3001  ·  view source on GitHub ↗
(n, lookedup)

Source from the content-addressed store, hash-verified

2994 utxo_lookups = set()
2995
2996 def _verify_utxos(n, lookedup):
2997 # Build a set of outpoints for node (l2)
2998 outs = {(out['txid'], out['output']) for out in n.rpc.listfunds()['outputs']}
2999 # Confirm that seen utxo lookups are a subset of l2's outpoints
3000 assert lookedup <= outs
3001 lookedup.clear()
3002
3003 def _no_utxo_response(r):
3004 utxo_lookups.add(tuple(r['params']))

Calls 1

listfundsMethod · 0.45

Tested by

no test coverage detected