mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
@@ -110,6 +110,11 @@ void peer_fail(struct peer *peer, const char *fmt, ...)
|
|||||||
goto dont_talk;
|
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. */
|
/* Reconnect unless we've dropped to chain. */
|
||||||
if (!peer_on_chain(peer)) {
|
if (!peer_on_chain(peer)) {
|
||||||
peer_reconnect(peer);
|
peer_reconnect(peer);
|
||||||
|
|||||||
Reference in New Issue
Block a user