Skip to content

Commit b0ce1b1

Browse files
committed
style: address PR comments
1 parent baa84f3 commit b0ce1b1

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

mithril-aggregator/src/configuration.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ pub trait ConfigurationSource {
384384
) -> StdResult<AggregatorEpochSettings> {
385385
Ok(AggregatorEpochSettings {
386386
protocol_parameters: self.protocol_parameters().with_context(
387-
|| "Configuration `protocol_parameter` is mandatory for a Leader Aggregator",
387+
|| "Configuration `protocol_parameters` is mandatory for a Leader Aggregator",
388388
)?,
389389
cardano_transactions_signing_config: self
390390
.cardano_transactions_signing_config()
@@ -571,8 +571,9 @@ pub struct ServeCommandConfiguration {
571571
#[example = "`{ security_parameter: 3000, step: 120 }`"]
572572
pub cardano_transactions_signing_config: Option<CardanoTransactionsSigningConfig>,
573573

574-
/// Blocks offset, from the tip of the chain, to exclude during the cardano transactions preload
575-
/// `[default: 2160]`.
574+
/// Blocks offset, from the tip of the chain, to exclude during the Cardano transactions preload,
575+
/// default to 2160.
576+
#[example = "`2160`"]
576577
pub preload_security_parameter: BlockNumber,
577578

578579
/// Maximum number of transactions hashes allowed by request to the prover of the Cardano transactions
@@ -1003,7 +1004,7 @@ pub struct DefaultConfiguration {
10031004
/// Cardano transactions signing configuration
10041005
pub cardano_transactions_signing_config: CardanoTransactionsSigningConfig,
10051006

1006-
/// Blocks offset, from the tip of the chain, to exclude during the cardano transactions preload
1007+
/// Blocks offset, from the tip of the chain, to exclude during the Cardano transactions preload
10071008
pub preload_security_parameter: u64,
10081009

10091010
/// Maximum number of transactions hashes allowed by request to the prover of the Cardano transactions

mithril-aggregator/src/database/query/epoch_settings/insert_or_ignore_epoch_settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use mithril_persistence::sqlite::{Query, SourceAlias, SqLiteEntity, WhereConditi
44

55
use crate::database::record::EpochSettingsRecord;
66

7-
/// Query to update [EpochSettingsRecord] in the sqlite database
7+
/// Query to insert a [EpochSettingsRecord] into the sqlite database if it does not already exist.
88
pub struct InsertOrIgnoreEpochSettingsQuery {
99
condition: WhereCondition,
1010
}

mithril-aggregator/src/store/epoch_settings_storer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub trait EpochSettingsStorer:
7070
.cardano_transactions
7171
.clone()
7272
.ok_or(anyhow!(
73-
"missing cardano transactions signing config for epoch {epoch}"
73+
"Missing cardano transactions signing config for epoch {epoch}"
7474
))?,
7575
},
7676
)

mithril-common/src/messages/epoch_settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct EpochSettingsMessage {
1111
/// Signer Registration Protocol parameters
1212
#[deprecated(
1313
since = "0.6.27",
14-
note = "Will be removed soon. use `mithril_protocol_config` crate instead."
14+
note = "Will be removed soon. use `mithril-protocol-config` crate instead."
1515
)]
1616
#[serde(
1717
rename = "signer_registration_protocol",
@@ -28,7 +28,7 @@ pub struct EpochSettingsMessage {
2828
/// Cardano transactions signing configuration for the current epoch
2929
#[deprecated(
3030
since = "0.6.27",
31-
note = "Will be removed soon. use `mithril_protocol_config` crate instead."
31+
note = "Will be removed soon. use `mithril-protocol-config` crate instead."
3232
)]
3333
#[serde(skip_serializing_if = "Option::is_none")]
3434
pub cardano_transactions_signing_config: Option<CardanoTransactionsSigningConfig>,

mithril-signer/src/configuration.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ pub struct Configuration {
7070
/// be considered final, preventing any further rollback `[default: 2160]`.
7171
pub network_security_parameter: BlockNumber,
7272

73-
/// Blocks offset, from the tip of the chain, to exclude during the cardano transactions preload
74-
/// `[default: 3000]`.
73+
/// Blocks offset, from the tip of the chain, to exclude during the Cardano transactions preload,
74+
/// default to 1000.
75+
#[example = "`2160`"]
7576
pub preload_security_parameter: BlockNumber,
7677

7778
/// Aggregator endpoint

mithril-signer/src/database/query/protocol_initializer/insert_protocol_initializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use mithril_persistence::sqlite::{Query, SourceAlias, SqLiteEntity, WhereConditi
55

66
use crate::database::record::ProtocolInitializerRecord;
77

8-
/// Query to insert or ignore [ProtocolInitializerRecord] in the sqlite database
8+
/// Query to insert a [ProtocolInitializerRecord] into the sqlite database if it does not already exist.
99
pub struct InsertOrIgnoreProtocolInitializerQuery {
1010
condition: WhereCondition,
1111
}

0 commit comments

Comments
 (0)