From 35847206b2b41a527da6bf622742ecb8bc5cb8f1 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 21 Jul 2017 21:23:23 +0200 Subject: [PATCH] fix: Allow pings while waiting for the channel to lock This was causing failures on testnet where confirmations are not immediate. Reported-by: Fabrice Drouin @sstone Signed-off-by: Christian Decker --- lightningd/channel/channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/channel/channel.c b/lightningd/channel/channel.c index e9a1f8d9c..a1b76c78a 100644 --- a/lightningd/channel/channel.c +++ b/lightningd/channel/channel.c @@ -1281,7 +1281,8 @@ static struct io_plan *peer_in(struct io_conn *conn, struct peer *peer, u8 *msg) if (type != WIRE_FUNDING_LOCKED && type != WIRE_CHANNEL_ANNOUNCEMENT && type != WIRE_CHANNEL_UPDATE - && type != WIRE_NODE_ANNOUNCEMENT) { + && type != WIRE_NODE_ANNOUNCEMENT + && type != WIRE_PING) { peer_failed(io_conn_fd(peer->peer_conn), &peer->pcs.cs, &peer->channel_id,