From e78fd12da6c15901ca606a9a3bffc07088815f9b Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 27 Nov 2023 20:04:58 -0500 Subject: [PATCH] Set the justification generation period to 1 --- substrate/node/src/service.rs | 4 +++- substrate/tree-cleanup/bandersnatch_vrfs/src/lib.rs | 1 + substrate/tree-cleanup/w3f-bls/src/lib.rs | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/substrate/node/src/service.rs b/substrate/node/src/service.rs index 00159926..6a37f4ef 100644 --- a/substrate/node/src/service.rs +++ b/substrate/node/src/service.rs @@ -313,7 +313,9 @@ pub fn new_full(config: Configuration) -> Result { grandpa::run_grandpa_voter(grandpa::GrandpaParams { config: grandpa::Config { gossip_duration: std::time::Duration::from_millis(333), - justification_generation_period: 10, + // This is the delay between generating justifications for blocks + // We attemopt to generate a justification for every block + justification_generation_period: 0, name: Some(name), observer_enabled: false, keystore: if role.is_authority() { Some(keystore) } else { None }, diff --git a/substrate/tree-cleanup/bandersnatch_vrfs/src/lib.rs b/substrate/tree-cleanup/bandersnatch_vrfs/src/lib.rs index e69de29b..8b137891 100644 --- a/substrate/tree-cleanup/bandersnatch_vrfs/src/lib.rs +++ b/substrate/tree-cleanup/bandersnatch_vrfs/src/lib.rs @@ -0,0 +1 @@ + diff --git a/substrate/tree-cleanup/w3f-bls/src/lib.rs b/substrate/tree-cleanup/w3f-bls/src/lib.rs index e69de29b..8b137891 100644 --- a/substrate/tree-cleanup/w3f-bls/src/lib.rs +++ b/substrate/tree-cleanup/w3f-bls/src/lib.rs @@ -0,0 +1 @@ +