pow: replace the thread-base mining loop with a future-based mining worker (#7060)
* New worker design * Remove unused thread import * Add back missing inherent data provider registration * Add function to get a Cloned metadata * Add some docs * Derive Eq and PartialEq for MiningMetadata * Fix cargo lock * Fix line width * Add docs and fix issues in UntilImportedOrTimeout * Update client/consensus/pow/src/lib.rs Co-authored-by:David <dvdplm@gmail.com> * Add back comments Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
David <dvdplm@gmail.com>
Showing
- substrate/Cargo.lock 2 additions, 0 deletionssubstrate/Cargo.lock
- substrate/client/consensus/pow/Cargo.toml 2 additions, 0 deletionssubstrate/client/consensus/pow/Cargo.toml
- substrate/client/consensus/pow/src/lib.rs 141 additions, 168 deletionssubstrate/client/consensus/pow/src/lib.rs
- substrate/client/consensus/pow/src/worker.rs 213 additions, 0 deletionssubstrate/client/consensus/pow/src/worker.rs
Please register or sign in to comment