terra: disable in production mode
ghstack-source-id: c22885f121
Pull Request resolved: https://github.com/certusone/wormhole/pull/103
This commit is contained in:
parent
5f8ca60ab1
commit
7545d2b803
|
@ -209,6 +209,10 @@ func runBridge(cmd *cobra.Command, args []string) {
|
|||
logger.Fatal("Please specify -nodeName")
|
||||
}
|
||||
if *terraSupport {
|
||||
if !*unsafeDevMode {
|
||||
logger.Fatal("cannot enable terra support in production mode")
|
||||
}
|
||||
|
||||
if *terraWS == "" {
|
||||
logger.Fatal("Please specify -terraWS")
|
||||
}
|
||||
|
|
|
@ -199,8 +199,20 @@ func (p *Processor) devnetVAASubmission(ctx context.Context, signed *vaa.VAA, ha
|
|||
}
|
||||
}
|
||||
|
||||
// Submit VAA to Terra devnet.
|
||||
// Submit VAA to Terra.
|
||||
func (p *Processor) terraVAASubmission(ctx context.Context, signed *vaa.VAA, hash string) {
|
||||
// Terra support is not yet ready for production.
|
||||
// - https://github.com/certusone/wormhole/issues/83
|
||||
// - https://github.com/certusone/wormhole/issues/95
|
||||
// - https://github.com/certusone/wormhole/issues/97
|
||||
//
|
||||
// Roadmap: https://github.com/certusone/wormhole/milestone/4
|
||||
if !p.devnetMode || p.terraChaidID == "" {
|
||||
p.logger.Warn("ignoring terra VAA submission",
|
||||
zap.String("digest", hash))
|
||||
return
|
||||
}
|
||||
|
||||
tx, err := terra.SubmitVAA(ctx, p.terraLCD, p.terraChaidID, p.terraContract, p.terraFeePayer, signed)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "VaaAlreadyExecuted") {
|
||||
|
|
|
@ -60,17 +60,17 @@ spec:
|
|||
- bridge
|
||||
- --ethRPC
|
||||
- ws://eth-devnet:8545
|
||||
- --terra
|
||||
- --terraWS
|
||||
- ws://terra-terrad:26657/websocket
|
||||
- --terraLCD
|
||||
- http://terra-lcd:1317
|
||||
- --terraChainID
|
||||
- localterra
|
||||
- --terraContract
|
||||
- terra174kgn5rtw4kf6f938wm7kwh70h2v4vcfd26jlc
|
||||
- --terraFeePayer
|
||||
- $(TERRA_FEE_PAYER)
|
||||
# - --terra
|
||||
# - --terraWS
|
||||
# - ws://terra-terrad:26657/websocket
|
||||
# - --terraLCD
|
||||
# - http://terra-lcd:1317
|
||||
# - --terraChainID
|
||||
# - localterra
|
||||
# - --terraContract
|
||||
# - terra174kgn5rtw4kf6f938wm7kwh70h2v4vcfd26jlc
|
||||
# - --terraFeePayer
|
||||
# - $(TERRA_FEE_PAYER)
|
||||
- --agentRPC
|
||||
- localhost:9000
|
||||
- --ethConfirmations
|
||||
|
@ -78,6 +78,8 @@ spec:
|
|||
- --unsafeDevMode
|
||||
- --bridgeKey
|
||||
- /tmp/bridge.key
|
||||
- --adminSocket
|
||||
- /tmp/admin.sock
|
||||
# - --logLevel=debug
|
||||
securityContext:
|
||||
capabilities:
|
||||
|
|
Loading…
Reference in New Issue