mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
openingd: don't send opening_funder_failed twice funder gets a general error.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
bc4a62d349
commit
fc92ae515b
@ -319,15 +319,17 @@ static u8 *opening_negotiate_msg(const tal_t *ctx, struct state *state,
|
|||||||
tal_free(msg);
|
tal_free(msg);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (am_funder) {
|
|
||||||
msg = towire_opening_funder_failed(NULL, err);
|
|
||||||
wire_sync_write(REQ_FD, take(msg));
|
|
||||||
}
|
|
||||||
/* Close connection on all_channels error. */
|
/* Close connection on all_channels error. */
|
||||||
if (all_channels)
|
if (all_channels) {
|
||||||
|
if (am_funder) {
|
||||||
|
msg = towire_opening_funder_failed(NULL,
|
||||||
|
err);
|
||||||
|
wire_sync_write(REQ_FD, take(msg));
|
||||||
|
}
|
||||||
peer_failed_received_errmsg(PEER_FD, GOSSIP_FD,
|
peer_failed_received_errmsg(PEER_FD, GOSSIP_FD,
|
||||||
&state->cs, err,
|
&state->cs, err,
|
||||||
NULL);
|
NULL);
|
||||||
|
}
|
||||||
negotiation_aborted(state, am_funder,
|
negotiation_aborted(state, am_funder,
|
||||||
tal_fmt(tmpctx, "They sent error %s",
|
tal_fmt(tmpctx, "They sent error %s",
|
||||||
err));
|
err));
|
||||||
|
Loading…
Reference in New Issue
Block a user