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_mass: u64,
pub maximum_orphan_transaction_count: u64,
pub accept_non_standard: bool,
pub maximum_mass_per_block: u64,
pub minimum_relay_transaction_fee: u64,
pub minimum_standard_transaction_version: u16,
pub maximum_standard_transaction_version: u16,
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_mass: u64§maximum_orphan_transaction_count: u64§accept_non_standard: bool§maximum_mass_per_block: u64§minimum_relay_transaction_fee: u64§minimum_standard_transaction_version: u16§maximum_standard_transaction_version: u16§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_mass: u64, maximum_orphan_transaction_count: u64, accept_non_standard: bool, maximum_mass_per_block: u64, minimum_relay_transaction_fee: u64, minimum_standard_transaction_version: u16, maximum_standard_transaction_version: u16, network_blocks_per_second: u64, ) -> Self
Sourcepub const fn build_default(
target_milliseconds_per_block: u64,
relay_non_std_transactions: bool,
max_block_mass: u64,
) -> Self
pub const fn build_default( target_milliseconds_per_block: u64, relay_non_std_transactions: bool, max_block_mass: u64, ) -> Self
Build a default config.
The arguments should be obtained from the current consensus kaspa_consensus_core::config::params::Params instance.
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 UnwindSafe for Config
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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