mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 21:21:11 +00:00
continue in pow loop instead of returning (#9539)
* continue in pow loop instead of returning * change other return statements, add logs * remove redundant logs * formatting fix * remove log * Add some commas to make rustfmt happy Co-authored-by: Wei Tang <accounts@that.world> Co-authored-by: Wei Tang <wei@that.world>
This commit is contained in:
committed by
GitHub
parent
7f53a7f9df
commit
ab4d4654ae
@@ -560,7 +560,7 @@ where
|
||||
if sync_oracle.is_major_syncing() {
|
||||
debug!(target: "pow", "Skipping proposal due to sync.");
|
||||
worker.lock().on_major_syncing();
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
let best_header = match select_chain.best_chain().await {
|
||||
@@ -572,7 +572,7 @@ where
|
||||
Select best chain error: {:?}",
|
||||
err
|
||||
);
|
||||
return
|
||||
continue
|
||||
},
|
||||
};
|
||||
let best_hash = best_header.hash();
|
||||
@@ -584,11 +584,11 @@ where
|
||||
Probably a node update is required!",
|
||||
err,
|
||||
);
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
if worker.lock().best_hash() == Some(best_hash) {
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
// The worker is locked for the duration of the whole proposing period. Within this
|
||||
@@ -603,7 +603,7 @@ where
|
||||
Fetch difficulty failed: {:?}",
|
||||
err,
|
||||
);
|
||||
return
|
||||
continue
|
||||
},
|
||||
};
|
||||
|
||||
@@ -619,7 +619,7 @@ where
|
||||
Creating inherent data providers failed: {:?}",
|
||||
err,
|
||||
);
|
||||
return
|
||||
continue
|
||||
},
|
||||
};
|
||||
|
||||
@@ -632,7 +632,7 @@ where
|
||||
Creating inherent data failed: {:?}",
|
||||
e,
|
||||
);
|
||||
return
|
||||
continue
|
||||
},
|
||||
};
|
||||
|
||||
@@ -652,7 +652,7 @@ where
|
||||
Creating proposer failed: {:?}",
|
||||
err,
|
||||
);
|
||||
return
|
||||
continue
|
||||
},
|
||||
};
|
||||
|
||||
@@ -668,7 +668,7 @@ where
|
||||
Creating proposal failed: {:?}",
|
||||
err,
|
||||
);
|
||||
return
|
||||
continue
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user