Skip to content

Commit ecf55b5

Browse files
committed
update documentation
1 parent 75c030f commit ecf55b5

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed
25.8 KB
Loading

mithril-common/src/era/era_reader.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl EraEpochToken {
8787
}
8888

8989
/// 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.
9191
pub struct EraReader {
9292
adapter: Box<dyn EraReaderAdapter>,
9393
}
@@ -105,8 +105,7 @@ pub enum EraReaderError {
105105
error: Box<dyn StdError + Sync + Send>,
106106
},
107107

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.
110109
#[error("Current Era could not be determined with data from the adapter.")]
111110
CurrentEraNotFound,
112111
}

mithril-common/src/era/supported_era.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl SupportedEra {
2020

2121
/// Error related to [SupportedEra] String parsing implementation.
2222
#[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.")]
2424
pub struct UnsupportedEraError(String);
2525

2626
impl FromStr for SupportedEra {

mithril-signer/src/runtime/state_machine.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ pub enum SignerState {
1313
/// Hold the latest known epoch in order to help synchronisation
1414
/// with the aggregator
1515
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
1917
epoch: Epoch,
2018
},
2119

22-
/// `Registered` state
20+
/// `Registered` state. The Signer has successfuly registered against the
21+
/// Aggregator for this Epoch, it is now able to sign.
2322
Registered {
2423
/// Beacon when Signer may sign.
2524
beacon: Beacon,
2625
},
2726

28-
/// `Signed` state
27+
/// `Signed` state. The Signer has signed the immutable files for the
28+
/// current Beacon.
2929
Signed {
3030
/// Beacon when Signer signed.
3131
beacon: Beacon,

0 commit comments

Comments
 (0)