Skip to content

Commit

Permalink
node: adapt to new sortition config
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Jan 8, 2024
1 parent 6401acb commit e8c13ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
9 changes: 2 additions & 7 deletions node/benches/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ fn create_step_votes(
) -> StepVotes {
let generator = provisioners.get_generator(iteration, seed, round);

let sortition_config = SortitionConfig::new(
seed,
round,
step.to_step(iteration),
64,
Some(generator),
);
let sortition_config =
SortitionConfig::new(seed, round, iteration, step, Some(generator));

let committee = Committee::new(provisioners, &sortition_config);

Expand Down
7 changes: 1 addition & 6 deletions node/src/chain/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ use std::sync::Arc;
use tokio::sync::RwLock;
use tracing::{info, warn};

use dusk_consensus::quorum::verifiers;

use dusk_consensus::config;
use dusk_consensus::quorum::verifiers::QuorumResult;
use dusk_consensus::quorum::verifiers::{self, QuorumResult};

use super::consensus::Task;

Expand Down Expand Up @@ -686,7 +683,6 @@ pub async fn verify_block_cert(
curr_seed,
&hdr,
StepName::Validation,
config::VALIDATION_COMMITTEE_SIZE,
enable_quorum_check,
)
.await
Expand Down Expand Up @@ -714,7 +710,6 @@ pub async fn verify_block_cert(
curr_seed,
&hdr,
StepName::Ratification,
config::RATIFICATION_COMMITTEE_SIZE,
enable_quorum_check,
)
.await
Expand Down

0 comments on commit e8c13ab

Please sign in to comment.