gossipd: correctly process dying channels.
Found by inspection. Minor bug, since we'll catch it on the next block, but annoying. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Alex Myers
parent
1df1300cc9
commit
769ccaa4c3
@@ -1278,6 +1278,8 @@ void gossmap_manage_new_block(struct gossmap_manage *gm, u32 new_blockheight)
|
||||
gm->dying_channels[i].gossmap_offset,
|
||||
WIRE_GOSSIP_STORE_CHAN_DYING);
|
||||
tal_arr_remove(&gm->dying_channels, i);
|
||||
/* Don't skip next one! */
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user