chore_: rename shards.test to status.prod (#5571)
This commit is contained in:
parent
bf6c0c4cc6
commit
0e982f1a3d
|
@ -1478,13 +1478,13 @@ func TestSetFleet(t *testing.T) {
|
|||
|
||||
accountsDB, err := b.accountsDB()
|
||||
require.NoError(t, err)
|
||||
err = accountsDB.SaveSettingField(settings.Fleet, params.FleetShardsTest)
|
||||
err = accountsDB.SaveSettingField(settings.Fleet, params.FleetStatusProd)
|
||||
require.NoError(t, err)
|
||||
|
||||
savedSettings, err = b.GetSettings()
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, savedSettings.Fleet)
|
||||
require.Equal(t, params.FleetShardsTest, *savedSettings.Fleet)
|
||||
require.Equal(t, params.FleetStatusProd, *savedSettings.Fleet)
|
||||
|
||||
require.NoError(t, b.Logout())
|
||||
|
||||
|
@ -1500,7 +1500,7 @@ func TestSetFleet(t *testing.T) {
|
|||
t.FailNow()
|
||||
}
|
||||
// Check is using the right fleet
|
||||
require.Equal(t, b.config.ClusterConfig.WakuNodes, params.DefaultWakuNodes(params.FleetShardsTest))
|
||||
require.Equal(t, b.config.ClusterConfig.WakuNodes, params.DefaultWakuNodes(params.FleetStatusProd))
|
||||
|
||||
require.NoError(t, b.Logout())
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ const DefaultVerifyTransactionChainID = 1
|
|||
|
||||
var paths = []string{pathWalletRoot, pathEIP1581, pathDefaultChat, pathDefaultWallet, pathEncryption}
|
||||
|
||||
var DefaultFleet = params.FleetShardsTest
|
||||
var DefaultFleet = params.FleetStatusProd
|
||||
|
||||
var overrideApiConfig = overrideApiConfigProd
|
||||
|
||||
|
@ -154,7 +154,7 @@ func SetFleet(fleet string, nodeConfig *params.NodeConfig) error {
|
|||
nodeConfig.ClusterConfig.WakuNodes = params.DefaultWakuNodes(fleet)
|
||||
nodeConfig.ClusterConfig.DiscV5BootstrapNodes = params.DefaultDiscV5Nodes(fleet)
|
||||
|
||||
if fleet == params.FleetShardsTest {
|
||||
if fleet == params.FleetStatusProd {
|
||||
nodeConfig.ClusterConfig.ClusterID = shardsTestClusterID
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,28 @@
|
|||
UPDATE settings SET fleet = "status.prod" WHERE fleet = "shards.test";
|
||||
|
||||
UPDATE cluster_config SET fleet = "status.prod" WHERE fleet = "shards.test";
|
||||
|
||||
UPDATE cluster_nodes
|
||||
SET node = "enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.prod.status.nodes.status.im"
|
||||
WHERE node = "enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im"
|
||||
AND type = "discV5boot";
|
||||
|
||||
UPDATE cluster_nodes
|
||||
SET node = "enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.prod.status.nodes.status.im"
|
||||
WHERE node = "enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im"
|
||||
AND type = "waku";
|
||||
|
||||
UPDATE cluster_nodes
|
||||
SET node = "enr:-QEKuED9AJm2HGgrRpVaJY2nj68ao_QiPeUT43sK-aRM7sMJ6R4G11OSDOwnvVacgN1sTw-K7soC5dzHDFZgZkHU0u-XAYJpZIJ2NIJpcISnYxMvim11bHRpYWRkcnO4WgAqNiVib290LTAxLmRvLWFtczMuc3RhdHVzLnByb2Quc3RhdHVzLmltBnZfACw2JWJvb3QtMDEuZG8tYW1zMy5zdGF0dXMucHJvZC5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEC3rRtFQSgc24uWewzXaxTY8hDAHB8sgnxr9k8Rjb5GeSDdGNwgnZfg3VkcIIjKIV3YWt1Mg0"
|
||||
WHERE node = "enr:-QEKuECA0zhRJej2eaOoOPddNc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AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaECxjqgDQ0WyRSOilYU32DA5k_XNlDis3m1VdXkK9xM6kODdGNwgnZfg3VkcIIjKIV3YWt1Mg0"
|
||||
AND type = "discV5boot";
|
||||
|
||||
UPDATE cluster_nodes
|
||||
SET node = "enr:-QEcuEAoShWGyN66wwusE3Ri8hXBaIkoHZHybUB8cCPv5v3ypEf9OCg4cfslJxZFANl90s-jmMOugLUyBx4EfOBNJ6_VAYJpZIJ2NIJpcIQI2hdMim11bHRpYWRkcnO4bAAzNi5ib290LTAxLmFjLWNuLWhvbmdrb25nLWMuc3RhdHVzLnByb2Quc3RhdHVzLmltBnZfADU2LmJvb3QtMDEuYWMtY24taG9uZ2tvbmctYy5zdGF0dXMucHJvZC5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEDP7CbRk-YKJwOFFM4Z9ney0GPc7WPJaCwGkpNRyla7mCDdGNwgnZfg3VkcIIjKIV3YWt1Mg0"
|
||||
WHERE node = "enr:-QEcuEAX6Qk-vVAoJLxR4A_4UVogGhvQrqKW4DFKlf8MA1PmCjgowL-LBtSC9BLjXbb8gf42FdDHGtSjEvvWKD10erxqAYJpZIJ2NIJpcIQI2hdMim11bHRpYWRkcnO4bAAzNi5ib290LTAxLmFjLWNuLWhvbmdrb25nLWMuc2hhcmRzLnRlc3Quc3RhdHVzLmltBnZfADU2LmJvb3QtMDEuYWMtY24taG9uZ2tvbmctYy5zaGFyZHMudGVzdC5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEDP7CbRk-YKJwOFFM4Z9ney0GPc7WPJaCwGkpNRyla7mCDdGNwgnZfg3VkcIIjKIV3YWt1Mg0"
|
||||
AND type = "discV5boot";
|
|
@ -309,7 +309,7 @@ func defaultNodeConfig(installationID string) (*params.NodeConfig, error) {
|
|||
|
||||
nodeConfig.Name = "StatusIM"
|
||||
nodeConfig.Rendezvous = false
|
||||
clusterConfig, err := params.LoadClusterConfigFromFleet("shards.test")
|
||||
clusterConfig, err := params.LoadClusterConfigFromFleet("status.prod")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ var CommonFlags = []cli.Flag{
|
|||
&cli.StringFlag{
|
||||
Name: FleetFlag,
|
||||
Aliases: []string{"f"},
|
||||
Usage: "The fleet to use for the node, e.g.: status.staging, shards.test",
|
||||
Usage: "The fleet to use for the node, e.g.: status.staging, status.prod",
|
||||
Value: "status.staging",
|
||||
Required: false,
|
||||
},
|
||||
|
|
|
@ -73,7 +73,6 @@ var (
|
|||
[]string{
|
||||
params.FleetProd,
|
||||
params.FleetStatusStaging,
|
||||
params.FleetShardsTest,
|
||||
params.FleetStatusProd,
|
||||
params.FleetStatusTest,
|
||||
params.FleetWakuSandbox,
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
"Rendezvous": false,
|
||||
"NoDiscovery": true,
|
||||
"ClusterConfig": {
|
||||
"ClusterID": 16,
|
||||
"Enabled": true,
|
||||
"Fleet": "shards.test",
|
||||
"BootNodes": [],
|
||||
"TrustedMailServers": [],
|
||||
"PushNotificationsServers": [
|
||||
"401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a",
|
||||
"181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4",
|
||||
"5ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7"
|
||||
],
|
||||
"StaticNodes": [],
|
||||
"RendezvousNodes": [],
|
||||
"WakuNodes": [
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im",
|
||||
"/dns4/boot-01.do-ams3.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmAR24Mbb6VuzoyUiGx42UenDkshENVDj4qnmmbabLvo31",
|
||||
"/dns4/boot-01.gc-us-central1-a.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAm8mUZ18tBWPXDQsaF7PbCKYA35z7WB2xNZH2EVq1qS8LJ",
|
||||
"/dns4/boot-01.ac-cn-hongkong-c.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmGwcE8v7gmJNEWFtZtojYpPMTHy2jBLL6xRk33qgDxFWX"
|
||||
],
|
||||
"DiscV5BootstrapNodes": [
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im",
|
||||
"/dns4/boot-01.do-ams3.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmAR24Mbb6VuzoyUiGx42UenDkshENVDj4qnmmbabLvo31",
|
||||
"/dns4/boot-01.gc-us-central1-a.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAm8mUZ18tBWPXDQsaF7PbCKYA35z7WB2xNZH2EVq1qS8LJ",
|
||||
"/dns4/boot-01.ac-cn-hongkong-c.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmGwcE8v7gmJNEWFtZtojYpPMTHy2jBLL6xRk33qgDxFWX"
|
||||
]
|
||||
},
|
||||
"WakuV2Config": {
|
||||
"Enabled": true
|
||||
}
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
"Rendezvous": false,
|
||||
"NoDiscovery": true,
|
||||
"ClusterConfig": {
|
||||
"ClusterID": 16,
|
||||
"Enabled": true,
|
||||
"Fleet": "status.prod",
|
||||
"BootNodes": [],
|
||||
|
@ -14,12 +15,16 @@
|
|||
"StaticNodes": [],
|
||||
"RendezvousNodes": [],
|
||||
"WakuNodes": [
|
||||
"/dns4/node-01.do-ams3.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAm6HZZr7aToTvEBPpiys4UxajCTU97zj5v7RNR2gbniy1D",
|
||||
"/dns4/node-02.do-ams3.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmSve7tR5YZugpskMv2dmJAsMUKmfWYEKRXNUxRaTCnsXV",
|
||||
"/dns4/node-01.gc-us-central1-a.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAkwBp8T6G77kQXSNMnxgaMky1JeyML5yqoTHRM8dbeCBNb",
|
||||
"/dns4/node-02.gc-us-central1-a.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmDQugwDHM3YeUp86iGjrUvbdw3JPRgikC7YoGBsT2ymMg",
|
||||
"/dns4/node-01.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAkvEZgh3KLwhLwXg95e5ojM8XykJ4Kxi2T7hk22rnA7pJC",
|
||||
"/dns4/node-02.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmFy8BrJhCEmCYrUfBdSNkrPw6VHExtv4rRp1DSBnCPgx8"
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.prod.status.nodes.status.im",
|
||||
"/dns4/boot-01.do-ams3.status.prod.status.im/tcp/30303/p2p/16Uiu2HAmAR24Mbb6VuzoyUiGx42UenDkshENVDj4qnmmbabLvo31",
|
||||
"/dns4/boot-01.gc-us-central1-a.status.prod.status.im/tcp/30303/p2p/16Uiu2HAm8mUZ18tBWPXDQsaF7PbCKYA35z7WB2xNZH2EVq1qS8LJ",
|
||||
"/dns4/boot-01.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmGwcE8v7gmJNEWFtZtojYpPMTHy2jBLL6xRk33qgDxFWX"
|
||||
],
|
||||
"DiscV5BootstrapNodes": [
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVS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AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEDP7CbRk-YKJwOFFM4Z9ney0GPc7WPJaCwGkpNRyla7mCDdGNwgnZfg3VkcIIjKIV3YWt1Mg0"
|
||||
]
|
||||
},
|
||||
"WakuV2Config": {
|
||||
|
|
|
@ -12,6 +12,7 @@ import (
|
|||
"crypto/sha256"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
@ -21,7 +22,7 @@ import (
|
|||
func bindataRead(data []byte, name string) ([]byte, error) {
|
||||
gz, err := gzip.NewReader(bytes.NewBuffer(data))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("read %q: %w", name, err)
|
||||
return nil, fmt.Errorf("read %q: %v", name, err)
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
@ -29,7 +30,7 @@ func bindataRead(data []byte, name string) ([]byte, error) {
|
|||
clErr := gz.Close()
|
||||
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("read %q: %w", name, err)
|
||||
return nil, fmt.Errorf("read %q: %v", name, err)
|
||||
}
|
||||
if clErr != nil {
|
||||
return nil, err
|
||||
|
@ -85,7 +86,7 @@ func _1557732988_initialize_dbDownSql() (*asset, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "1557732988_initialize_db.down.sql", size: 72, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)}
|
||||
info := bindataFileInfo{name: "1557732988_initialize_db.down.sql", size: 72, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)}
|
||||
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x77, 0x40, 0x78, 0xb7, 0x71, 0x3c, 0x20, 0x3b, 0xc9, 0xb, 0x2f, 0x49, 0xe4, 0xff, 0x1c, 0x84, 0x54, 0xa1, 0x30, 0xe3, 0x90, 0xf8, 0x73, 0xda, 0xb0, 0x2a, 0xea, 0x8e, 0xf1, 0x82, 0xe7, 0xd2}}
|
||||
return a, nil
|
||||
}
|
||||
|
@ -105,7 +106,7 @@ func _1557732988_initialize_dbUpSql() (*asset, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "1557732988_initialize_db.up.sql", size: 278, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)}
|
||||
info := bindataFileInfo{name: "1557732988_initialize_db.up.sql", size: 278, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)}
|
||||
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf5, 0x85, 0x41, 0x7a, 0xba, 0x4f, 0xa3, 0x43, 0xc0, 0x63, 0xfa, 0x2c, 0xd1, 0xc5, 0xbb, 0x20, 0xa0, 0x64, 0xa8, 0x3b, 0x65, 0x82, 0xa2, 0x14, 0x28, 0x18, 0x7c, 0x8b, 0x3a, 0x7a, 0xfd, 0xe0}}
|
||||
return a, nil
|
||||
}
|
||||
|
@ -125,7 +126,7 @@ func staticGo() (*asset, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "static.go", size: 198, mode: os.FileMode(0644), modTime: time.Unix(1700000000, 0)}
|
||||
info := bindataFileInfo{name: "static.go", size: 198, mode: os.FileMode(0664), modTime: time.Unix(1700000000, 0)}
|
||||
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb, 0xd2, 0xfd, 0xbf, 0xe5, 0xff, 0xcb, 0x54, 0xec, 0x41, 0x23, 0x7b, 0xc0, 0xeb, 0x55, 0xb8, 0x69, 0xd7, 0x57, 0xf1, 0x83, 0x13, 0x88, 0x55, 0xd9, 0x73, 0xdc, 0x93, 0xee, 0x23, 0xe3, 0xe9}}
|
||||
return a, nil
|
||||
}
|
||||
|
@ -222,24 +223,21 @@ func AssetNames() []string {
|
|||
// _bindata is a table, holding each asset generator, mapped to its name.
|
||||
var _bindata = map[string]func() (*asset, error){
|
||||
"1557732988_initialize_db.down.sql": _1557732988_initialize_dbDownSql,
|
||||
|
||||
"1557732988_initialize_db.up.sql": _1557732988_initialize_dbUpSql,
|
||||
|
||||
"static.go": staticGo,
|
||||
}
|
||||
|
||||
// AssetDebug is true if the assets were built with the debug flag enabled.
|
||||
const AssetDebug = false
|
||||
|
||||
// AssetDir returns the file names below a certain
|
||||
// directory embedded in the file by go-bindata.
|
||||
// For example if you run go-bindata on data/... and data contains the
|
||||
// following hierarchy:
|
||||
//
|
||||
// data/
|
||||
// foo.txt
|
||||
// img/
|
||||
// a.png
|
||||
// b.png
|
||||
//
|
||||
// then AssetDir("data") would return []string{"foo.txt", "img"},
|
||||
// AssetDir("data/img") would return []string{"a.png", "b.png"},
|
||||
// AssetDir("foo.txt") and AssetDir("notexist") would return an error, and
|
||||
|
@ -272,9 +270,9 @@ type bintree struct {
|
|||
}
|
||||
|
||||
var _bintree = &bintree{nil, map[string]*bintree{
|
||||
"1557732988_initialize_db.down.sql": {_1557732988_initialize_dbDownSql, map[string]*bintree{}},
|
||||
"1557732988_initialize_db.up.sql": {_1557732988_initialize_dbUpSql, map[string]*bintree{}},
|
||||
"static.go": {staticGo, map[string]*bintree{}},
|
||||
"1557732988_initialize_db.down.sql": &bintree{_1557732988_initialize_dbDownSql, map[string]*bintree{}},
|
||||
"1557732988_initialize_db.up.sql": &bintree{_1557732988_initialize_dbUpSql, map[string]*bintree{}},
|
||||
"static.go": &bintree{staticGo, map[string]*bintree{}},
|
||||
}}
|
||||
|
||||
// RestoreAsset restores an asset under the given directory.
|
||||
|
@ -291,7 +289,7 @@ func RestoreAsset(dir, name string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = os.WriteFile(_filePath(dir, name), data, info.Mode())
|
||||
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ const (
|
|||
FleetUndefined = ""
|
||||
FleetProd = "eth.prod"
|
||||
FleetStatusStaging = "status.staging"
|
||||
FleetShardsTest = "shards.test"
|
||||
FleetStatusProd = "status.prod"
|
||||
FleetStatusTest = "status.test"
|
||||
FleetWakuSandbox = "waku.sandbox"
|
||||
|
@ -41,15 +40,15 @@ var supportedFleets = map[FleetName]map[NodeType][]string{
|
|||
"enr:-QEiuECJPv2vL00Jp5sTEMAFyW7qXkK2cFgphlU_G8-FJuJqoW_D5aWIy3ylGdv2K8DkiG7PWgng4Ql_VI7Qc2RhBdwfAYJpZIJ2NIJpcIQvTKi6im11bHRpYWRkcnO4cgA2NjFib290LTAxLmFjLWNuLWhvbmdrb25nLWMuc3RhdHVzLnN0YWdpbmcuc3RhdHVzLmltBnZfADg2MWJvb3QtMDEuYWMtY24taG9uZ2tvbmctYy5zdGF0dXMuc3RhZ2luZy5zdGF0dXMuaW0GAbveA4Jyc40AEAUAAQAgAEAAgAEAiXNlY3AyNTZrMaEDkbgV7oqPNmFtX5FzSPi9WH8kkmrPB1R3n9xRXge91M-DdGNwgnZfg3VkcIIjKIV3YWt1Mg0",
|
||||
},
|
||||
},
|
||||
FleetShardsTest: {
|
||||
FleetStatusProd: {
|
||||
WakuNodes: {
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im",
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.prod.status.nodes.status.im",
|
||||
},
|
||||
DiscV5BootstrapNodes: {
|
||||
"enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im",
|
||||
"enr:-QEKuECA0zhRJej2eaOoOPddNcYr7-5NdRwuoLCe2EE4wfEYkAZhFotg6Kkr8K15pMAGyUyt0smHkZCjLeld0BUzogNtAYJpZIJ2NIJpcISnYxMvim11bHRpYWRkcnO4WgAqNiVib290LTAxLmRvLWFtczMuc2hhcmRzLnRlc3Quc3RhdHVzLmltBnZfACw2JWJ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wOFFM4Z9ney0GPc7WPJaCwGkpNRyla7mCDdGNwgnZfg3VkcIIjKIV3YWt1Mg0",
|
||||
},
|
||||
},
|
||||
FleetWakuSandbox: {
|
||||
|
|
|
@ -856,17 +856,17 @@ var testFetchRealCommunityExample = []struct {
|
|||
ExpectedDescriptionEnvelopes []string
|
||||
}{
|
||||
{
|
||||
//Example 1, status.prod fleet
|
||||
//Example 1,
|
||||
CommunityID: "0x03073514d4c14a7d10ae9fc9b0f05abc904d84166a6ac80add58bf6a3542a4e50a",
|
||||
CommunityShard: nil,
|
||||
Fleet: params.FleetStatusProd,
|
||||
ClusterID: shard.MainStatusShardCluster,
|
||||
},
|
||||
{
|
||||
// Example 3, shards.test fleet
|
||||
// Example 3,
|
||||
// https://status.app/c/CxiACi8KFGFwIHJlcSAxIHN0dCBiZWMgbWVtEgdkc2Fkc2FkGAMiByM0MzYwREYqAxkrHAM=#zQ3shwDYZHtrLE7NqoTGjTWzWUu6hom5D4qxfskLZfgfyGRyL
|
||||
CommunityID: "0x03f64be95ed5c925022265f9250f538f65ed3dcf6e4ef6c139803dc02a3487ae7b",
|
||||
Fleet: params.FleetShardsTest,
|
||||
Fleet: params.FleetStatusProd,
|
||||
ClusterID: shard.MainStatusShardCluster,
|
||||
|
||||
CheckExpectedEnvelopes: true,
|
||||
|
@ -967,9 +967,9 @@ var testFetchRealCommunityExample = []struct {
|
|||
},
|
||||
},
|
||||
{
|
||||
//Example 1, shards.test fleet
|
||||
//Example 1,
|
||||
CommunityID: "0x02471dd922756a3a50b623e59cf3b99355d6587e43d5c517eb55f9aea9d3fe9fe9",
|
||||
Fleet: params.FleetShardsTest,
|
||||
Fleet: params.FleetStatusProd,
|
||||
ClusterID: shard.MainStatusShardCluster,
|
||||
CheckExpectedEnvelopes: true,
|
||||
ExpectedShardEnvelopes: []string{
|
||||
|
@ -986,7 +986,7 @@ var testFetchRealCommunityExample = []struct {
|
|||
{
|
||||
CommunityURL: "https://status.app/c/G4IAAMQn9ucHF-V3W5Ouuy0xf0BtTjlwCANJEmwB2CG5p2xKUYzK_l37kzXulUppltT1t6mBcCEJsljRoGrKCP7rWommQomrMA2gBN7RrvCMkFqQwnCNzkNYWrLG85E6GVoM_nolTtfIzl53J1N-tj8fz4_TnO4IIw==#zQ3shZeEJqTC1xhGUjxuS4rtHSrhJ8vUYp64v6qWkLpvdy9L9",
|
||||
//CommunityID: "0x02b5bdaf5a25fcfe2ee14c501fab1836b8de57f61621080c3d52073d16de0d98d6",
|
||||
Fleet: params.FleetShardsTest,
|
||||
Fleet: params.FleetStatusProd,
|
||||
OwnerPublicKey: "0x04953f5f0d355b37c39d1d6460a31ed1114455f8263b3fd1b84406c5f12c9eb7dfb76ba7513b92186010928254984fe98aee069b4c7e20f9ea3da497c3ae769477",
|
||||
CommunityTokens: []testFetchRealCommunityExampleTokenInfo{
|
||||
{
|
||||
|
|
|
@ -105,42 +105,6 @@ func DefaultMailservers() []Mailserver {
|
|||
Fleet: params.FleetWakuTest,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-01.ac-cn-hongkong-c.status.prod",
|
||||
Address: "/dns4/node-01.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAkvEZgh3KLwhLwXg95e5ojM8XykJ4Kxi2T7hk22rnA7pJC",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-01.do-ams3.status.prod",
|
||||
Address: "/dns4/node-01.do-ams3.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAm6HZZr7aToTvEBPpiys4UxajCTU97zj5v7RNR2gbniy1D",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-01.gc-us-central1-a.status.prod",
|
||||
Address: "/dns4/node-01.gc-us-central1-a.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAkwBp8T6G77kQXSNMnxgaMky1JeyML5yqoTHRM8dbeCBNb",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-02.ac-cn-hongkong-c.status.prod",
|
||||
Address: "/dns4/node-02.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmFy8BrJhCEmCYrUfBdSNkrPw6VHExtv4rRp1DSBnCPgx8",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-02.do-ams3.status.prod",
|
||||
Address: "/dns4/node-02.do-ams3.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmSve7tR5YZugpskMv2dmJAsMUKmfWYEKRXNUxRaTCnsXV",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-02.gc-us-central1-a.status.prod",
|
||||
Address: "/dns4/node-02.gc-us-central1-a.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmDQugwDHM3YeUp86iGjrUvbdw3JPRgikC7YoGBsT2ymMg",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "node-01.ac-cn-hongkong-c.status.test",
|
||||
Address: "/dns4/node-01.ac-cn-hongkong-c.status.test.statusim.net/tcp/30303/p2p/16Uiu2HAm2BjXxCp1sYFJQKpLLbPbwd5juxbsYofu3TsS3auvT9Yi",
|
||||
|
@ -160,39 +124,39 @@ func DefaultMailservers() []Mailserver {
|
|||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "store-01.do-ams3.shards.test",
|
||||
Address: "/dns4/store-01.do-ams3.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmAUdrQ3uwzuE4Gy4D56hX6uLKEeerJAnhKEHZ3DxF1EfT",
|
||||
Fleet: params.FleetShardsTest,
|
||||
ID: "store-01.do-ams3.status.prod",
|
||||
Address: "/dns4/store-01.do-ams3.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmAUdrQ3uwzuE4Gy4D56hX6uLKEeerJAnhKEHZ3DxF1EfT",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "store-02.do-ams3.shards.test",
|
||||
Address: "/dns4/store-02.do-ams3.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAm9aDJPkhGxc2SFcEACTFdZ91Q5TJjp76qZEhq9iF59x7R",
|
||||
Fleet: params.FleetShardsTest,
|
||||
ID: "store-02.do-ams3.status.prod",
|
||||
Address: "/dns4/store-02.do-ams3.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAm9aDJPkhGxc2SFcEACTFdZ91Q5TJjp76qZEhq9iF59x7R",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "store-01.gc-us-central1-a.shards.test",
|
||||
Address: "/dns4/store-01.gc-us-central1-a.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmMELCo218hncCtTvC2Dwbej3rbyHQcR8erXNnKGei7WPZ",
|
||||
Fleet: params.FleetShardsTest,
|
||||
ID: "store-01.gc-us-central1-a.status.prod",
|
||||
Address: "/dns4/store-01.gc-us-central1-a.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmMELCo218hncCtTvC2Dwbej3rbyHQcR8erXNnKGei7WPZ",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "store-02.gc-us-central1-a.shards.test",
|
||||
Address: "/dns4/store-02.gc-us-central1-a.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmJnVR7ZzFaYvciPVafUXuYGLHPzSUigqAmeNw9nJUVGeM",
|
||||
Fleet: params.FleetShardsTest,
|
||||
ID: "store-02.gc-us-central1-a.status.prod",
|
||||
Address: "/dns4/store-02.gc-us-central1-a.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAmJnVR7ZzFaYvciPVafUXuYGLHPzSUigqAmeNw9nJUVGeM",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "store-01.ac-cn-hongkong-c.shards.test",
|
||||
Address: "/dns4/store-01.ac-cn-hongkong-c.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAm2M7xs7cLPc3jamawkEqbr7cUJX11uvY7LxQ6WFUdUKUT",
|
||||
Fleet: params.FleetShardsTest,
|
||||
ID: "store-01.ac-cn-hongkong-c.status.prod",
|
||||
Address: "/dns4/store-01.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAm2M7xs7cLPc3jamawkEqbr7cUJX11uvY7LxQ6WFUdUKUT",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
ID: "store-02.ac-cn-hongkong-c.shards.test",
|
||||
Address: "/dns4/store-02.ac-cn-hongkong-c.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAm9CQhsuwPR54q27kNj9iaQVfyRzTGKrhFmr94oD8ujU6P",
|
||||
Fleet: params.FleetShardsTest,
|
||||
ID: "store-02.ac-cn-hongkong-c.status.prod",
|
||||
Address: "/dns4/store-02.ac-cn-hongkong-c.status.prod.statusim.net/tcp/30303/p2p/16Uiu2HAm9CQhsuwPR54q27kNj9iaQVfyRzTGKrhFmr94oD8ujU6P",
|
||||
Fleet: params.FleetStatusProd,
|
||||
Version: 2,
|
||||
},
|
||||
Mailserver{
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue