|
@@ -620,15 +620,6 @@ func runNode(cmd *cobra.Command, args []string) {
|
|
|
if *neonContract == "" {
|
|
if *neonContract == "" {
|
|
|
logger.Fatal("Please specify --neonContract")
|
|
logger.Fatal("Please specify --neonContract")
|
|
|
}
|
|
}
|
|
|
- if *injectiveWS == "" {
|
|
|
|
|
- logger.Fatal("Please specify --injectiveWS")
|
|
|
|
|
- }
|
|
|
|
|
- if *injectiveLCD == "" {
|
|
|
|
|
- logger.Fatal("Please specify --injectiveLCD")
|
|
|
|
|
- }
|
|
|
|
|
- if *injectiveContract == "" {
|
|
|
|
|
- logger.Fatal("Please specify --injectiveContract")
|
|
|
|
|
- }
|
|
|
|
|
} else {
|
|
} else {
|
|
|
if *neonRPC != "" && !*unsafeDevMode {
|
|
if *neonRPC != "" && !*unsafeDevMode {
|
|
|
logger.Fatal("Please do not specify --neonRPC")
|
|
logger.Fatal("Please do not specify --neonRPC")
|
|
@@ -636,15 +627,6 @@ func runNode(cmd *cobra.Command, args []string) {
|
|
|
if *neonContract != "" && !*unsafeDevMode {
|
|
if *neonContract != "" && !*unsafeDevMode {
|
|
|
logger.Fatal("Please do not specify --neonContract")
|
|
logger.Fatal("Please do not specify --neonContract")
|
|
|
}
|
|
}
|
|
|
- if *injectiveWS != "" && !*unsafeDevMode {
|
|
|
|
|
- logger.Fatal("Please do not specify --injectiveWS")
|
|
|
|
|
- }
|
|
|
|
|
- if *injectiveLCD != "" && !*unsafeDevMode {
|
|
|
|
|
- logger.Fatal("Please do not specify --injectiveLCD")
|
|
|
|
|
- }
|
|
|
|
|
- if *injectiveContract != "" && !*unsafeDevMode {
|
|
|
|
|
- logger.Fatal("Please do not specify --injectiveContract")
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
if *nodeName == "" {
|
|
if *nodeName == "" {
|
|
|
logger.Fatal("Please specify --nodeName")
|
|
logger.Fatal("Please specify --nodeName")
|
|
@@ -699,6 +681,16 @@ func runNode(cmd *cobra.Command, args []string) {
|
|
|
if *pythnetRPC == "" {
|
|
if *pythnetRPC == "" {
|
|
|
logger.Fatal("Please specify --pythnetRPC")
|
|
logger.Fatal("Please specify --pythnetRPC")
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if *injectiveWS == "" {
|
|
|
|
|
+ logger.Fatal("Please specify --injectiveWS")
|
|
|
|
|
+ }
|
|
|
|
|
+ if *injectiveLCD == "" {
|
|
|
|
|
+ logger.Fatal("Please specify --injectiveLCD")
|
|
|
|
|
+ }
|
|
|
|
|
+ if *injectiveContract == "" {
|
|
|
|
|
+ logger.Fatal("Please specify --injectiveContract")
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if *bigTablePersistenceEnabled {
|
|
if *bigTablePersistenceEnabled {
|
|
@@ -1208,6 +1200,16 @@ func runNode(cmd *cobra.Command, args []string) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if shouldStart(injectiveWS) {
|
|
|
|
|
+ logger.Info("Starting Injective watcher")
|
|
|
|
|
+ readiness.RegisterComponent(common.ReadinessInjectiveSyncing)
|
|
|
|
|
+ chainObsvReqC[vaa.ChainIDInjective] = make(chan *gossipv1.ObservationRequest, observationRequestBufferSize)
|
|
|
|
|
+ if err := supervisor.Run(ctx, "injectivewatch",
|
|
|
|
|
+ cosmwasm.NewWatcher(*injectiveWS, *injectiveLCD, *injectiveContract, lockC, chainObsvReqC[vaa.ChainIDInjective], common.ReadinessInjectiveSyncing, vaa.ChainIDInjective).Run); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if *testnetMode {
|
|
if *testnetMode {
|
|
|
if shouldStart(neonRPC) {
|
|
if shouldStart(neonRPC) {
|
|
|
if solanaFinalizedWatcher == nil {
|
|
if solanaFinalizedWatcher == nil {
|
|
@@ -1222,15 +1224,6 @@ func runNode(cmd *cobra.Command, args []string) {
|
|
|
return err
|
|
return err
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if shouldStart(injectiveWS) {
|
|
|
|
|
- logger.Info("Starting Injective watcher")
|
|
|
|
|
- readiness.RegisterComponent(common.ReadinessInjectiveSyncing)
|
|
|
|
|
- chainObsvReqC[vaa.ChainIDInjective] = make(chan *gossipv1.ObservationRequest, observationRequestBufferSize)
|
|
|
|
|
- if err := supervisor.Run(ctx, "injectivewatch",
|
|
|
|
|
- cosmwasm.NewWatcher(*injectiveWS, *injectiveLCD, *injectiveContract, lockC, chainObsvReqC[vaa.ChainIDInjective], common.ReadinessInjectiveSyncing, vaa.ChainIDInjective).Run); err != nil {
|
|
|
|
|
- return err
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
go handleReobservationRequests(rootCtx, clock.New(), logger, obsvReqC, chainObsvReqC)
|
|
go handleReobservationRequests(rootCtx, clock.New(), logger, obsvReqC, chainObsvReqC)
|
|
|
|
|
|