Struct nakamoto_node::Config
source · pub struct Config {
pub network: Network,
pub domains: Vec<Domain, Global>,
pub connect: Vec<SocketAddr, Global>,
pub listen: Vec<SocketAddr, Global>,
pub root: PathBuf,
pub verify: bool,
pub user_agent: &'static str,
pub hooks: Hooks,
pub services: ServiceFlags,
pub limits: Limits,
}
Expand description
Client configuration.
Fields
network: Network
Bitcoin network.
domains: Vec<Domain, Global>
Connect via these network domains, eg. IPv4, IPv6.
connect: Vec<SocketAddr, Global>
Peers to connect to instead of using the peer discovery mechanism.
listen: Vec<SocketAddr, Global>
Client listen addresses.
root: PathBuf
Client home path, where runtime data is stored, eg. block headers and filters.
verify: bool
Verify on-disk data at load time.
This can be set to true
for additional checks, if for example data integrity
of the file system is not guaranteed, or the file system is untrusted.
user_agent: &'static str
User agent string.
hooks: Hooks
Client hooks.
services: ServiceFlags
Services offered by this node.
limits: Limits
Configured limits.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more