From d75fc5875cd992cb012fcaa3a5dbeaaf80cf9d9f Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Mon, 22 Feb 2021 23:50:17 +0100 Subject: [PATCH] stake-pool-cli: Fix update command for empty list (#1306) --- stake-pool/cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stake-pool/cli/src/main.rs b/stake-pool/cli/src/main.rs index 7ca9d277..e537508e 100644 --- a/stake-pool/cli/src/main.rs +++ b/stake-pool/cli/src/main.rs @@ -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 {