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

View File

@@ -492,6 +492,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,
)
}
}
}