mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
node_connection: move channel_announcement field into struct routing_channel.
We don't actually *use it*, mind you: the copy in the broadcast message is the one we use. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
942d04ba87
commit
b7ec2c8c9c
@@ -39,9 +39,7 @@ struct node_connection {
|
||||
* things indicated direction wrt the `channel_id` */
|
||||
u16 flags;
|
||||
|
||||
/* Cached `channel_announcement` and `channel_update` we might forward to new peers*/
|
||||
/* FIXME: Remove */
|
||||
u8 *channel_announcement;
|
||||
/* Cached `channel_update` we might forward to new peers*/
|
||||
u8 *channel_update;
|
||||
|
||||
/* If greater than current time, this connection should not
|
||||
@@ -104,6 +102,9 @@ struct routing_channel {
|
||||
/* nodes[0].id < nodes[1].id */
|
||||
struct node *nodes[2];
|
||||
|
||||
/* Cached `channel_announcement` we might forward to new peers*/
|
||||
const u8 *channel_announcement;
|
||||
|
||||
/* FIXME: Move msg_index[MSG_INDEX_CUPDATE*] into connections[] */
|
||||
u64 msg_indexes[3];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user