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:
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation
For repository code-owners and collaborators only
[x] I have assigned this pull request to a milestone
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