pub struct ServiceFlagsConfig {
pub node_network: bool,
pub node_witness: bool,
pub node_compact_filters: bool,
pub node_network_limited: bool,
pub node_fibre: bool,
pub node_dandelion: bool,
pub node_package_relay: bool,
pub node_utxo_commitments: bool,
pub node_ban_list_sharing: bool,
pub node_v2_transport: bool,
pub node_governance: bool,
}Expand description
Service flags configuration
Controls which service capabilities are advertised to peers.
Fields§
§node_network: boolAdvertise NODE_NETWORK capability Default: true (always enabled)
node_witness: boolAdvertise NODE_WITNESS capability (SegWit support) Default: true
node_compact_filters: boolAdvertise NODE_COMPACT_FILTERS capability (BIP157/158) Default: false
node_network_limited: boolAdvertise NODE_NETWORK_LIMITED capability Default: false
node_fibre: boolAdvertise Commons NODE_FIBRE capability Default: false
node_dandelion: boolAdvertise Commons NODE_DANDELION capability Default: false
node_package_relay: boolAdvertise Commons NODE_PACKAGE_RELAY capability (BIP331) Default: false
node_utxo_commitments: boolAdvertise Commons NODE_UTXO_COMMITMENTS capability Default: false (requires utxo-commitments feature)
node_ban_list_sharing: boolAdvertise Commons NODE_BAN_LIST_SHARING capability Default: false
node_v2_transport: boolAdvertise NODE_V2_TRANSPORT capability (BIP324) Default: false (requires bip324 feature)
node_governance: boolAdvertise Commons NODE_GOVERNANCE capability (governance message relay) Default: false
Trait Implementations§
Source§impl Clone for ServiceFlagsConfig
impl Clone for ServiceFlagsConfig
Source§fn clone(&self) -> ServiceFlagsConfig
fn clone(&self) -> ServiceFlagsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServiceFlagsConfig
impl Debug for ServiceFlagsConfig
Source§impl Default for ServiceFlagsConfig
impl Default for ServiceFlagsConfig
Source§impl<'de> Deserialize<'de> for ServiceFlagsConfig
impl<'de> Deserialize<'de> for ServiceFlagsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ServiceFlagsConfig
impl PartialEq for ServiceFlagsConfig
Source§fn eq(&self, other: &ServiceFlagsConfig) -> bool
fn eq(&self, other: &ServiceFlagsConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceFlagsConfig
impl Serialize for ServiceFlagsConfig
impl Eq for ServiceFlagsConfig
impl StructuralPartialEq for ServiceFlagsConfig
Auto Trait Implementations§
impl Freeze for ServiceFlagsConfig
impl RefUnwindSafe for ServiceFlagsConfig
impl Send for ServiceFlagsConfig
impl Sync for ServiceFlagsConfig
impl Unpin for ServiceFlagsConfig
impl UnsafeUnpin for ServiceFlagsConfig
impl UnwindSafe for ServiceFlagsConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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