node: remove unused terraChainID command line flag

Change-Id: I5f02faa3f00098725e7242c289f65978c4879c3c
This commit is contained in:
Leo 2021-10-03 21:03:43 +02:00
parent 92d3ee577c
commit bd5f957e1b
3 changed files with 0 additions and 11 deletions

View File

@ -84,8 +84,6 @@ spec:
- ws://terra-terrad:26657/websocket
- --terraLCD
- http://terra-lcd:1317
- --terraChainID
- localterra
- --terraContract
- terra18vd8fpwxzck93qlwghaj6arh4p7c5n896xzem5
- --solanaContract

View File

@ -66,7 +66,6 @@ var (
terraWS *string
terraLCD *string
terraChainID *string
terraContract *string
solanaWsRPC *string
@ -117,7 +116,6 @@ func init() {
terraWS = NodeCmd.Flags().String("terraWS", "", "Path to terrad root for websocket connection")
terraLCD = NodeCmd.Flags().String("terraLCD", "", "Path to LCD service root for http calls")
terraChainID = NodeCmd.Flags().String("terraChainID", "", "Terra chain ID, used in LCD client initialization")
terraContract = NodeCmd.Flags().String("terraContract", "", "Wormhole contract address on Terra blockchain")
solanaWsRPC = NodeCmd.Flags().String("solanaWS", "", "Solana Websocket URL (required")
@ -330,9 +328,6 @@ func runNode(cmd *cobra.Command, args []string) {
if *terraLCD == "" {
logger.Fatal("Please specify --terraLCD")
}
if *terraChainID == "" {
logger.Fatal("Please specify --terraChainID")
}
if *terraContract == "" {
logger.Fatal("Please specify --terraContract")
}
@ -504,7 +499,6 @@ func runNode(cmd *cobra.Command, args []string) {
*devNumGuardians,
*ethRPC,
*terraLCD,
*terraChainID,
*terraContract,
attestationEvents,
)

View File

@ -75,7 +75,6 @@ type Processor struct {
devnetEthRPC string
terraLCD string
terraChainID string
terraContract string
attestationEvents *reporter.AttestationEventReporter
@ -115,7 +114,6 @@ func NewProcessor(
devnetNumGuardians uint,
devnetEthRPC string,
terraLCD string,
terraChainID string,
terraContract string,
attestationEvents *reporter.AttestationEventReporter,
) *Processor {
@ -135,7 +133,6 @@ func NewProcessor(
db: db,
terraLCD: terraLCD,
terraChainID: terraChainID,
terraContract: terraContract,
attestationEvents: attestationEvents,