mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
routing: Correct the sense of "PERM bit is NOT set"
This commit is contained in:
parent
7dcaf27bf5
commit
ddf052982a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue