mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Give ChannelManager
s channel_udpate
s for pub chans in test
This makes tests slightly more realistic by delivering `channel_update`s to `ChannelManager`s, ensuring we have forwarding data stored locally for all channels, including public ones.
This commit is contained in:
parent
0e0aabea07
commit
a9c4e70213
1 changed files with 5 additions and 0 deletions
|
@ -748,6 +748,11 @@ pub fn update_nodes_with_chan_announce<'a, 'b, 'c, 'd>(nodes: &'a Vec<Node<'b, '
|
|||
node.net_graph_msg_handler.handle_channel_update(upd_2).unwrap();
|
||||
node.net_graph_msg_handler.handle_node_announcement(&a_node_announcement).unwrap();
|
||||
node.net_graph_msg_handler.handle_node_announcement(&b_node_announcement).unwrap();
|
||||
|
||||
// Note that channel_updates are also delivered to ChannelManagers to ensure we have
|
||||
// forwarding info for local channels even if its not accepted in the network graph.
|
||||
node.node.handle_channel_update(&nodes[a].node.get_our_node_id(), &upd_1);
|
||||
node.node.handle_channel_update(&nodes[b].node.get_our_node_id(), &upd_2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue