Struct lumina_node::node::NodeConfig
source · pub struct NodeConfig<S>where
S: Store + 'static,{
pub network_id: String,
pub genesis_hash: Option<Hash>,
pub p2p_local_keypair: Keypair,
pub p2p_bootnodes: Vec<Multiaddr>,
pub p2p_listen_on: Vec<Multiaddr>,
pub store: S,
}Expand description
Node conifguration.
Fields§
§network_id: StringAn id of the network to connect to.
genesis_hash: Option<Hash>The hash of the genesis block in network.
p2p_local_keypair: KeypairThe keypair to be used as Nodes identity.
p2p_bootnodes: Vec<Multiaddr>List of bootstrap nodes to connect to and trust.
p2p_listen_on: Vec<Multiaddr>List of the addresses where Node will listen for incoming connections.
store: SThe store for headers.
Auto Trait Implementations§
impl<S> RefUnwindSafe for NodeConfig<S>where
S: RefUnwindSafe,
impl<S> Send for NodeConfig<S>
impl<S> Sync for NodeConfig<S>
impl<S> Unpin for NodeConfig<S>where
S: Unpin,
impl<S> UnwindSafe for NodeConfig<S>where
S: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more