mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 13:25:44 +00:00
grandpa: avoid importing unnecessary justifications (#14423)
* grandpa: avoid importing unnecessary justifications * grandpa: make justification_import_period configurable * grandpa: keep the first justification * grandpa: add test for justification import period * grandpa: fix test
This commit is contained in:
@@ -1700,7 +1700,7 @@ mod tests {
|
||||
fn config() -> crate::Config {
|
||||
crate::Config {
|
||||
gossip_duration: Duration::from_millis(10),
|
||||
justification_period: 256,
|
||||
justification_generation_period: 256,
|
||||
keystore: None,
|
||||
name: None,
|
||||
local_role: Role::Authority,
|
||||
|
||||
@@ -244,7 +244,7 @@ impl Tester {
|
||||
fn config() -> crate::Config {
|
||||
crate::Config {
|
||||
gossip_duration: std::time::Duration::from_millis(10),
|
||||
justification_period: 256,
|
||||
justification_generation_period: 256,
|
||||
keystore: None,
|
||||
name: None,
|
||||
local_role: Role::Authority,
|
||||
|
||||
Reference in New Issue
Block a user