forked from TrueCloudLab/frostfs-node
[#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:
parent
abc7885056
commit
998a097767
1 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue