[#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 <alexey@nspcc.ru>
This commit is contained in:
parent
d7bd312abd
commit
bd420b6002
1 changed files with 1 additions and 2 deletions
|
@ -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.morphListener.RegisterBlockHandler(func(b *block.Block) {
|
||||||
s.mainnetListener.RegisterBlockHandler(func(b *block.Block) {
|
|
||||||
s.log.Debug("new block",
|
s.log.Debug("new block",
|
||||||
zap.Uint32("index", b.Index),
|
zap.Uint32("index", b.Index),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue