From ddf052982a6fe16afd7a6a842f2b99a4a673da07 Mon Sep 17 00:00:00 2001 From: "ZmnSCPxj, ZmnSCPxj jxPCSmnZ" Date: Fri, 2 Feb 2018 15:03:41 +0800 Subject: [PATCH] routing: Correct the sense of "PERM bit is NOT set" --- gossipd/routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 627e6625a..4b2251753 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1048,7 +1048,7 @@ static void routing_failure_on_nc(struct routing_state *rstate, * - if the PERM bit is NOT set: * - SHOULD restore the channels as it receives new `channel_update`s. */ - if (failcode & PERM) + if (!(failcode & PERM)) nc->active = false; else delete_connection(rstate, nc);