node: move oasis to testnet mode
We're not ready to release this yet. commit-id:c2d6531f
This commit is contained in:
parent
40d1a57167
commit
9ad792c6ee
|
@ -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)
|
||||||
readiness.RegisterComponent(common.ReadinessOasisSyncing)
|
|
||||||
if *testnetMode {
|
if *testnetMode {
|
||||||
|
readiness.RegisterComponent(common.ReadinessOasisSyncing)
|
||||||
readiness.RegisterComponent(common.ReadinessEthRopstenSyncing)
|
readiness.RegisterComponent(common.ReadinessEthRopstenSyncing)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,10 +342,13 @@ 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 *testnetMode {
|
if *oasisContract == "" {
|
||||||
|
logger.Fatal("Please specify --oasisContract")
|
||||||
|
}
|
||||||
if *ethRopstenRPC == "" {
|
if *ethRopstenRPC == "" {
|
||||||
logger.Fatal("Please specify --ethRopstenRPC")
|
logger.Fatal("Please specify --ethRopstenRPC")
|
||||||
}
|
}
|
||||||
|
@ -566,12 +569,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