Skip to content

Commit dc627b3

Browse files
committed
Include SocketAddress in test node_announcement
1 parent 22c9da3 commit dc627b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/routing/test_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use crate::routing::gossip::{NetworkGraph, NodeAlias, P2PGossipSync};
1111
use crate::ln::features::{ChannelFeatures, NodeFeatures};
12-
use crate::ln::msgs::{ChannelAnnouncement, ChannelUpdate, MAX_VALUE_MSAT, NodeAnnouncement, RoutingMessageHandler, UnsignedChannelAnnouncement, UnsignedChannelUpdate, UnsignedNodeAnnouncement};
12+
use crate::ln::msgs::{ChannelAnnouncement, ChannelUpdate, MAX_VALUE_MSAT, NodeAnnouncement, RoutingMessageHandler, SocketAddress, UnsignedChannelAnnouncement, UnsignedChannelUpdate, UnsignedNodeAnnouncement};
1313
use crate::util::test_utils;
1414
use crate::util::ser::Writeable;
1515

@@ -70,7 +70,7 @@ pub(super) fn add_or_update_node(
7070
node_id,
7171
rgb: [0; 3],
7272
alias: NodeAlias([0; 32]),
73-
addresses: Vec::new(),
73+
addresses: vec![SocketAddress::TcpIpV4 { addr: [127, 0, 0, 1], port: 1000 }],
7474
excess_address_data: Vec::new(),
7575
excess_data: Vec::new(),
7676
};

0 commit comments

Comments
 (0)