@@ -164,7 +164,7 @@ impl StateMachine {
164
164
"→ Epoch has changed, transiting to Unregistered"
165
165
) ;
166
166
* state = self . transition_from_unregistered_to_unregistered ( new_epoch) . await ?;
167
- } else if let Some ( signer_settings ) = self
167
+ } else if let Some ( signer_registrations ) = self
168
168
. runner
169
169
. get_epoch_settings ( )
170
170
. await
@@ -173,7 +173,7 @@ impl StateMachine {
173
173
nested_error : Some ( e) ,
174
174
} ) ?
175
175
{
176
- info ! ( self . logger, "→ Epoch settings found" ) ; //TODO Do we switch the logs and type from SignerEpochSettings to SignerSettings since now we only read current and next signer from it ?
176
+ info ! ( self . logger, "→ Epoch Signer registrations found" ) ;
177
177
let network_configuration = self
178
178
. runner
179
179
. get_mithril_network_configuration ( )
@@ -190,16 +190,16 @@ impl StateMachine {
190
190
* state = self
191
191
. transition_from_unregistered_to_one_of_registered_states (
192
192
network_configuration,
193
- signer_settings . current_signers ,
194
- signer_settings . next_signers ,
193
+ signer_registrations . current_signers ,
194
+ signer_registrations . next_signers ,
195
195
)
196
196
. await ?;
197
197
} else {
198
198
info ! (
199
199
self . logger, " ⋅ Signer settings and Network Configuration found, but its epoch is behind the known epoch, waiting…" ;
200
200
"network_configuration" => ?network_configuration,
201
- "current_singer" => ?signer_settings . current_signers,
202
- "next_signer" => ?signer_settings . next_signers,
201
+ "current_singer" => ?signer_registrations . current_signers,
202
+ "next_signer" => ?signer_registrations . next_signers,
203
203
"known_epoch" => ?epoch,
204
204
) ;
205
205
}
@@ -488,7 +488,6 @@ mod tests {
488
488
use anyhow:: anyhow;
489
489
use chrono:: DateTime ;
490
490
use mithril_protocol_config:: model:: MithrilNetworkConfiguration ;
491
- use mockall:: predicate;
492
491
493
492
use mithril_common:: entities:: { ChainPoint , Epoch , ProtocolMessage , SignedEntityType } ;
494
493
use mithril_common:: test:: double:: { Dummy , fake_data} ;
@@ -600,12 +599,6 @@ mod tests {
600
599
601
600
runner
602
601
. expect_inform_epoch_settings ( )
603
- . with (
604
- //todo do we really want to specify a WITH ?
605
- predicate:: eq ( MithrilNetworkConfiguration :: dummy ( ) ) ,
606
- predicate:: eq ( SignerEpochSettings :: dummy ( ) . current_signers ) ,
607
- predicate:: eq ( SignerEpochSettings :: dummy ( ) . next_signers ) ,
608
- )
609
602
. once ( )
610
603
. returning ( |_, _, _| Ok ( ( ) ) ) ;
611
604
@@ -658,12 +651,6 @@ mod tests {
658
651
659
652
runner
660
653
. expect_inform_epoch_settings ( )
661
- . with (
662
- //todo do we really want to specify a WITH ?
663
- predicate:: eq ( MithrilNetworkConfiguration :: dummy ( ) ) ,
664
- predicate:: eq ( SignerEpochSettings :: dummy ( ) . current_signers ) ,
665
- predicate:: eq ( SignerEpochSettings :: dummy ( ) . next_signers ) ,
666
- )
667
654
. once ( )
668
655
. returning ( |_, _, _| Ok ( ( ) ) ) ;
669
656
@@ -720,12 +707,6 @@ mod tests {
720
707
721
708
runner
722
709
. expect_inform_epoch_settings ( )
723
- . with (
724
- //todo do we really want to specify a WITH ?
725
- predicate:: eq ( MithrilNetworkConfiguration :: dummy ( ) ) ,
726
- predicate:: eq ( SignerEpochSettings :: dummy ( ) . current_signers ) ,
727
- predicate:: eq ( SignerEpochSettings :: dummy ( ) . next_signers ) ,
728
- )
729
710
. once ( )
730
711
. returning ( |_, _, _| Ok ( ( ) ) ) ;
731
712
0 commit comments