From f66440dc19964ba8fdad531a0c0ccf95c4b2a096 Mon Sep 17 00:00:00 2001
From: Andronik Ordian <write@reusable.software>
Date: Wed, 29 Sep 2021 21:24:12 +0200
Subject: [PATCH] revert +1 change to be on the safer side (#3972)

---
 polkadot/node/primitives/src/lib.rs                        | 3 +--
 polkadot/node/subsystem-util/src/rolling_session_window.rs | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/polkadot/node/primitives/src/lib.rs b/polkadot/node/primitives/src/lib.rs
index 7544dd8d721..6e8490b67b9 100644
--- a/polkadot/node/primitives/src/lib.rs
+++ b/polkadot/node/primitives/src/lib.rs
@@ -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;
diff --git a/polkadot/node/subsystem-util/src/rolling_session_window.rs b/polkadot/node/subsystem-util/src/rolling_session_window.rs
index 1c73ff58c71..fc2957b7ea2 100644
--- a/polkadot/node/subsystem-util/src/rolling_session_window.rs
+++ b/polkadot/node/subsystem-util/src/rolling_session_window.rs
@@ -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 {
-- 
GitLab