pub struct Configuration {Show 30 fields
pub cardano_cli_path: PathBuf,
pub cardano_node_socket_path: PathBuf,
pub dmq_node_socket_path: Option<PathBuf>,
pub network: String,
pub network_magic: Option<u64>,
pub dmq_network_magic: Option<u64>,
pub network_security_parameter: BlockNumber,
pub preload_security_parameter: BlockNumber,
pub aggregator_endpoint: String,
pub relay_endpoint: Option<String>,
pub party_id: Option<PartyId>,
pub run_interval: u64,
pub db_directory: PathBuf,
pub data_stores_directory: PathBuf,
pub store_retention_limit: Option<usize>,
pub kes_secret_key_path: Option<PathBuf>,
pub operational_certificate_path: Option<PathBuf>,
pub disable_digests_cache: bool,
pub reset_digests_cache: bool,
pub era_reader_adapter_type: EraReaderAdapterType,
pub era_reader_adapter_params: Option<String>,
pub enable_metrics_server: bool,
pub metrics_server_ip: String,
pub metrics_server_port: u16,
pub allow_unparsable_block: bool,
pub enable_transaction_pruning: bool,
pub transactions_import_block_chunk_size: BlockNumber,
pub cardano_transactions_block_streamer_max_roll_forwards_per_poll: usize,
pub preloading_refresh_interval_in_seconds: u64,
pub signature_publisher_config: SignaturePublisherConfig,
}Expand description
Client configuration
Fields§
§cardano_cli_path: PathBufCardano CLI tool path
cardano_node_socket_path: PathBufPath of the socket opened by the Cardano node
dmq_node_socket_path: Option<PathBuf>Path of the socket opened by the DMQ node
network: StringCardano network
network_magic: Option<u64>Cardano network magic number useful for TestNet & DevNet
dmq_network_magic: Option<u64>DMQ network magic number
useful for TestNet & DevNet
network_security_parameter: BlockNumberAlso known as k, it defines the number of blocks that are required for the blockchain to
be considered final, preventing any further rollback [default: 2160].
preload_security_parameter: BlockNumberBlocks offset, from the tip of the chain, to exclude during the cardano transactions preload
[default: 3000].
aggregator_endpoint: StringAggregator endpoint
relay_endpoint: Option<String>Relay endpoint
party_id: Option<PartyId>Party Id
Used only for testing when SPO pool id is not certified
run_interval: u64Run Interval
db_directory: PathBufDirectory to snapshot
data_stores_directory: PathBufDirectory to store signer data (Stakes, Protocol initializers, …)
store_retention_limit: Option<usize>Store retention limit. If set to None, no limit will be set.
kes_secret_key_path: Option<PathBuf>File path to the KES secret key of the pool
operational_certificate_path: Option<PathBuf>File path to the operational certificate of the pool
disable_digests_cache: boolDisable immutables digests cache.
reset_digests_cache: boolIf set the existing immutables digests cache will be reset.
Will be ignored if set in conjunction with disable_digests_cache.
era_reader_adapter_type: EraReaderAdapterTypeEra reader adapter type
era_reader_adapter_params: Option<String>Era reader adapter parameters
enable_metrics_server: boolEnable metrics server (Prometheus endpoint on /metrics).
metrics_server_ip: StringMetrics HTTP Server IP.
metrics_server_port: u16Metrics HTTP Server listening port.
allow_unparsable_block: boolIf set no error is returned in case of unparsable block and an error log is written instead.
Will be ignored on (pre)production networks.
enable_transaction_pruning: boolIf set, the signer will prune the cardano transactions in database older than the
network_security_parameter blocks after each import
[default: true].
transactions_import_block_chunk_size: BlockNumberChunk size for importing transactions, combined with transaction pruning it reduces the storage footprint of the signer by reducing the number of transactions stored on disk at any given time.
cardano_transactions_block_streamer_max_roll_forwards_per_poll: usizeThe maximum number of roll forwards during a poll of the block streamer when importing transactions.
preloading_refresh_interval_in_seconds: u64Preloading refresh interval in seconds
signature_publisher_config: SignaturePublisherConfigSignature publisher configuration
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn get_network(&self) -> StdResult<CardanoNetwork>
pub fn get_network(&self) -> StdResult<CardanoNetwork>
Return the Cardano network value from the configuration.
Sourcepub fn get_dmq_network(&self) -> StdResult<DmqNetwork>
pub fn get_dmq_network(&self) -> StdResult<DmqNetwork>
Return the DMQ network value from the configuration.
Sourcepub fn get_sqlite_file(&self, sqlite_file_name: &str) -> StdResult<PathBuf>
pub fn get_sqlite_file(&self, sqlite_file_name: &str) -> StdResult<PathBuf>
Create the SQL store directory if not exist and return the path of the SQLite3 file.
Sourcepub fn build_era_reader_adapter(
&self,
chain_observer: Arc<dyn ChainObserver>,
) -> StdResult<Arc<dyn EraReaderAdapter>>
pub fn build_era_reader_adapter( &self, chain_observer: Arc<dyn ChainObserver>, ) -> StdResult<Arc<dyn EraReaderAdapter>>
Create era reader adapter from configuration settings.
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Configuration
impl Debug for Configuration
Source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Documenter for Configuration
impl Documenter for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more