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

Function new_channel_apy

plugins/bkpr/channelsapy.c:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45struct channel_apy *new_channel_apy(const tal_t *ctx)
46{
47 struct channel_apy *apy = tal(ctx, struct channel_apy);
48
49 apy->routed_in = AMOUNT_MSAT(0);
50 apy->routed_out = AMOUNT_MSAT(0);
51 apy->fees_in = AMOUNT_MSAT(0);
52 apy->fees_out = AMOUNT_MSAT(0);
53 apy->push_in = AMOUNT_MSAT(0);
54 apy->push_out = AMOUNT_MSAT(0);
55 apy->lease_in = AMOUNT_MSAT(0);
56 apy->lease_out = AMOUNT_MSAT(0);
57 return apy;
58}
59
60bool channel_apy_sum(struct channel_apy *sum_apy,
61 const struct channel_apy *entry)

Callers 2

getblockheight_doneFunction · 0.85
compute_channel_apysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected