From 5332fcade6ee79b28221767b04d5f938619e4697 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 22 Aug 2020 17:12:21 -0700 Subject: [PATCH] Notify but don't abort on unexpected stake account balance --- stake-o-matic/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stake-o-matic/src/main.rs b/stake-o-matic/src/main.rs index 4b66d78e76..250d6f212a 100644 --- a/stake-o-matic/src/main.rs +++ b/stake-o-matic/src/main.rs @@ -624,11 +624,10 @@ fn main() -> Result<(), Box> { if let Ok((balance, stake_state)) = get_stake_account(&rpc_client, &baseline_stake_address) { if balance != config.baseline_stake_amount { - error!( + info!( "Unexpected balance in stake account {}: {}, expected {}", baseline_stake_address, balance, config.baseline_stake_amount ); - process::exit(1); } if let Some(delegation) = stake_state.delegation() { if epoch_info.epoch == delegation.activation_epoch { @@ -662,11 +661,10 @@ fn main() -> Result<(), Box> { if let Ok((balance, stake_state)) = get_stake_account(&rpc_client, &bonus_stake_address) { if balance != config.bonus_stake_amount { - error!( + info!( "Unexpected balance in stake account {}: {}, expected {}", bonus_stake_address, balance, config.bonus_stake_amount ); - process::exit(1); } if let Some(delegation) = stake_state.delegation() { if epoch_info.epoch == delegation.activation_epoch {