From ad60d71c55c801e4fda40ca6e61e58775987710c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 20 Jun 2017 15:18:03 +0930 Subject: [PATCH] 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 --- lightningd/peer_control.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 4f4050891..280ea13c4 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -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);