Skip to content

Commit

Permalink
rusk: 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 9f3c08a commit a1fa735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit a1fa735

Please sign in to comment.