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

Function report_fmt_credit

plugins/bkpr/report.c:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static const char *report_fmt_credit(const tal_t *ctx,
43 const struct bkpr *bkpr UNNEEDED,
44 const struct income_event *e)
45{
46 if (amount_msat_is_zero(e->credit))
47 return ZERO_AMOUNT;
48 return fmt_amount_msat_btc(ctx, e->credit, false);
49}
50
51static const char *report_fmt_debit(const tal_t *ctx,
52 const struct bkpr *bkpr UNNEEDED,

Callers

nothing calls this directly

Calls 2

amount_msat_is_zeroFunction · 0.85
fmt_amount_msat_btcFunction · 0.85

Tested by

no test coverage detected