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

Function listchannels_one_done

plugins/sql.c:1044–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042 struct db_query *dbq);
1043
1044static struct command_result *listchannels_one_done(struct command *cmd,
1045 const char *method,
1046 const char *buf,
1047 const jsmntok_t *result,
1048 struct db_query *dbq)
1049{
1050 struct table_desc *td = dbq->tables[0];
1051 struct command_result *ret;
1052
1053 ret = process_json_result(cmd, buf, result, td, false,
1054 &td->last_created_index, &td->last_updated_index, NULL);
1055 if (ret)
1056 return ret;
1057
1058 /* Continue to refresh more channels */
1059 return channels_refresh(cmd, td, dbq);
1060}
1061
1062static struct command_result *channels_refresh(struct command *cmd,
1063 struct table_desc *td,

Callers

nothing calls this directly

Calls 2

process_json_resultFunction · 0.85
channels_refreshFunction · 0.85

Tested by

no test coverage detected