Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Explicitly require initial stake, or no stake is added initially
Browse files Browse the repository at this point in the history
  • Loading branch information
xmariachi committed May 6, 2024
1 parent 4581f95 commit 749bb73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/node/appchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ func registerWithBlockchain(appchain *AppChain) {
appchain.Logger.Error().Err(err).Uint64("topic", topicId).Str("txHash", res.TxHash).
Msg("could not stake the node with the Allora blockchain in specified topic")
}
} else {
appchain.Logger.Info().Msg("No initial stake configured")
}
} else {
appchain.Logger.Info().Msg("No initial stake configured")
}
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion cmd/node/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func parseFlags() *alloraCfg {
pflag.StringVarP(&cfg.AppChainConfig.NodeRPCAddress, "allora-node-rpc-address", "", "http://localhost:26657", "The address for the client to connect to a node.")
pflag.StringSliceVar(&cfg.AppChainConfig.TopicIds, "allora-chain-topic-id", nil, "The topic id for the topic that the node will subscribe to.")
pflag.Uint64Var(&cfg.AppChainConfig.ReconnectSeconds, "allora-chain-reconnect-seconds", 60, "If connection to Allora Appchain breaks, it will attempt to reconnect with this interval. O means no reconnection.")
pflag.Uint64Var(&cfg.AppChainConfig.InitialStake, "allora-chain-initial-stake", 100, "Upon registering on a new topic, amount of stake to use.")
pflag.Uint64Var(&cfg.AppChainConfig.InitialStake, "allora-chain-initial-stake", 0, "Upon registering on a new topic, amount of stake to use.")
pflag.StringVarP(&cfg.AppChainConfig.WorkerMode, "allora-chain-worker-mode", "", WorkerModeWorker, "Worker mode of an Allora Network node.")
pflag.StringVar(&cfg.AppChainConfig.Gas, "allora-chain-gas", "auto", "Max gas on Allora client.")
pflag.Float64Var(&cfg.AppChainConfig.GasAdjustment, "allora-chain-gas-adjustment", 0.1, "Gas adjustment on Allora client.")
Expand Down

0 comments on commit 749bb73

Please sign in to comment.