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

Function remove_htlc_in_by_dbid

lightningd/htlc_end.c:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30struct htlc_in *remove_htlc_in_by_dbid(struct htlc_in_map *remaining_htlcs_in,
31 u64 dbid)
32{
33 struct htlc_in *hin;
34 struct htlc_in_map_iter ini;
35
36 for (hin = htlc_in_map_first(remaining_htlcs_in, &ini); hin;
37 hin = htlc_in_map_next(remaining_htlcs_in, &ini)) {
38 if (hin->dbid == dbid) {
39 htlc_in_map_del(remaining_htlcs_in, hin);
40 return hin;
41 }
42 }
43 return NULL;
44}
45
46static void destroy_htlc_in(struct htlc_in *hend, struct htlc_in_map *map)
47{

Callers 1

wallet_stmt2htlc_outFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected