Allow blacklisting blocks from being finalized again after block revert (#6301)

* Allow blacklisting blocks from being finalized again after block revert

* Use BlockRules for storing unfinalized and add have_state_at in revert

* Move finalization_check in finalize_block upward

* Directly mark finalization blacklist as badblocks

* Remove obselete comment
This commit is contained in:
Wei Tang
2020-07-31 14:32:13 +02:00
committed by GitHub
parent 7db19db948
commit 3c5cbb00aa
9 changed files with 105 additions and 50 deletions
+1
View File
@@ -24,6 +24,7 @@ codec = { package = "parity-scale-codec", version = "1.3.4", features = ["derive
blake2-rfc = "0.2.18"
sc-client-api = { version = "2.0.0-rc5", path = "../api" }
sp-arithmetic = { version = "2.0.0-rc5", path = "../../primitives/arithmetic" }
sp-core = { version = "2.0.0-rc5", path = "../../primitives/core" }
sp-runtime = { version = "2.0.0-rc5", path = "../../primitives/runtime" }
sp-state-machine = { version = "0.8.0-rc5", path = "../../primitives/state-machine" }