mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
lightningd: fail for the moment if we fail in CHANNELD_NORMAL.
This makes testing easier for the moment, until we implement this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b07b1c1690
commit
ad60d71c55
@ -110,6 +110,11 @@ void peer_fail(struct peer *peer, const char *fmt, ...)
|
||||
goto dont_talk;
|
||||
}
|
||||
|
||||
/* FIXME: Implement reconnect here! */
|
||||
if (peer->state == CHANNELD_NORMAL) {
|
||||
fatal("Peer fail in CHANNELD_NORMAL");
|
||||
}
|
||||
|
||||
/* Reconnect unless we've dropped to chain. */
|
||||
if (!peer_on_chain(peer)) {
|
||||
peer_reconnect(peer);
|
||||
|
Loading…
Reference in New Issue
Block a user