Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jun 21, 2022
1 parent a3783ae commit 4a38ea6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/staking-miner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ use frame_support::traits::Get;
use jsonrpsee::ws_client::{WsClient, WsClientBuilder};
use remote_externalities::{Builder, Mode, OnlineConfig};
use rpc::{RpcApiClient, SharedRpcClient};
use runtime_versions::RuntimeVersions;
use sp_npos_elections::BalancingConfig;
use sp_runtime::{traits::Block as BlockT, DeserializeOwned};
use std::{ops::Deref, sync::Arc};
Expand Down Expand Up @@ -382,7 +383,7 @@ fn mine_dpos<T: EPM::Config>(ext: &mut Ext) -> Result<(), Error<T>> {
voters.into_iter().for_each(|(who, stake, targets)| {
if targets.is_empty() {
println!("target = {:?}", (who, stake, targets));
return;
return
}
let share: u128 = (stake as u128) / (targets.len() as u128);
for target in targets {
Expand Down Expand Up @@ -493,7 +494,7 @@ async fn main() {
},
_ => {
eprintln!("unexpected chain: {:?}", chain);
return;
return
},
}
log::info!(target: LOG_TARGET, "connected to chain {:?}", chain);
Expand Down

0 comments on commit 4a38ea6

Please sign in to comment.