Struct lumina_node::NodeConfig
source · pub struct NodeConfig<B, S>where
B: Blockstore,
S: Store,{
pub network_id: String,
pub p2p_local_keypair: Keypair,
pub p2p_bootnodes: Vec<Multiaddr>,
pub p2p_listen_on: Vec<Multiaddr>,
pub sync_batch_size: u64,
pub blockstore: B,
pub store: S,
}Expand description
Node conifguration.
Fields§
§network_id: StringAn id of the network to connect to.
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.
sync_batch_size: u64Maximum number of headers in batch while syncing.
blockstore: BThe blockstore for bitswap.
store: SThe store for headers.
Auto Trait Implementations§
impl<B, S> Freeze for NodeConfig<B, S>
impl<B, S> RefUnwindSafe for NodeConfig<B, S>where
B: RefUnwindSafe,
S: RefUnwindSafe,
impl<B, S> Send for NodeConfig<B, S>
impl<B, S> Sync for NodeConfig<B, S>
impl<B, S> Unpin for NodeConfig<B, S>
impl<B, S> UnwindSafe for NodeConfig<B, S>where
B: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Converts
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>
Converts
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