Struct exonum_btc_anchoring::AnchoringNodeConfig
[−]
pub struct AnchoringNodeConfig { pub rpc: Option<AnchoringRpcConfig>, pub private_keys: BTreeMap<String, PrivateKey>, pub check_lect_frequency: u64, pub observer: Option<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: Option<AnchoringObserverConfig>
Anchoring observer config.
Methods
impl AnchoringNodeConfig
[src]
fn new(rpc: Option<AnchoringRpcConfig>) -> AnchoringNodeConfig
Creates blank configuration from given rpc config.
Trait Implementations
impl Clone for AnchoringNodeConfig
[src]
fn clone(&self) -> AnchoringNodeConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for AnchoringNodeConfig
[src]
impl PartialEq for AnchoringNodeConfig
[src]
fn eq(&self, __arg_0: &AnchoringNodeConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AnchoringNodeConfig) -> bool
This method tests for !=
.
impl Default for AnchoringNodeConfig
[src]
fn default() -> AnchoringNodeConfig
Returns the "default value" for a type. Read more