stake-pool-cli: Fix update command for empty list (#1306)

This commit is contained in:
Jon Cinque 2021-02-22 23:50:17 +01:00 committed by GitHub
parent d31cd78a54
commit d75fc5875c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ fn command_update(config: &Config, pool: &Pubkey) -> CommandResult {
)?);
}
if instructions.is_empty() {
if instructions.is_empty() && pool_data.last_update_epoch == epoch_info.epoch {
println!("Stake pool balances are up to date, no update required.");
Ok(None)
} else {