VAA guardian devnet submission
This commit is contained in:
parent
ed6b8d23de
commit
5a72d9029a
|
@ -48,7 +48,7 @@ func p2p(obsvC chan *gossipv1.LockupObservation, sendC chan []byte) func(ctx con
|
|||
|
||||
var idht *dht.IpfsDHT
|
||||
|
||||
h, err := libp2p.New(ctx,
|
||||
h, err := libp2p.New(ctx,
|
||||
// Use the keypair we generated
|
||||
libp2p.Identity(priv),
|
||||
|
||||
|
@ -84,17 +84,17 @@ func p2p(obsvC chan *gossipv1.LockupObservation, sendC chan []byte) func(ctx con
|
|||
)
|
||||
return idht, err
|
||||
}),
|
||||
)
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
defer func() {
|
||||
defer func() {
|
||||
// TODO: libp2p cannot be cleanly restarted (https://github.com/libp2p/go-libp2p/issues/992)
|
||||
logger.Error("p2p routine has exited, cancelling root context...", zap.Error(re))
|
||||
rootCtxCancel()
|
||||
}()
|
||||
}()
|
||||
|
||||
logger.Info("Connecting to bootstrap peers", zap.String("bootstrap_peers", *p2pBootstrap))
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ func vaaConsensusProcessor(lockC chan *common.ChainLock, setC chan *common.Guard
|
|||
}
|
||||
logger.Info("devnet guardian set change submitted to Ethereum", zap.Any("tx", tx))
|
||||
|
||||
// TODO: submit to Solana
|
||||
vaaC <- v
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ func (e *SolanaBridgeWatcher) Run(ctx context.Context) error {
|
|||
|
||||
switch event := ev.Event.(type) {
|
||||
case *agentv1.LockupEvent_New:
|
||||
logger.Info("received lockup event",
|
||||
logger.Debug("received lockup event",
|
||||
zap.Any("event", ev)) // TODO: debug level
|
||||
|
||||
lock := &common.ChainLock{
|
||||
|
|
|
@ -202,7 +202,6 @@ contract Wormhole is ReentrancyGuard {
|
|||
isWrappedAsset[asset] = true;
|
||||
}
|
||||
|
||||
// TODO(hendrik): nonce
|
||||
function lockAssets(
|
||||
address asset,
|
||||
uint256 amount,
|
||||
|
|
Loading…
Reference in New Issue