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

Function add_stat

plugins/askrene/child/explain_failure.c:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92};
93
94static void add_stat(struct stat *stat,
95 struct amount_msat amount)
96{
97 stat->num_channels++;
98 if (!amount_msat_accumulate(&stat->capacity, amount))
99 abort();
100}
101
102static void node_stats(const struct route_query *rq,
103 const struct gossmap_node *node,

Callers 1

node_statsFunction · 0.85

Calls 2

amount_msat_accumulateFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected