mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
committed by
Vincenzo Palazzo
parent
96b3b40765
commit
195a2cf44b
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user