pub struct MempoolNodeConfig {
pub log_truncate_long_values: bool,
pub emit_stats_metrics: bool,
pub clean_db_period_rounds: NonZeroU16,
pub cache_future_broadcasts_rounds: u16,
pub max_blocking_tasks: NonZeroU16,
pub max_upload_tasks: NonZeroU8,
pub max_download_tasks: NonZeroU16,
}Fields§
§log_truncate_long_values: booltrue to truncate hashes, signatures and use non-standard format for large structs
that may be more readable
emit_stats_metrics: booltrue to export metrics on how the current node views every other’s points,
this is NxN amount of metrics (N labels from each of N nodes)
clean_db_period_rounds: NonZeroU16How often (in rounds) delete obsolete data and trigger rocksDB compaction.
cache_future_broadcasts_rounds: u16amount of future [Round]s (beyond current Dag)
that BroadcastFilter caches
to extend Dag without downloading points
max_blocking_tasks: NonZeroU16Tokio default upper limit is 512.
Tycho tread pool config
does not have a corresponding parameter and does not change tokio’s default value.
max_upload_tasks: NonZeroU8Max simultaneous point search tasks fulfilling download request
max_download_tasks: NonZeroU16Limits amount of unique points being simultaneously downloaded from all peers.
Trait Implementations§
Source§impl Clone for MempoolNodeConfig
impl Clone for MempoolNodeConfig
Source§fn clone(&self) -> MempoolNodeConfig
fn clone(&self) -> MempoolNodeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MempoolNodeConfig
impl Debug for MempoolNodeConfig
Source§impl Default for MempoolNodeConfig
impl Default for MempoolNodeConfig
Source§impl<'de> Deserialize<'de> for MempoolNodeConfigwhere
MempoolNodeConfig: Default,
impl<'de> Deserialize<'de> for MempoolNodeConfigwhere
MempoolNodeConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MempoolNodeConfig
impl PartialEq for MempoolNodeConfig
Source§impl Serialize for MempoolNodeConfig
impl Serialize for MempoolNodeConfig
impl StructuralPartialEq for MempoolNodeConfig
Auto Trait Implementations§
impl Freeze for MempoolNodeConfig
impl RefUnwindSafe for MempoolNodeConfig
impl Send for MempoolNodeConfig
impl Sync for MempoolNodeConfig
impl Unpin for MempoolNodeConfig
impl UnwindSafe for MempoolNodeConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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