From: Jeffrey Czyz Date: Tue, 19 Mar 2024 19:20:55 +0000 (-0500) Subject: Include SocketAddress in test node_announcement X-Git-Tag: v0.0.123-beta~34^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=dc627b371fa5dd5db5b5da65ad445bf01359ec2a;p=rust-lightning Include SocketAddress in test node_announcement --- diff --git a/lightning/src/routing/test_utils.rs b/lightning/src/routing/test_utils.rs index 0cc6676e5..00c552850 100644 --- a/lightning/src/routing/test_utils.rs +++ b/lightning/src/routing/test_utils.rs @@ -9,7 +9,7 @@ use crate::routing::gossip::{NetworkGraph, NodeAlias, P2PGossipSync}; use crate::ln::features::{ChannelFeatures, NodeFeatures}; -use crate::ln::msgs::{ChannelAnnouncement, ChannelUpdate, MAX_VALUE_MSAT, NodeAnnouncement, RoutingMessageHandler, UnsignedChannelAnnouncement, UnsignedChannelUpdate, UnsignedNodeAnnouncement}; +use crate::ln::msgs::{ChannelAnnouncement, ChannelUpdate, MAX_VALUE_MSAT, NodeAnnouncement, RoutingMessageHandler, SocketAddress, UnsignedChannelAnnouncement, UnsignedChannelUpdate, UnsignedNodeAnnouncement}; use crate::util::test_utils; use crate::util::ser::Writeable; @@ -70,7 +70,7 @@ pub(super) fn add_or_update_node( node_id, rgb: [0; 3], alias: NodeAlias([0; 32]), - addresses: Vec::new(), + addresses: vec![SocketAddress::TcpIpV4 { addr: [127, 0, 0, 1], port: 1000 }], excess_address_data: Vec::new(), excess_data: Vec::new(), };