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

Function count_successful_txs

tests/test_closing.py:3130–3132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3128 r = re.compile('sendrawtx exit 0')
3129
3130 def count_successful_txs():
3131 l1.daemon.logs_catchup()
3132 return sum([r.search(l) is not None for l in l1.daemon.logs[mark:]])
3133
3134 # First iteration we expect one HTLC-tx and the to-us, then two more htlc txs
3135 num_successful = 1

Callers 1

Calls 1

logs_catchupMethod · 0.80

Tested by

no test coverage detected