Revert "node: move oasis to testnet mode"
This reverts commit 9ad792c6ee
.
commit-id:896988bd
This commit is contained in:
parent
b59c696a6c
commit
17508ff29c
|
@ -101,10 +101,10 @@ func runListNodes(cmd *cobra.Command, args []string) {
|
||||||
{"BSC", vaa.ChainIDBSC},
|
{"BSC", vaa.ChainIDBSC},
|
||||||
{"Polygon", vaa.ChainIDPolygon},
|
{"Polygon", vaa.ChainIDPolygon},
|
||||||
{"Avalanche", vaa.ChainIDAvalanche},
|
{"Avalanche", vaa.ChainIDAvalanche},
|
||||||
|
{"Oasis", vaa.ChainIDOasis},
|
||||||
}
|
}
|
||||||
|
|
||||||
if isTestnet {
|
if isTestnet {
|
||||||
networks = append(networks, network{"Oasis", vaa.ChainIDOasis})
|
|
||||||
networks = append(networks, network{"Ropsten", vaa.ChainIDEthereumRopsten})
|
networks = append(networks, network{"Ropsten", vaa.ChainIDEthereumRopsten})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,8 +251,8 @@ func runNode(cmd *cobra.Command, args []string) {
|
||||||
readiness.RegisterComponent(common.ReadinessBSCSyncing)
|
readiness.RegisterComponent(common.ReadinessBSCSyncing)
|
||||||
readiness.RegisterComponent(common.ReadinessPolygonSyncing)
|
readiness.RegisterComponent(common.ReadinessPolygonSyncing)
|
||||||
readiness.RegisterComponent(common.ReadinessAvalancheSyncing)
|
readiness.RegisterComponent(common.ReadinessAvalancheSyncing)
|
||||||
if *testnetMode {
|
|
||||||
readiness.RegisterComponent(common.ReadinessOasisSyncing)
|
readiness.RegisterComponent(common.ReadinessOasisSyncing)
|
||||||
|
if *testnetMode {
|
||||||
readiness.RegisterComponent(common.ReadinessEthRopstenSyncing)
|
readiness.RegisterComponent(common.ReadinessEthRopstenSyncing)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,13 +342,10 @@ func runNode(cmd *cobra.Command, args []string) {
|
||||||
if *avalancheRPC == "" {
|
if *avalancheRPC == "" {
|
||||||
logger.Fatal("Please specify --avalancheRPC")
|
logger.Fatal("Please specify --avalancheRPC")
|
||||||
}
|
}
|
||||||
if *testnetMode {
|
|
||||||
if *oasisRPC == "" {
|
if *oasisRPC == "" {
|
||||||
logger.Fatal("Please specify --oasisRPC")
|
logger.Fatal("Please specify --oasisRPC")
|
||||||
}
|
}
|
||||||
if *oasisContract == "" {
|
if *testnetMode {
|
||||||
logger.Fatal("Please specify --oasisContract")
|
|
||||||
}
|
|
||||||
if *ethRopstenRPC == "" {
|
if *ethRopstenRPC == "" {
|
||||||
logger.Fatal("Please specify --ethRopstenRPC")
|
logger.Fatal("Please specify --ethRopstenRPC")
|
||||||
}
|
}
|
||||||
|
@ -569,12 +566,12 @@ func runNode(cmd *cobra.Command, args []string) {
|
||||||
ethereum.NewEthWatcher(*avalancheRPC, avalancheContractAddr, "avalanche", common.ReadinessAvalancheSyncing, vaa.ChainIDAvalanche, lockC, nil).Run); err != nil {
|
ethereum.NewEthWatcher(*avalancheRPC, avalancheContractAddr, "avalanche", common.ReadinessAvalancheSyncing, vaa.ChainIDAvalanche, lockC, nil).Run); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if *testnetMode {
|
|
||||||
if err := supervisor.Run(ctx, "oasiswatch",
|
if err := supervisor.Run(ctx, "oasiswatch",
|
||||||
ethereum.NewEthWatcher(*oasisRPC, oasisContractAddr, "oasis", common.ReadinessOasisSyncing, vaa.ChainIDOasis, lockC, nil).Run); err != nil {
|
ethereum.NewEthWatcher(*oasisRPC, oasisContractAddr, "oasis", common.ReadinessOasisSyncing, vaa.ChainIDOasis, lockC, nil).Run); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *testnetMode {
|
||||||
if err := supervisor.Run(ctx, "ethropstenwatch",
|
if err := supervisor.Run(ctx, "ethropstenwatch",
|
||||||
ethereum.NewEthWatcher(*ethRopstenRPC, ethRopstenContractAddr, "ethropsten", common.ReadinessEthRopstenSyncing, vaa.ChainIDEthereumRopsten, lockC, setC).Run); err != nil {
|
ethereum.NewEthWatcher(*ethRopstenRPC, ethRopstenContractAddr, "ethropsten", common.ReadinessEthRopstenSyncing, vaa.ChainIDEthereumRopsten, lockC, setC).Run); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue