grandpa: add voting rule to pause new votes for a period (#904)

* grandpa: add voting rule to pause new votes for a period

* grandpa: increase delay

* grandpa: parse custom pause delay from cli

* grandpa: log scheduled pause on startup

* grandpa: rename parameter to grandpa_pause

* grandpa: make pause voting rule generic on block

* grandpa: add test for pause voting rule

* grandpa: add hardcoded pause

* collator: fix test compilation
This commit is contained in:
André Silva
2020-03-17 14:26:09 +00:00
committed by GitHub
parent d07116a577
commit b9de1c0244
6 changed files with 277 additions and 11 deletions
+4
View File
@@ -55,6 +55,10 @@ sp-offchain = { package = "sp-offchain", git = "https://github.com/paritytech/su
prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
[dev-dependencies]
polkadot-test-runtime-client = { path = "../runtime/test-runtime/client" }
sc-block-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
[features]
default = ["rocksdb", "full-node"]
rocksdb = ["service/rocksdb"]