Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
echevrier committed Mar 1, 2023
1 parent c7722eb commit a9e7291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions app-libs/stf/src/getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ impl ExecuteGetter for TrustedGetterSigned {
Some(nonce.encode())
},
TrustedGetter::encointer_balance(who, community_id) => {
error!("TrustedGetter encointer_balance, block_number {}", System::block_number());
let balance =
pallet_encointer_balances::Pallet::<ita_sgx_runtime::Runtime>::balance(
community_id,
Expand Down Expand Up @@ -643,7 +642,7 @@ impl ExecuteGetter for TrustedGetterSigned {
}

fn get_storage_hashes_to_update(self) -> Vec<Vec<u8>> {
error!("get_storage_hashes_to_update for TrustedGetter");
debug!("get_storage_hashes_to_update for TrustedGetter");
let mut key_hashes = Vec::new();
match self.getter {
TrustedGetter::encointer_balance(_, cid) => {
Expand Down Expand Up @@ -679,14 +678,10 @@ impl ExecuteGetter for PublicGetter {
match self {
PublicGetter::some_value => Some(42u32.encode()),
PublicGetter::encointer_total_issuance(community_id) => {
error!(
"PublicGetter::encointer_total_issuance, block_number {}",
System::block_number()
);
let updated_total_issuance = pallet_encointer_balances::Pallet::<
ita_sgx_runtime::Runtime,
>::total_issuance(community_id);
error!("PublicGetter encointer_total_issuance");
debug!("PublicGetter encointer_total_issuance");
Some(updated_total_issuance.encode())
},
PublicGetter::ceremonies_assignment_counts(community_id, ceremony_index) => {
Expand Down Expand Up @@ -728,14 +723,13 @@ impl ExecuteGetter for PublicGetter {
},
PublicGetter::ceremonies_reward(community_id) => {
let reward = EncointerCeremonies::nominal_income(&community_id);
error!("PublicGetter ceremonies_reward");
Some(reward.encode())
},
}
}

fn get_storage_hashes_to_update(self) -> Vec<Vec<u8>> {
error!("get_storage_hashes_to_update for PublicGetter");
debug!("get_storage_hashes_to_update for PublicGetter");
let mut key_hashes = Vec::new();
match self {
PublicGetter::ceremonies_reward(community_id) => {
Expand Down
4 changes: 2 additions & 2 deletions cli/src/ceremonies/commands/claim_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl ClaimRewardsCommand {
let mut nonce = get_layer_two_nonce!(who, cli, trusted_args);

if self.all {
error!("Claim the rewards for all participants of all meetups {}", self.community_id);
info!("Claim the rewards for all participants of all meetups {}", self.community_id);
let mut ceremony_index = api.get_current_ceremony_index(None).unwrap().unwrap();
if api.get_current_phase().unwrap() == CeremonyPhaseType::Registering {
ceremony_index -= 1;
Expand All @@ -85,7 +85,7 @@ impl ClaimRewardsCommand {
}
println!("Claiming reward for all meetup indexes executed ");
} else {
error!("Claim the rewards for all participants of 1 meetup");
info!("Claim the rewards for all participants of 1 meetup");
let meetup_index = match &self.meetup_index {
Some(i) => MeetupIndexType::from_str(i).unwrap().into(),
None => None,
Expand Down

0 comments on commit a9e7291

Please sign in to comment.