Skip to content

Commit

Permalink
Temporarily increase reorg change
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Jul 31, 2024
1 parent 0ceaa6a commit b30f08e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/humanode-peer/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
network: Arc::clone(&network),
sync: Arc::clone(&sync_service),
voting_rule: sc_consensus_grandpa::VotingRulesBuilder::new()
.add(sc_consensus_grandpa::BeforeBestBlockBy(7u32))
.add(sc_consensus_grandpa::ThreeQuartersOfTheUnfinalizedChain)
.build(),
prometheus_registry,
Expand Down
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 b30f08e

Please sign in to comment.