Skip to content

Shutdown node before syncing when state from the future is detected

Łukasz Bujak requested to merge no-future-state-allowed into develop

Currently hived doesn't check and doesn't mind if its database state is from the future (i.e. head block time > now) when it starts (after optional replay or snapshot loading).
It happens usually due to system time being incorrectly set. When the node is block producer's it may cause the blocks to be produced too early and force situation in which designated producer is deemed to be missing its block producing slot (a real life situation encountered already). This merge request helps avoid this situation, shutting down the node in case head block time > now on node start.

Merge request reports