Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
remove redundant check
  • Loading branch information
niklasad1 committed Jun 30, 2022
commit 9cc1cceb7e1c28c82e0a8161612cda9b619bda44
7 changes: 0 additions & 7 deletions utils/staking-miner/src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! {

let rpc1 = rpc.clone();
let rpc2 = rpc.clone();
let rpc3 = rpc.clone();

let account = signer.account.clone();
let ensure_no_prev_fut = tokio::spawn(async move {
ensure_no_previous_solution::<Runtime, Block>(&rpc3, hash, &account).await
});

let ensure_no_better_fut = tokio::spawn(async move {
ensure_no_better_solution::<Runtime, Block>(&rpc1, hash, score, config.submission_strategy,
Expand All @@ -308,7 +302,6 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! {

// Run the calls in parallel and return once all has completed or any failed.
if let Err(err) = tokio::try_join!(
flatten(ensure_no_prev_fut),
flatten(ensure_no_better_fut),
flatten(ensure_signed_phase_fut),
) {
Expand Down