dual-open: use tx-abort instead of warning/errors

When a channel open fails, we use tx-abort instead of warning/error.

This means that the peer won't disconnect! And instead when a new
message arrives, we'll need to rebuild the dualopend subd (if missing).

Makes opens a bit easer to retry (no reconnect needed), as well as keeps
the connection alive for other channels we may have with that peer.

Changelog-Changed: Experimental-Dual-Fund: open failures don't disconnect, but instead fail the opening process
This commit is contained in:
niftynei
2022-12-01 15:36:06 -06:00
committed by Vincenzo Palazzo
parent 96b3b40765
commit 195a2cf44b
12 changed files with 292 additions and 231 deletions

View File

@@ -7,6 +7,9 @@
struct channel_id;
struct per_peer_state;
/* peer_fatal_continue - Send a message to master, we've failed */
void NORETURN peer_fatal_continue(const u8 *msg TAKES, const struct per_peer_state *pps);
/**
* peer_failed_warn - Send a warning msg and close the connection.
* @pps: the per-peer state.