[#324] ir: Listen new blocks from main chain

Listen to new blocks from mainnet until the required fix in neo-go lib is
released (https://github.com/nspcc-dev/neo-go/pull/1687).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-25 17:23:37 +03:00 committed by Alex Vanin
parent abc7885056
commit 998a097767

View file

@ -118,7 +118,8 @@ func (s *Server) Start(ctx context.Context, intError chan<- error) error {
}
}()
s.morphListener.RegisterBlockHandler(func(b *block.Block) {
// BUG: https://github.com/nspcc-dev/neofs-node/issues/346
s.mainnetListener.RegisterBlockHandler(func(b *block.Block) {
s.log.Debug("new block",
zap.Uint32("index", b.Index),
)