From 53205eea6e6913cebc28660e5666c37e080993c6 Mon Sep 17 00:00:00 2001 From: goshawk-3 Date: Tue, 2 Jul 2024 11:23:53 +0300 Subject: [PATCH] consensus: Wrap voters in Option --- consensus/src/operations.rs | 2 +- consensus/src/proposal/block_generator.rs | 2 +- rusk/benches/block_ingestion.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/src/operations.rs b/consensus/src/operations.rs index cd44bc3fd0..7dddcef629 100644 --- a/consensus/src/operations.rs +++ b/consensus/src/operations.rs @@ -27,7 +27,7 @@ pub struct CallParams { pub block_gas_limit: u64, pub generator_pubkey: node_data::bls::PublicKey, pub missed_generators: Vec, - pub voters_pubkey: Vec, + pub voters_pubkey: Option>, } #[derive(Default)] diff --git a/consensus/src/proposal/block_generator.rs b/consensus/src/proposal/block_generator.rs index 2ae33bd381..0eda263e0d 100644 --- a/consensus/src/proposal/block_generator.rs +++ b/consensus/src/proposal/block_generator.rs @@ -97,7 +97,7 @@ impl Generator { 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 = diff --git a/rusk/benches/block_ingestion.rs b/rusk/benches/block_ingestion.rs index 38eaf31e3a..c07f06d4ec 100644 --- a/rusk/benches/block_ingestion.rs +++ b/rusk/benches/block_ingestion.rs @@ -105,7 +105,7 @@ pub fn accept_benchmark(c: &mut Criterion) { txs, None, &[], - &[], + None, ) .expect("Accepting transactions should succeed");