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

Function splice_signed_error_pkg

plugins/spender/splice.c:1188–1208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1186}
1187
1188static struct command_result *splice_signed_error_pkg(struct command *cmd,
1189 const char *methodname,
1190 const char *buf,
1191 const jsmntok_t *error,
1192 struct splice_index_pkg *pkg)
1193{
1194 struct splice_cmd *splice_cmd = pkg->splice_cmd;
1195 struct abort_pkg *abort_pkg;
1196
1197 splice_cmd->wetrun = false;
1198
1199 abort_pkg = tal(cmd->plugin, struct abort_pkg);
1200 abort_pkg->splice_cmd = tal_steal(abort_pkg, pkg->splice_cmd);
1201 abort_pkg->str = tal_strndup(abort_pkg, buf + error->start,
1202 error->end - error->start);
1203 abort_pkg->code = -1;
1204
1205 tal_free(pkg);
1206
1207 return make_error(cmd, abort_pkg, "splice_signed_error");
1208}
1209
1210static struct command_result *splice_signed(struct command *cmd,
1211 struct splice_cmd *splice_cmd,

Callers

nothing calls this directly

Calls 2

tal_freeFunction · 0.85
make_errorFunction · 0.85

Tested by

no test coverage detected