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

Function currency_jsonfmt

plugins/bkpr/bookkeeper.c:2032–2041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2030}
2031
2032static bool currency_jsonfmt(struct command *cmd,
2033 struct json_stream *js,
2034 const char *fieldname,
2035 struct bkpr *bkpr)
2036{
2037 if (!bkpr->currency)
2038 return false;
2039 json_add_string(js, fieldname, bkpr->currency->name);
2040 return true;
2041}
2042
2043static char *option_currency(struct command *cmd,
2044 const char *arg,

Callers

nothing calls this directly

Calls 1

json_add_stringFunction · 0.50

Tested by

no test coverage detected