pub struct Config {Show 19 fields
pub maximum_transaction_count: usize,
pub mempool_size_limit: usize,
pub maximum_build_block_template_attempts: u64,
pub transaction_expire_interval_daa_score: u64,
pub transaction_expire_scan_interval_daa_score: u64,
pub transaction_expire_scan_interval_milliseconds: u64,
pub accepted_transaction_expire_interval_daa_score: u64,
pub accepted_transaction_expire_scan_interval_daa_score: u64,
pub accepted_transaction_expire_scan_interval_milliseconds: u64,
pub orphan_expire_interval_daa_score: u64,
pub orphan_expire_scan_interval_daa_score: u64,
pub maximum_orphan_transaction_normalized_mass: u64,
pub maximum_orphan_transaction_count: u64,
pub accept_non_standard: bool,
pub mempool_block_mass_limits: BlockMassLimits,
pub mempool_mass_cofactors: MassCofactors,
pub block_lane_limits: BlockLaneLimits,
pub minimum_relay_transaction_fee: u64,
pub network_blocks_per_second: u64,
}Fields§
§maximum_transaction_count: usize§mempool_size_limit: usize§maximum_build_block_template_attempts: u64§transaction_expire_interval_daa_score: u64§transaction_expire_scan_interval_daa_score: u64§transaction_expire_scan_interval_milliseconds: u64§accepted_transaction_expire_interval_daa_score: u64§accepted_transaction_expire_scan_interval_daa_score: u64§accepted_transaction_expire_scan_interval_milliseconds: u64§orphan_expire_interval_daa_score: u64§orphan_expire_scan_interval_daa_score: u64§maximum_orphan_transaction_normalized_mass: u64§maximum_orphan_transaction_count: u64§accept_non_standard: bool§mempool_block_mass_limits: BlockMassLimits§mempool_mass_cofactors: MassCofactors§block_lane_limits: BlockLaneLimits§minimum_relay_transaction_fee: u64§network_blocks_per_second: u64Implementations§
Source§impl Config
impl Config
pub fn new( maximum_transaction_count: usize, mempool_size_limit: usize, maximum_build_block_template_attempts: u64, transaction_expire_interval_daa_score: u64, transaction_expire_scan_interval_daa_score: u64, transaction_expire_scan_interval_milliseconds: u64, accepted_transaction_expire_interval_daa_score: u64, accepted_transaction_expire_scan_interval_daa_score: u64, accepted_transaction_expire_scan_interval_milliseconds: u64, orphan_expire_interval_daa_score: u64, orphan_expire_scan_interval_daa_score: u64, maximum_orphan_transaction_normalized_mass: u64, maximum_orphan_transaction_count: u64, accept_non_standard: bool, mempool_block_mass_limits: BlockMassLimits, block_lane_limits: BlockLaneLimits, minimum_relay_transaction_fee: u64, network_blocks_per_second: u64, ) -> Self
Sourcepub const fn build_default(
target_milliseconds_per_block: u64,
relay_non_std_transactions: bool,
mempool_block_mass_limits: BlockMassLimits,
block_lane_limits: BlockLaneLimits,
) -> Self
pub const fn build_default( target_milliseconds_per_block: u64, relay_non_std_transactions: bool, mempool_block_mass_limits: BlockMassLimits, block_lane_limits: BlockLaneLimits, ) -> Self
Build a default config.
The mass limits should be obtained from kaspa_consensus_core::config::params::Params::block_mass_limits.
pub fn apply_ram_scale(self, ram_scale: f64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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,
impl<T> DebugAny for T
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