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

Function new_channel_apy

plugins/bkpr/channelsapy.c:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38struct channel_apy *new_channel_apy(const tal_t *ctx)
39{
40 struct channel_apy *apy = tal(ctx, struct channel_apy);
41
42 apy->routed_in = AMOUNT_MSAT(0);
43 apy->routed_out = AMOUNT_MSAT(0);
44 apy->fees_in = AMOUNT_MSAT(0);
45 apy->fees_out = AMOUNT_MSAT(0);
46 apy->push_in = AMOUNT_MSAT(0);
47 apy->push_out = AMOUNT_MSAT(0);
48 apy->lease_in = AMOUNT_MSAT(0);
49 apy->lease_out = AMOUNT_MSAT(0);
50 return apy;
51}
52
53bool channel_apy_sum(struct channel_apy *sum_apy,
54 const struct channel_apy *entry)

Callers 2

getblockheight_doneFunction · 0.70
compute_channel_apysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected