HorizenOfficial / Sidechains-SDK

MIT License
162 stars 95 forks source link

Is/node stuck at fork fix #958

Closed i-skrypnyk closed 11 months ago

i-skrypnyk commented 11 months ago

Description

If node was not updated to the new version during the hard fork, it will set the status of the block at fork point as invalid as save the status in the persistent storage. Then, after restart, node will take the status from storage and never try to re-evaluate it with the new code.

This PR adds a config value that resets modifiers status that are retrieved from storage, so that the node is able to try the fork again, and if it succeeds or fail, the new status will be updated both in the in-memory activeChain, and in the storage

Jira Ticket

https://horizenlabs.atlassian.net/browse/SDK-1613

Checks

Additional information