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

Function rewind

tests/test_connection.py:5382–5386  ·  view source on GitHub ↗
(peer)

Source from the content-addressed store, hash-verified

5380 l2.wait_for_htlcs()
5381
5382 def rewind(peer):
5383 # peer forgets it ever offered an HTLC, so it uses id 0 again.
5384 peer.stop()
5385 peer.db_manip("DELETE FROM channel_htlcs;")
5386 peer.db_manip("UPDATE channels SET next_htlc_id=0;")
5387
5388 def reuse_id(peer, label):
5389 peer.start()

Callers 1

test_peer_reuses_htlc_idFunction · 0.85

Calls 2

db_manipMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected