This commit is contained in:
Eduard S
2021-01-22 11:56:45 +01:00
parent e2006403d7
commit deede9541b
7 changed files with 200 additions and 67 deletions

View File

@@ -484,6 +484,10 @@ func (n *Node) handleNewBlock(ctx context.Context, stats *synchronizer.Stats, va
); err != nil {
log.Errorw("API.UpdateNetworkInfo", "err", err)
}
} else {
n.nodeAPI.api.UpdateNetworkInfoBlock(
stats.Eth.LastBlock, stats.Sync.LastBlock,
)
}
}
}