Browse Source

gossip: Fix a typo in the add_channel_direction logic

Signed-off-by: Christian Decker <decker.christian@gmail.com>
Reported-by: William Casarin @jb55
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
3af2dcba6a
  1. 2
      gossipd/routing.c

2
gossipd/routing.c

@ -441,7 +441,7 @@ add_channel_direction(struct routing_state *rstate, const struct pubkey *from,
/* We already know the channel by its scid, just /* We already know the channel by its scid, just
* update the announcement below */ * update the announcement below */
c = c2; c = c2;
} else if (c2) { } else if (c1) {
/* We found the channel by its endpoints, not by scid, /* We found the channel by its endpoints, not by scid,
* so update its scid */ * so update its scid */
memcpy(&c1->short_channel_id, short_channel_id, memcpy(&c1->short_channel_id, short_channel_id,

Loading…
Cancel
Save