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

Function rescan_complete

plugins/bwatch/bwatch.c:353–368  ·  view source on GitHub ↗

Finish a rescan chain: RPC commands get a JSON result; aux/timer * commands just terminate. */

Source from the content-addressed store, hash-verified

351/* Finish a rescan chain: RPC commands get a JSON result; aux/timer
352 * commands just terminate. */
353static struct command_result *rescan_complete(struct command *cmd)
354{
355 switch (cmd->type) {
356 case COMMAND_TYPE_NORMAL:
357 case COMMAND_TYPE_HOOK:
358 return command_success(cmd, json_out_obj(cmd, NULL, NULL));
359 case COMMAND_TYPE_AUX:
360 return aux_command_done(cmd);
361 case COMMAND_TYPE_NOTIFICATION:
362 case COMMAND_TYPE_TIMER:
363 case COMMAND_TYPE_CHECK:
364 case COMMAND_TYPE_USAGE_ONLY:
365 break;
366 }
367 abort();
368}
369
370/* getrawblockbyheight callback for one block of a rescan: process the
371 * block, then either fetch the next or finish. */

Callers 1

rescan_block_doneFunction · 0.85

Calls 4

aux_command_doneFunction · 0.85
abortFunction · 0.85
command_successFunction · 0.50
json_out_objFunction · 0.50

Tested by

no test coverage detected