@@ -36,7 +36,7 @@ pub trait EpochService: Sync + Send {
3636 /// internal state for the new epoch.
3737 async fn inform_epoch_settings (
3838 & mut self ,
39- signer_epoch : Epoch ,
39+ aggregator_signer_registration_epoch : Epoch ,
4040 mithril_network_configuration : MithrilNetworkConfiguration ,
4141 current_signers : Vec < Signer > ,
4242 next_signers : Vec < Signer > ,
@@ -170,20 +170,22 @@ impl MithrilEpochService {
170170impl EpochService for MithrilEpochService {
171171 async fn inform_epoch_settings (
172172 & mut self ,
173- signer_epoch : Epoch ,
173+ aggregator_signer_registration_epoch : Epoch ,
174174 mithril_network_configuration : MithrilNetworkConfiguration ,
175175 current_signers : Vec < Signer > ,
176176 next_signers : Vec < Signer > ,
177177 ) -> StdResult < ( ) > {
178- debug ! ( self . logger, ">> inform_epoch_settings" ; "signer_epoch " => ?signer_epoch , "mithril_network_configuration" => ?mithril_network_configuration, "current_signers" => ?current_signers, "next_signers" => ?next_signers) ;
178+ debug ! ( self . logger, ">> inform_epoch_settings" ; "aggregator_signer_registration_epoch " => ?aggregator_signer_registration_epoch , "mithril_network_configuration" => ?mithril_network_configuration, "current_signers" => ?current_signers, "next_signers" => ?next_signers) ;
179179
180180 let registration_protocol_parameters = mithril_network_configuration
181181 . signer_registration_protocol_parameters
182182 . clone ( ) ;
183183
184184 let protocol_initializer = self
185185 . protocol_initializer_store
186- . get_protocol_initializer ( signer_epoch. offset_to_signer_retrieval_epoch ( ) ?)
186+ . get_protocol_initializer (
187+ aggregator_signer_registration_epoch. offset_to_signer_retrieval_epoch ( ) ?,
188+ )
187189 . await ?;
188190
189191 let allowed_discriminants =
@@ -194,7 +196,7 @@ impl EpochService for MithrilEpochService {
194196 . clone ( ) ;
195197
196198 self . epoch_data = Some ( EpochData {
197- epoch : signer_epoch ,
199+ epoch : aggregator_signer_registration_epoch ,
198200 registration_protocol_parameters,
199201 protocol_initializer,
200202 current_signers,
@@ -377,7 +379,7 @@ pub(crate) mod mock_epoch_service {
377379 impl EpochService for EpochServiceImpl {
378380 async fn inform_epoch_settings(
379381 & mut self ,
380- signer_epoch : Epoch ,
382+ aggregator_signer_registration_epoch : Epoch ,
381383 mithril_network_configuration: MithrilNetworkConfiguration ,
382384 current_signers: Vec <Signer >,
383385 next_signers: Vec <Signer >,
0 commit comments