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

Function currency_error

plugins/bkpr/bookkeeper.c:1327–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325}
1326
1327static struct command_result *currency_error(struct command *cmd,
1328 const char *method,
1329 const char *buf,
1330 const jsmntok_t *error,
1331 struct currency_time *ctime)
1332{
1333 struct bkpr *bkpr = bkpr_of(cmd->plugin);
1334
1335 if (!bkpr->warned_currency_fail) {
1336 plugin_log(cmd->plugin, LOG_BROKEN,
1337 "error calling %s: %.*s",
1338 method, json_tok_full_len(error),
1339 json_tok_full(buf, error));
1340 bkpr->warned_currency_fail = true;
1341 }
1342
1343 return rinfo_one_done(cmd, ctime->rinfo);
1344}
1345
1346static void lookup_currency(struct command *cmd,
1347 struct bkpr *bkpr,

Callers

nothing calls this directly

Calls 5

rinfo_one_doneFunction · 0.85
bkpr_ofFunction · 0.70
plugin_logFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected