Browse Source

routing: Correct the sense of "PERM bit is NOT set"

ppa-0.6.1
ZmnSCPxj, ZmnSCPxj jxPCSmnZ 7 years ago
committed by Christian Decker
parent
commit
ddf052982a
  1. 2
      gossipd/routing.c

2
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);

Loading…
Cancel
Save