mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
df-mfc: remove guard-rails for failures
This will cause blow ups for v2 multifundchannel attempts with failures, but allows us to return the expected errors for single-shot fundchannel attempts. Error handling is coming, i promise
This commit is contained in:
parent
b040a893ed
commit
0726d2912e
1 changed files with 0 additions and 25 deletions
|
@ -416,14 +416,6 @@ openchannel_signed_err(struct command *cmd,
|
|||
struct multifundchannel_command *mfc = dest->mfc;
|
||||
const jsmntok_t *code_tok;
|
||||
|
||||
plugin_log(mfc->cmd->plugin, LOG_DBG,
|
||||
"mfc %"PRIu64", dest %u: "
|
||||
"failed! openchannel_signed %s: %.*s.",
|
||||
mfc->id, dest->index,
|
||||
node_id_to_hexstr(tmpctx, &dest->id),
|
||||
json_tok_full_len(error),
|
||||
json_tok_full(buf, error));
|
||||
|
||||
code_tok = json_get_member(buf, error, "code");
|
||||
if (!code_tok)
|
||||
plugin_err(cmd->plugin,
|
||||
|
@ -780,16 +772,8 @@ openchannel_update_err(struct command *cmd,
|
|||
const jsmntok_t *error,
|
||||
struct multifundchannel_destination *dest)
|
||||
{
|
||||
struct multifundchannel_command *mfc = dest->mfc;
|
||||
const jsmntok_t *code_tok;
|
||||
|
||||
plugin_err(mfc->cmd->plugin,
|
||||
"mfc %"PRIu64", dest %u: "
|
||||
"failed! `openchannel_update` %s: %.*s",
|
||||
mfc->id, dest->index,
|
||||
node_id_to_hexstr(tmpctx, &dest->id),
|
||||
json_tok_full_len(error), json_tok_full(buf, error));
|
||||
|
||||
code_tok = json_get_member(buf, error, "code");
|
||||
if (!code_tok)
|
||||
plugin_err(cmd->plugin,
|
||||
|
@ -1006,17 +990,8 @@ openchannel_init_err(struct command *cmd,
|
|||
const jsmntok_t *error,
|
||||
struct multifundchannel_destination *dest)
|
||||
{
|
||||
struct multifundchannel_command *mfc = dest->mfc;
|
||||
const jsmntok_t *code_tok;
|
||||
|
||||
plugin_err(mfc->cmd->plugin,
|
||||
"mfc %"PRIu64", dest %u: "
|
||||
"failed! openchannel_init %s: %.*s.",
|
||||
mfc->id, dest->index,
|
||||
node_id_to_hexstr(tmpctx, &dest->id),
|
||||
json_tok_full_len(error),
|
||||
json_tok_full(buf, error));
|
||||
|
||||
code_tok = json_get_member(buf, error, "code");
|
||||
if (!code_tok)
|
||||
plugin_err(cmd->plugin,
|
||||
|
|
Loading…
Add table
Reference in a new issue