Use our headblock endpoint to verify blockchain status
Right now a lot of information displayed on home page are taken from hive.blog. Of course it's possible for us to mess a lot by that, because when we're not synchronize, we will show the user wrong block link and the useless data.
The purpose of this issue is:
- Use endpoint to our local API, the same as in other, to get head block number. It should be
get_headblock
with no args. - Use exactly that value to display number of operations, to feed the last blocks and for the number of current headblock. For witness and other block stuff use
get_block
the same way it's used on block page. - If there is a difference between head block number in previous endpoint and in our endpoint, mark the whole left section for user somehow, for them to know, that the data may be wrong.
It's possible we'll get rid of hive.blog calls in the future. Right now we must provide some checks, especially because we have all necessary endpoints.