State Recovery #81
threewebcode
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is one command named rollback in the command line which can be used in some cases. In the layer one node, there are two major states: network state and application state. The network state contains block state and current world state. The application state is derived from the ABCI application. To some extent, the application is one part of the whole global world state.
The network is alive and safe if theses states are consistent. If state differences appear, some measures should be taken to recovery the network. The rollback command is one of the measures available.
The anatomy of rollback command:
As far as i know, the block is persisted firstly, then the transactions in the block are executed and committed into the application state. The world state is stored at the last step. The headache issue is the state inconsistency between the application state and world state. The codes of application modules should be examined and tested carefully.
Beta Was this translation helpful? Give feedback.
All reactions