Add bloc control on startup
It sometimes occur a problem where block
and b_index
tables are unsynced, one table having its top block different from the other.
It could be added a check mechanism on node startup which would:
- delete all the records from
block
whereblock.number
>b_index.number
and is not a fork - make a revert from
b_index
whileb_index.number
>block
's table top block'snumber