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

Function batch_one_success

plugins/libplugin.c:1200–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198}
1199
1200static struct command_result *batch_one_success(struct command *cmd,
1201 const char *method,
1202 const char *buf,
1203 const jsmntok_t *result,
1204 struct request_batch *batch)
1205{
1206 /* If this frees stuff (e.g. fails), just return */
1207 if (batch->cb && batch->cb(cmd, method, buf, result, batch->arg) == &complete)
1208 return &complete;
1209 return batch_one_complete(cmd, batch);
1210}
1211
1212static struct command_result *batch_one_failed(struct command *cmd,
1213 const char *method,

Callers

nothing calls this directly

Calls 1

batch_one_completeFunction · 0.85

Tested by

no test coverage detected