Enable VAA submission to Solana
This commit is contained in:
parent
c381ed2459
commit
9bb44eb0f5
|
@ -247,7 +247,7 @@ func ethLockupProcessor(lockC chan *common.ChainLock, setC chan *common.Guardian
|
||||||
)
|
)
|
||||||
|
|
||||||
if *unsafeDevMode && len(sigs) >= quorum {
|
if *unsafeDevMode && len(sigs) >= quorum {
|
||||||
_, err := devnet.GetDevnetIndex()
|
idx, err := devnet.GetDevnetIndex()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -263,9 +263,9 @@ func ethLockupProcessor(lockC chan *common.ChainLock, setC chan *common.Guardian
|
||||||
zap.Binary("bytes", vaaBytes))
|
zap.Binary("bytes", vaaBytes))
|
||||||
|
|
||||||
// TODO: actually submit to Solana once the agent works and has a reasonable key
|
// TODO: actually submit to Solana once the agent works and has a reasonable key
|
||||||
//if idx == 0 {
|
if idx == 0 {
|
||||||
// vaaC <- state.lockupSignatures[hash].ourVAA
|
vaaC <- state.lockupSignatures[hash].ourVAA
|
||||||
//}
|
}
|
||||||
} else if !*unsafeDevMode {
|
} else if !*unsafeDevMode {
|
||||||
panic("not implemented") // TODO
|
panic("not implemented") // TODO
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -93,8 +93,8 @@ func (e *SolanaBridgeWatcher) Run(ctx context.Context) error {
|
||||||
timeout, _ := context.WithTimeout(ctx, 15*time.Second)
|
timeout, _ := context.WithTimeout(ctx, 15*time.Second)
|
||||||
res, err := c.SubmitVAA(timeout, &agentv1.SubmitVAARequest{Vaa: vaaBytes})
|
res, err := c.SubmitVAA(timeout, &agentv1.SubmitVAARequest{Vaa: vaaBytes})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errC <- fmt.Errorf("failed to submit VAA: %w", err)
|
logger.Error("failed to submit VAA", zap.Error(err))
|
||||||
return
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Info("submitted VAA",
|
logger.Info("submitted VAA",
|
||||||
|
|
|
@ -42,7 +42,7 @@ spec:
|
||||||
- -ethRPC
|
- -ethRPC
|
||||||
- ws://eth-devnet:8545
|
- ws://eth-devnet:8545
|
||||||
- -agentRPC
|
- -agentRPC
|
||||||
- http://localhost:9000
|
- localhost:9000
|
||||||
- -ethConfirmations
|
- -ethConfirmations
|
||||||
- '1'
|
- '1'
|
||||||
- -unsafeDevMode
|
- -unsafeDevMode
|
||||||
|
|
Loading…
Reference in New Issue