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>
This commit is contained in:
Wei Tang
2020-09-18 11:37:31 +02:00
committed by GitHub
parent a3080f27f1
commit 5380bbce04
4 changed files with 357 additions and 167 deletions
+2
View File
@@ -6621,8 +6621,10 @@ version = "0.8.0-rc6"
dependencies = [
"derive_more",
"futures 0.3.5",
"futures-timer 3.0.2",
"log",
"parity-scale-codec",
"parking_lot 0.10.2",
"sc-client-api",
"sp-api",
"sp-block-builder",