File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ pub trait SignerRegistrationRoundOpener: Sync + Send {
79
79
registration_epoch : Epoch ,
80
80
stake_distribution : StakeDistribution ,
81
81
) -> Result < ( ) , SignerRegistrationError > ;
82
+
83
+ /// Close a signer registration round
84
+ async fn close_registration_round ( & self ) -> Result < ( ) , SignerRegistrationError > ;
82
85
}
83
86
84
87
/// Implementation of a [SignerRegisterer]
@@ -127,6 +130,13 @@ impl SignerRegistrationRoundOpener for MithrilSignerRegisterer {
127
130
128
131
Ok ( ( ) )
129
132
}
133
+
134
+ async fn close_registration_round ( & self ) -> Result < ( ) , SignerRegistrationError > {
135
+ let mut current_round = self . current_round . write ( ) . await ;
136
+ * current_round = None ;
137
+
138
+ Ok ( ( ) )
139
+ }
130
140
}
131
141
132
142
#[ async_trait]
You can’t perform that action at this time.
0 commit comments