Skip to content

Commit

Permalink
consensus: Wrap voters in Option
Browse files Browse the repository at this point in the history
  • Loading branch information
goshawk-3 committed Jul 2, 2024
1 parent 4446ac8 commit 53205ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct CallParams {
pub block_gas_limit: u64,
pub generator_pubkey: node_data::bls::PublicKey,
pub missed_generators: Vec<StakePublicKey>,
pub voters_pubkey: Vec<VoterWithCredits>,
pub voters_pubkey: Option<Vec<VoterWithCredits>>,
}

#[derive(Default)]
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/proposal/block_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<T: Operations> Generator<T> {
block_gas_limit: config::DEFAULT_BLOCK_GAS_LIMIT,
generator_pubkey: ru.pubkey_bls.clone(),
missed_generators,
voters_pubkey: voters.to_owned(),
voters_pubkey: Some(voters.to_owned()),
};

let result =
Expand Down
2 changes: 1 addition & 1 deletion rusk/benches/block_ingestion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn accept_benchmark(c: &mut Criterion) {
txs,
None,
&[],
&[],
None,
)
.expect("Accepting transactions should succeed");

Expand Down

0 comments on commit 53205ee

Please sign in to comment.