dashpay / tenderdash

⟁ Tenderdash Core (SBFT Consensus) in Go
https://www.dashpay.org
Other
18 stars 14 forks source link

fix(node): genesis.json not loaded on restart before genesis block is mined #892

Closed lklimek closed 2 months ago

lklimek commented 2 months ago

Issue being fixed or feature implemented

If Tenderdash crashes/restarts before mining first (genesis) block, it persists some initial state and reuses it after restart. It means that any changes to the genesis.json file are not loaded on restart..

What was done?

Discard persisted state when persisted height is 0.

How Has This Been Tested?

e2e tests

Breaking Changes

None

Checklist:

For repository code-owners and collaborators only