@@ -101,14 +101,14 @@ def test_remote_addr(node_factory, bitcoind):
101
101
# must not yet be send as we need the same `remote_addr` confirmed from a
102
102
# another peer we have a channel with.
103
103
# Note: In this state l2 stores remote_addr as reported by l1
104
- assert not l2 .daemon .is_in_log ("Update our node_announcement for discovered address: 127.0.0.1:9735 " )
104
+ assert not l2 .daemon .is_in_log ("Update our node_announcement for discovered address: 127.0.0.1:19846 " )
105
105
l1 .restart ()
106
106
l2 .rpc .connect (l1 .info ['id' ], 'localhost' , l1 .port )
107
107
l2 .daemon .wait_for_log ("Peer says it sees our address as: 127.0.0.1:[0-9]{5}" )
108
108
109
109
# Now l1 sees l2 but without announced addresses.
110
110
assert (len (l1 .rpc .listnodes (l2 .info ['id' ])['nodes' ][0 ]['addresses' ]) == 0 )
111
- assert not l2 .daemon .is_in_log ("Update our node_announcement for discovered address: 127.0.0.1:9735 " )
111
+ assert not l2 .daemon .is_in_log ("Update our node_announcement for discovered address: 127.0.0.1:19846 " )
112
112
113
113
# connect second node. This will not yet trigger `node_annoucement` update,
114
114
# as we again do not have a channel at the time we connected.
@@ -118,20 +118,20 @@ def test_remote_addr(node_factory, bitcoind):
118
118
# fund channel and check we didn't send Update earlier already
119
119
l2 .fundchannel (l3 , wait_for_active = True )
120
120
bitcoind .generate_block (5 )
121
- assert not l2 .daemon .is_in_log ("Update our node_announcement for discovered address: 127.0.0.1:9735 " )
121
+ assert not l2 .daemon .is_in_log ("Update our node_announcement for discovered address: 127.0.0.1:19846 " )
122
122
123
123
# restart, reconnect and re-check for updated node_annoucement. This time
124
124
# l2 sees that two different peers with channel reported the same `remote_addr`.
125
125
l3 .restart ()
126
126
l2 .rpc .connect (l3 .info ['id' ], 'localhost' , l3 .port )
127
127
l2 .daemon .wait_for_log ("Peer says it sees our address as: 127.0.0.1:[0-9]{5}" )
128
- l2 .daemon .wait_for_log ("Update our node_announcement for discovered address: 127.0.0.1:9735 " )
128
+ l2 .daemon .wait_for_log ("Update our node_announcement for discovered address: 127.0.0.1:19846 " )
129
129
l1 .daemon .wait_for_log (f"Received node_announcement for node { l2 .info ['id' ]} " )
130
130
131
131
address = l1 .rpc .listnodes (l2 .info ['id' ])['nodes' ][0 ]['addresses' ][0 ]
132
132
assert address ['type' ] == "ipv4"
133
133
assert address ['address' ] == "127.0.0.1"
134
- assert address ['port' ] == 9735
134
+ assert address ['port' ] == 19846
135
135
136
136
137
137
@pytest .mark .developer ("needs DEVELOPER=1 for fast gossip and --dev-allow-localhost for local remote_addr" )
0 commit comments