From 998a097767b842712fb2343018b1386ede0fe341 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 25 Jan 2021 17:23:37 +0300 Subject: [PATCH] [#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 --- pkg/innerring/innerring.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index df3cfa8ed..cfc9acda8 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -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), )