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

Function listnodes_one_done

plugins/sql.c:1146–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144 struct db_query *dbq);
1145
1146static struct command_result *listnodes_one_done(struct command *cmd,
1147 const char *method,
1148 const char *buf,
1149 const jsmntok_t *result,
1150 struct db_query *dbq)
1151{
1152 struct table_desc *td = dbq->tables[0];
1153 struct command_result *ret;
1154
1155 ret = process_json_result(cmd, buf, result, td, false,
1156 &td->last_created_index, &td->last_updated_index, NULL);
1157 if (ret)
1158 return ret;
1159
1160 /* Continue to refresh more nodes */
1161 return nodes_refresh(cmd, td, dbq);
1162}
1163
1164static void delete_node_from_db(struct command *cmd,
1165 const struct node_id *id)

Callers

nothing calls this directly

Calls 2

process_json_resultFunction · 0.85
nodes_refreshFunction · 0.85

Tested by

no test coverage detected