add stake lockup (#5782)

* add stake lockup

* fixup
This commit is contained in:
Rob Walker
2019-09-04 13:34:09 -07:00
committed by GitHub
parent 94eb78d399
commit 933e835838
7 changed files with 203 additions and 50 deletions

View File

@@ -895,7 +895,9 @@ fn process_show_stake_account(
Ok("".to_string())
}
Ok(StakeState::RewardsPool) => Ok("Stake account is a rewards pool".to_string()),
Ok(StakeState::Uninitialized) => Ok("Stake account is uninitialized".to_string()),
Ok(StakeState::Uninitialized) | Ok(StakeState::Lockup(_)) => {
Ok("Stake account is uninitialized".to_string())
}
Err(err) => Err(WalletError::RpcRequestError(format!(
"Account data could not be deserialized to stake state: {:?}",
err