Correct justification_generation_period from 0 to 1

Avoids a divide by zero in sc-consensus-grandpa.
This commit is contained in:
Luke Parker 2023-12-04 08:11:03 -05:00
parent 1820e916ca
commit f03ca53509
No known key found for this signature in database

View file

@ -315,7 +315,7 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
gossip_duration: std::time::Duration::from_millis(333),
// This is the delay between generating justifications for blocks
// We attemopt to generate a justification for every block
justification_generation_period: 0,
justification_generation_period: 1,
name: Some(name),
observer_enabled: false,
keystore: if role.is_authority() { Some(keystore) } else { None },