mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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
@@ -11,7 +11,7 @@
|
||||
#include <common/wire_error.h>
|
||||
|
||||
/* Fatal error here, return peer control to lightningd */
|
||||
static void NORETURN
|
||||
void NORETURN
|
||||
peer_fatal_continue(const u8 *msg TAKES, const struct per_peer_state *pps)
|
||||
{
|
||||
int reason = fromwire_peektype(msg);
|
||||
|
||||
Reference in New Issue
Block a user