Struct exonum_btc_anchoring::AnchoringNodeConfig
[−]
[src]
pub struct AnchoringNodeConfig { pub rpc: Option<AnchoringRpcConfig>, pub private_keys: BTreeMap<String, PrivateKey>, pub check_lect_frequency: u64, pub observer: AnchoringObserverConfig, }
Private part of anchoring service configuration stored on a local machine.
Fields
rpc: Option<AnchoringRpcConfig>
Rpc configuration. Must exist if node is validator.
Otherwise node can only check lect
payload without any checks with bitcoind
.
private_keys: BTreeMap<String, PrivateKey>
Set of private keys for each anchoring address.
check_lect_frequency: u64
Frequency of lect check in blocks.
observer: AnchoringObserverConfig
Anchoring observer config.
Methods
impl AnchoringNodeConfig
[src]
pub fn new(rpc: Option<AnchoringRpcConfig>) -> AnchoringNodeConfig
[src]
Creates blank configuration from given rpc config.
Trait Implementations
impl Clone for AnchoringNodeConfig
[src]
fn clone(&self) -> AnchoringNodeConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for AnchoringNodeConfig
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for AnchoringNodeConfig
[src]
fn eq(&self, __arg_0: &AnchoringNodeConfig) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AnchoringNodeConfig) -> bool
[src]
This method tests for !=
.
impl Default for AnchoringNodeConfig
[src]
fn default() -> AnchoringNodeConfig
[src]
Returns the "default value" for a type. Read more