mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 12:27:56 +00:00
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:
@@ -75,4 +75,13 @@ pub struct Cli {
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(long = "enable-authority-discovery")]
|
||||
pub authority_discovery_enabled: bool,
|
||||
|
||||
/// Setup a GRANDPA scheduled voting pause.
|
||||
///
|
||||
/// This parameter takes two values, namely a block number and a delay (in
|
||||
/// blocks). After the given block number is finalized the GRANDPA voter
|
||||
/// will temporarily stop voting for new blocks until the given delay has
|
||||
/// elapsed (i.e. until a block at height `pause_block + delay` is imported).
|
||||
#[structopt(long = "grandpa-pause", number_of_values(2))]
|
||||
pub grandpa_pause: Vec<u32>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user