@@ -52,7 +52,6 @@ func TestHarmonyFlags(t *testing.T) {
5252 "/ip4/13.113.101.219/tcp/12019/p2p/QmQayinFSgMMw5cSpDUiD9pQ2WeP6WNmGxpZ6ou3mdVFJX" ,
5353 "/ip4/99.81.170.167/tcp/12019/p2p/QmRVbTpEYup8dSaURZfF6ByrMTSKa4UyUzJhSjahFzRqNj" ,
5454 },
55- TrustedNodes : []string {},
5655 },
5756 Localnet : harmonyconfig.LocalnetConfig {
5857 BlocksPerEpoch : 64 ,
@@ -370,19 +369,17 @@ func TestNetworkFlags(t *testing.T) {
370369 args : []string {},
371370 expConfig : harmonyconfig.HarmonyConfig {
372371 Network : harmonyconfig.NetworkConfig {
373- NetworkType : defNetworkType ,
374- BootNodes : nodeconfig .GetDefaultBootNodes (defNetworkType ),
375- TrustedNodes : []string {},
372+ NetworkType : defNetworkType ,
373+ BootNodes : nodeconfig .GetDefaultBootNodes (defNetworkType ),
376374 },
377375 DNSSync : GetDefaultDNSSyncConfig (defNetworkType )},
378376 },
379377 {
380378 args : []string {"-n" , "stn" },
381379 expConfig : harmonyconfig.HarmonyConfig {
382380 Network : harmonyconfig.NetworkConfig {
383- NetworkType : nodeconfig .Stressnet ,
384- BootNodes : nodeconfig .GetDefaultBootNodes (nodeconfig .Stressnet ),
385- TrustedNodes : []string {},
381+ NetworkType : nodeconfig .Stressnet ,
382+ BootNodes : nodeconfig .GetDefaultBootNodes (nodeconfig .Stressnet ),
386383 },
387384 DNSSync : GetDefaultDNSSyncConfig (nodeconfig .Stressnet ),
388385 },
@@ -392,9 +389,8 @@ func TestNetworkFlags(t *testing.T) {
392389 "--dns.port" , "9001" , "--dns.server-port" , "9002" },
393390 expConfig : harmonyconfig.HarmonyConfig {
394391 Network : harmonyconfig.NetworkConfig {
395- NetworkType : "pangaea" ,
396- BootNodes : []string {"1" , "2" , "3" , "4" },
397- TrustedNodes : []string {},
392+ NetworkType : "pangaea" ,
393+ BootNodes : []string {"1" , "2" , "3" , "4" },
398394 },
399395 DNSSync : harmonyconfig.DnsSync {
400396 Port : 9001 ,
@@ -409,9 +405,8 @@ func TestNetworkFlags(t *testing.T) {
409405 "--dns_port" , "9001" },
410406 expConfig : harmonyconfig.HarmonyConfig {
411407 Network : harmonyconfig.NetworkConfig {
412- NetworkType : "pangaea" ,
413- BootNodes : []string {"1" , "2" , "3" , "4" },
414- TrustedNodes : []string {},
408+ NetworkType : "pangaea" ,
409+ BootNodes : []string {"1" , "2" , "3" , "4" },
415410 },
416411 DNSSync : harmonyconfig.DnsSync {
417412 Port : 9001 ,
0 commit comments