mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
gossipd: keep a flag to indicate that we have features in channel_announcement.
This saves us keeping it in memory (so far, no channels have features), but lets us optimize that case so we don't need to hit the disk for most of the channels in listchannels. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -134,7 +134,7 @@ get_or_make_connection(struct routing_state *rstate,
|
||||
abort();
|
||||
chan = get_channel(rstate, &scid);
|
||||
if (!chan)
|
||||
chan = new_chan(rstate, &scid, from_id, to_id, satoshis);
|
||||
chan = new_chan(rstate, &scid, from_id, to_id, satoshis, NULL);
|
||||
|
||||
/* Make sure it's seen as initialized (index non-zero). */
|
||||
chan->half[idx].bcast.index = 1;
|
||||
|
||||
Reference in New Issue
Block a user