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

Function opt_show_sat

lightningd/options.c:1235–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233}
1234
1235static bool opt_show_sat(char *buf, size_t len, const struct amount_sat *sat)
1236{
1237 struct amount_msat msat;
1238 if (!amount_sat_to_msat(&msat, *sat))
1239 abort();
1240 return opt_show_u64(buf, len,
1241 &msat.millisatoshis); /* Raw: show sats number */
1242}
1243
1244static char *opt_set_wumbo(struct lightningd *ld)
1245{

Callers

nothing calls this directly

Calls 3

abortFunction · 0.85
opt_show_u64Function · 0.85
amount_sat_to_msatFunction · 0.50

Tested by

no test coverage detected