VAA guardian devnet submission

This commit is contained in:
Leo 2020-08-27 17:46:40 +02:00
parent ed6b8d23de
commit 5a72d9029a
4 changed files with 41 additions and 42 deletions

View File

@ -48,7 +48,7 @@ func p2p(obsvC chan *gossipv1.LockupObservation, sendC chan []byte) func(ctx con
var idht *dht.IpfsDHT var idht *dht.IpfsDHT
h, err := libp2p.New(ctx, h, err := libp2p.New(ctx,
// Use the keypair we generated // Use the keypair we generated
libp2p.Identity(priv), libp2p.Identity(priv),
@ -84,17 +84,17 @@ func p2p(obsvC chan *gossipv1.LockupObservation, sendC chan []byte) func(ctx con
) )
return idht, err return idht, err
}), }),
) )
if err != nil { if err != nil {
panic(err) panic(err)
} }
defer func() { defer func() {
// TODO: libp2p cannot be cleanly restarted (https://github.com/libp2p/go-libp2p/issues/992) // 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)) logger.Error("p2p routine has exited, cancelling root context...", zap.Error(re))
rootCtxCancel() rootCtxCancel()
}() }()
logger.Info("Connecting to bootstrap peers", zap.String("bootstrap_peers", *p2pBootstrap)) logger.Info("Connecting to bootstrap peers", zap.String("bootstrap_peers", *p2pBootstrap))

View File

@ -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)) logger.Info("devnet guardian set change submitted to Ethereum", zap.Any("tx", tx))
// TODO: submit to Solana vaaC <- v
} }
} }

View File

@ -74,7 +74,7 @@ func (e *SolanaBridgeWatcher) Run(ctx context.Context) error {
switch event := ev.Event.(type) { switch event := ev.Event.(type) {
case *agentv1.LockupEvent_New: case *agentv1.LockupEvent_New:
logger.Info("received lockup event", logger.Debug("received lockup event",
zap.Any("event", ev)) // TODO: debug level zap.Any("event", ev)) // TODO: debug level
lock := &common.ChainLock{ lock := &common.ChainLock{

View File

@ -202,7 +202,6 @@ contract Wormhole is ReentrancyGuard {
isWrappedAsset[asset] = true; isWrappedAsset[asset] = true;
} }
// TODO(hendrik): nonce
function lockAssets( function lockAssets(
address asset, address asset,
uint256 amount, uint256 amount,