Browse Source

Add assertion to clarify assumption made in order to avoid UB

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
5474512c31
  1. 2
      lightningd/pay.c

2
lightningd/pay.c

@ -316,7 +316,7 @@ static void random_mark_channel_unroutable(struct log *log,
size_t i;
const struct short_channel_id *channel;
u8 *msg;
assert(tal_len(route_channels) != 0);
assert(num_channels != 0);
/* Select one channel by random. */
randombytes_buf(&i, sizeof(i));

Loading…
Cancel
Save