revert +1 change to be on the safer side (#3972)

This commit is contained in:
Andronik Ordian
2021-09-29 21:24:12 +02:00
committed by GitHub
parent 019d4e3b99
commit f66440dc19
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -69,8 +69,7 @@ pub const POV_BOMB_LIMIT: usize = (MAX_POV_SIZE * 4u32) as usize;
/// On Polkadot this is 1 day, and on Kusama it's 6 hours.
///
/// Number of sessions we want to consider in disputes.
/// + 1 for the child's session.
pub const DISPUTE_WINDOW: SessionIndex = 6 + 1;
pub const DISPUTE_WINDOW: SessionIndex = 6;
/// The cumulative weight of a block in a fork-choice rule.
pub type BlockWeight = u32;
@@ -289,7 +289,7 @@ mod tests {
use polkadot_primitives::v1::Header;
use sp_core::testing::TaskExecutor;
const TEST_WINDOW_SIZE: SessionIndex = 6 + 1;
const TEST_WINDOW_SIZE: SessionIndex = 6;
fn dummy_session_info(index: SessionIndex) -> SessionInfo {
SessionInfo {