File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
docs/root/mithril/mithril-network/images
mithril-signer/src/runtime Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl EraEpochToken {
87
87
}
88
88
89
89
/// The EraReader is responsible of giving the current Era and the Era to come.
90
- /// Is uses an [EraReaderAdapter] to read data from a backend.
90
+ /// It uses an [EraReaderAdapter] to read data from a backend.
91
91
pub struct EraReader {
92
92
adapter : Box < dyn EraReaderAdapter > ,
93
93
}
@@ -105,8 +105,7 @@ pub enum EraReaderError {
105
105
error : Box < dyn StdError + Sync + Send > ,
106
106
} ,
107
107
108
- /// Data returned from the adapter are inconsistent or incomplete preventing
109
- /// the determined the current [EraMarker].
108
+ /// Data returned from the adapter are inconsistent or incomplete.
110
109
#[ error( "Current Era could not be determined with data from the adapter." ) ]
111
110
CurrentEraNotFound ,
112
111
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ impl SupportedEra {
20
20
21
21
/// Error related to [SupportedEra] String parsing implementation.
22
22
#[ derive( Error , Debug ) ]
23
- #[ error( "Unable to transform era '{0}' into a currently supported era ('thales') ." ) ]
23
+ #[ error( "Unable to transform era '{0}' into a currently supported era." ) ]
24
24
pub struct UnsupportedEraError ( String ) ;
25
25
26
26
impl FromStr for SupportedEra {
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ pub enum SignerState {
13
13
/// Hold the latest known epoch in order to help synchronisation
14
14
/// with the aggregator
15
15
Unregistered {
16
- /// Unregistered state may know its epoch (None at startup). The given
17
- /// epoch corresponds to the previous epoch in order to be able to
18
- /// register stake distribution.
16
+ /// Current Epoch
19
17
epoch : Epoch ,
20
18
} ,
21
19
22
- /// `Registered` state
20
+ /// `Registered` state. The Signer has successfuly registered against the
21
+ /// Aggregator for this Epoch, it is now able to sign.
23
22
Registered {
24
23
/// Beacon when Signer may sign.
25
24
beacon : Beacon ,
26
25
} ,
27
26
28
- /// `Signed` state
27
+ /// `Signed` state. The Signer has signed the immutable files for the
28
+ /// current Beacon.
29
29
Signed {
30
30
/// Beacon when Signer signed.
31
31
beacon : Beacon ,
You can’t perform that action at this time.
0 commit comments