diff --git a/internal/utils/configfile_test.go b/internal/utils/configfile_test.go index 081fc1c93..681a18d28 100644 --- a/internal/utils/configfile_test.go +++ b/internal/utils/configfile_test.go @@ -16,6 +16,7 @@ func TestReadWalletProfile(t *testing.T) { ChainID: params.MainnetChainID.String(), Bootnodes: []string{"127.0.0.1:9000/abcd", "127.0.0.1:9999/daeg"}, Shards: 4, + Network: "mainnet", RPCServer: [][]p2p.Peer{ { { @@ -64,6 +65,7 @@ func TestReadWalletProfile(t *testing.T) { ChainID: params.TestnetChainID.String(), Bootnodes: []string{"192.168.0.1:9990/abcd", "127.0.0.1:8888/daeg"}, Shards: 3, + Network: "testnet", RPCServer: [][]p2p.Peer{ { { diff --git a/internal/utils/test.ini b/internal/utils/test.ini index eae36c213..370e1ee17 100644 --- a/internal/utils/test.ini +++ b/internal/utils/test.ini @@ -2,6 +2,7 @@ bootnode = 127.0.0.1:9000/abcd bootnode = 127.0.0.1:9999/daeg shards = 4 +network = mainnet [default.shard0.rpc] rpc = 127.0.0.4:8888 @@ -23,6 +24,7 @@ rpc = 192.168.0.3:9876 bootnode = 192.168.0.1:9990/abcd bootnode = 127.0.0.1:8888/daeg shards = 3 +network = testnet [testnet.shard0.rpc] rpc = 192.168.2.3:8888