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

Function leaserates_set

plugins/funder.c:1336–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334}
1335
1336static struct command_result *
1337leaserates_set(struct command *cmd,
1338 const char *method,
1339 const char *buf,
1340 const jsmntok_t *result,
1341 struct funder_policy *policy)
1342{
1343 struct json_stream *res;
1344
1345 /* Ok, we updated lightningd with latest info */
1346 res = jsonrpc_stream_success(cmd);
1347 json_add_policy(res, policy);
1348 return command_finished(cmd, res);
1349}
1350
1351static struct command_result *
1352json_funderupdate(struct command *cmd,

Callers

nothing calls this directly

Calls 3

json_add_policyFunction · 0.85
jsonrpc_stream_successFunction · 0.70
command_finishedFunction · 0.70

Tested by

no test coverage detected