Skip to content

Commit 8334e13

Browse files
committed
pr comments
1 parent 69f95a2 commit 8334e13

File tree

2 files changed

+0
-28
lines changed
  • src/jormungandr

2 files changed

+0
-28
lines changed

src/jormungandr/jormungandr/src/settings/start/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ fn generate_network(
287287
.transpose()?
288288
.unwrap_or_default();
289289

290-
// TODO: do we want to check that we end up with a valid address?
291-
// Is it possible for a node to specify no public address?
292290
let config_addr = p2p.connection.public_address;
293291
let public_address = command_arguments
294292
.public_address

src/jormungandr/testing/jormungandr-integration-tests/src/networking/p2p/public_traffic.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ pub fn test_public_node_cannot_publish() {
121121
.build()
122122
.unwrap();
123123

124-
//
125-
//
126124
// Get addresses of nodes for whitelisting
127125
let internal_node_addr = network_controller
128126
.node_config(INTERNAL_NODE)
@@ -149,8 +147,6 @@ pub fn test_public_node_cannot_publish() {
149147

150148
println!("whitelist {:?}", whitelist);
151149

152-
//
153-
//
154150
// add whitelists to nodes config
155151
let mut internal_node_config = network_controller.node_config(INTERNAL_NODE).unwrap();
156152

@@ -168,8 +164,6 @@ pub fn test_public_node_cannot_publish() {
168164

169165
public_node_config.p2p.connection.whitelist = Some(whitelist.clone());
170166

171-
//
172-
//
173167
// spin up internal nodes
174168
let params = SpawnParams::new(INTERNAL_NODE)
175169
.gossip_interval(Duration::new(1, 0))
@@ -189,8 +183,6 @@ pub fn test_public_node_cannot_publish() {
189183

190184
let _client_internal_2 = network_controller.spawn(params).unwrap();
191185

192-
//
193-
//
194186
// node from internal network exposed to public
195187

196188
let params = SpawnParams::new(GATEWAY)
@@ -202,8 +194,6 @@ pub fn test_public_node_cannot_publish() {
202194

203195
let _gateway = network_controller.spawn(params).unwrap();
204196

205-
//
206-
//
207197
// simulate node in the wild
208198
let address: Multiaddr = "/ip4/80.9.12.3/tcp/0".parse().unwrap();
209199

@@ -217,8 +207,6 @@ pub fn test_public_node_cannot_publish() {
217207

218208
let _client_public = network_controller.spawn(params).unwrap();
219209

220-
//
221-
//
222210
// public node sends fragments to network
223211
// it should fail as they public node is not whitelisted
224212
let mut alice = network_controller.controlled_wallet(ALICE).unwrap();
@@ -268,8 +256,6 @@ pub fn test_public_node_synced_with_internal() {
268256
.build()
269257
.unwrap();
270258

271-
//
272-
//
273259
// Get addresses of nodes for whitelisting
274260
let internal_node_addr = network_controller
275261
.node_config(INTERNAL_NODE)
@@ -296,8 +282,6 @@ pub fn test_public_node_synced_with_internal() {
296282

297283
println!("whitelist {:?}", whitelist);
298284

299-
//
300-
//
301285
// add whitelists to nodes config
302286
let mut internal_node_config = network_controller.node_config(INTERNAL_NODE).unwrap();
303287

@@ -315,8 +299,6 @@ pub fn test_public_node_synced_with_internal() {
315299

316300
public_node_config.p2p.connection.whitelist = Some(whitelist.clone());
317301

318-
//
319-
//
320302
// spin up internal nodes
321303
let params = SpawnParams::new(INTERNAL_NODE)
322304
.gossip_interval(Duration::new(1, 0))
@@ -336,8 +318,6 @@ pub fn test_public_node_synced_with_internal() {
336318

337319
let _client_internal_2 = network_controller.spawn(params).unwrap();
338320

339-
//
340-
//
341321
// node from internal network exposed to public
342322

343323
let params = SpawnParams::new(GATEWAY)
@@ -349,8 +329,6 @@ pub fn test_public_node_synced_with_internal() {
349329

350330
let _gateway = network_controller.spawn(params).unwrap();
351331

352-
//
353-
//
354332
// simulate node in the wild
355333
let address: Multiaddr = "/ip4/80.9.12.3/tcp/0".parse().unwrap();
356334

@@ -364,8 +342,6 @@ pub fn test_public_node_synced_with_internal() {
364342

365343
let _client_public = network_controller.spawn(params).unwrap();
366344

367-
//
368-
//
369345
// internal node sends fragments to network
370346
// fragments should be propagated to the publish node (which can consume but not publish)
371347
let mut alice = network_controller.controlled_wallet(ALICE).unwrap();
@@ -386,8 +362,6 @@ pub fn test_public_node_synced_with_internal() {
386362

387363
utils::wait(10);
388364

389-
//
390-
//
391365
// account states should be the same
392366

393367
let public_state_a = _client_internal_2

0 commit comments

Comments
 (0)