Currently a finalizer that already deposited but looses its folder will fail to correctly bootstrap.
The code in WalletExtension::AddToWalletIfInvolvingMe(), to increment the state automata will expect the node to be already in the state +esperanza::ValidatorState::Phase::WAITING_DEPOSIT_CONFIRMATION, this will not happen if we haven't initialized the deposit manually (i.e. we are syncing after losing the data folder).
This PR fixes this issue allowing for a finalizer to be in the state +esperanza::ValidatorState::Phase::NOT_VALIDATING when checking this.
Currently a finalizer that already deposited but looses its folder will fail to correctly bootstrap.
The code in
WalletExtension::AddToWalletIfInvolvingMe()
, to increment the state automata will expect the node to be already in the state+esperanza::ValidatorState::Phase::WAITING_DEPOSIT_CONFIRMATION
, this will not happen if we haven't initialized the deposit manually (i.e. we are syncing after losing the data folder).This PR fixes this issue allowing for a finalizer to be in the state
+esperanza::ValidatorState::Phase::NOT_VALIDATING
when checking this.