From 7d680e3fc553ef4efd399b8160a69ccf567a4ee8 Mon Sep 17 00:00:00 2001 From: musitdev Date: Tue, 19 Sep 2023 09:02:08 +0200 Subject: [PATCH] remove some logs --- stake_aggregate/src/stakestore.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/stake_aggregate/src/stakestore.rs b/stake_aggregate/src/stakestore.rs index 485467f..381a9ef 100644 --- a/stake_aggregate/src/stakestore.rs +++ b/stake_aggregate/src/stakestore.rs @@ -45,7 +45,7 @@ fn stake_map_notify_stake( // if stake.stake.deactivation_epoch < current_epoch { // return; // } - log::info!("stake_map_notify_stake stake:{stake:?}"); + log::trace!("stake_map_notify_stake stake:{stake:?}"); match map.entry(stake_account) { // If value already exists, then increment it by one std::collections::hash_map::Entry::Occupied(occupied) => { @@ -155,11 +155,6 @@ impl StakeStore { }), true => self.notify_stake(new_account.pubkey, ststake, current_epoch), } - } else { - log::warn!( - "notify_stake_change {} No delegated stake in account data", - new_account.pubkey - ); } Ok(()) @@ -263,9 +258,8 @@ pub fn read_stake_from_account_data(mut data: &[u8]) -> anyhow::Result Ok(Some(stake.delegation)), StakeState::Initialized(_) => Ok(None), - other => { - bail!("read stake from account not a stake account. read:{other:?}"); - } + StakeState::Uninitialized => Ok(None), + StakeState::RewardsPool => Ok(None), } }