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

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

Merged
1 commit merged into from
Sep 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions node/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion node/subsystem-util/src/rolling_session_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down