From bd420b60025b3e30d7ae21b51a193a12fd92ca86 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 9 Feb 2021 14:18:14 +0300 Subject: [PATCH] [#373] innerring: Listen sidechain blocks for internal timer Updated neo-go fixed bug in listener, so we can use sidechain for block timer as it planned. Signed-off-by: Alex Vanin --- pkg/innerring/innerring.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index 1c6425dc..8eeac964 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -145,8 +145,7 @@ func (s *Server) Start(ctx context.Context, intError chan<- error) error { } }() - // BUG: https://github.com/nspcc-dev/neofs-node/issues/346 - s.mainnetListener.RegisterBlockHandler(func(b *block.Block) { + s.morphListener.RegisterBlockHandler(func(b *block.Block) { s.log.Debug("new block", zap.Uint32("index", b.Index), )