Skip to content

Commit

Permalink
Add params to increase reorg chance
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Jul 31, 2024
1 parent 031b83e commit 38e93ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/humanode-runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mod block_time {

// NOTE: Currently it is not possible to change the slot duration after the chain has started.
// Attempting to do so will brick block production.
pub const MILLISECS_PER_BLOCK: u64 = 6000;
pub const MILLISECS_PER_BLOCK: u64 = 1000;
pub const SECS_PER_BLOCK: u64 = MILLISECS_PER_BLOCK / 1000;

// These time units are defined in number of blocks.
Expand Down Expand Up @@ -46,7 +46,7 @@ pub mod babe {
use crate::BlockNumber;

// 1 in 4 blocks (on average, not counting collisions) will be primary BABE blocks.
pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4);
pub const PRIMARY_PROBABILITY: (u64, u64) = (3, 4);
/// The BABE epoch configuration at genesis.
pub const BABE_GENESIS_EPOCH_CONFIG: sp_consensus_babe::BabeEpochConfiguration =
sp_consensus_babe::BabeEpochConfiguration {
Expand Down
2 changes: 1 addition & 1 deletion crates/humanode-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ impl pallet_bioauth::benchmarking::AuthTicketBuilder for Runtime {

impl pallet_bootnodes::Config for Runtime {
type BootnodeId = AccountId;
type MaxBootnodes = ConstU32<16>;
type MaxBootnodes = ConstU32<5000>;
}

impl pallet_humanode_session::Config for Runtime {
Expand Down

0 comments on commit 38e93ad

Please sign in to comment.