From a1fa735273fd62fde29be67d02399680b497ec2c Mon Sep 17 00:00:00 2001 From: goshawk-3 Date: Tue, 2 Jul 2024 11:23:53 +0300 Subject: [PATCH] rusk: Wrap voters in Option --- consensus/src/operations.rs | 2 +- consensus/src/proposal/block_generator.rs | 2 +- 2 files changed, 2 insertions(+), 2 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 =