Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Increase delay for pov-recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
skunert committed Jan 25, 2023
1 parent 08b2582 commit 977da03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion client/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ where
overseer_handle.clone(),
// We want that collators wait at maximum the relay chain slot duration before starting
// to recover blocks.
RecoveryDelay { min: core::time::Duration::ZERO, max: relay_chain_slot_duration },
RecoveryDelay {
min: relay_chain_slot_duration.checked_div(2).expect("2 is larger than 0; qed"),
max: relay_chain_slot_duration,
},
client.clone(),
import_queue,
relay_chain_interface.clone(),
Expand Down
5 changes: 1 addition & 4 deletions test/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,7 @@ where
para_id,
relay_chain_interface,
import_queue: import_queue_service,
// The slot duration is currently used internally only to configure
// the recovery delay of pov-recovery. We don't want to wait for too
// long on the full node to recover, so we reduce this time here.
relay_chain_slot_duration: Duration::from_millis(6),
relay_chain_slot_duration: Duration::from_secs(6),
};

start_full_node(params)?;
Expand Down

0 comments on commit 977da03

Please sign in to comment.