From f9117236f7d4ec0ada19b2e464869fdaad588e77 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Thu, 9 Nov 2023 09:10:37 +0100 Subject: [PATCH] Add target_committee_size to ProtocolParameters --- sdk/src/types/block/protocol.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/src/types/block/protocol.rs b/sdk/src/types/block/protocol.rs index b52242dc92..25556c4fd2 100644 --- a/sdk/src/types/block/protocol.rs +++ b/sdk/src/types/block/protocol.rs @@ -78,6 +78,9 @@ pub struct ProtocolParameters { pub(crate) version_signaling: VersionSignalingParameters, /// Defines the parameters used for reward calculation. pub(crate) rewards_parameters: RewardsParameters, + /// Defines the target size of the committee. If there's fewer candidates the actual committee size could be + /// smaller in a given epoch. + pub(crate) target_committee_size: u8, } // This implementation is required to make [`ProtocolParameters`] a [`Packable`] visitor. @@ -113,6 +116,7 @@ impl Default for ProtocolParameters { congestion_control_parameters: Default::default(), version_signaling: Default::default(), rewards_parameters: Default::default(), + target_committee_size: 32, } } }