pub struct MemPoolOptions {Show 14 fields
pub max_size_bytes: usize,
pub expiry_seconds: u32,
pub min_relay_feerate: u64,
pub dust_relay_feerate: u64,
pub max_datacarrier_bytes: usize,
pub permit_bare_multisig: bool,
pub require_standard: bool,
pub max_script_cache_size: usize,
pub limits: MemPoolLimits,
pub enable_rbf: bool,
pub max_replacement_txs: usize,
pub enable_package_relay: bool,
pub max_package_count: usize,
pub max_package_vsize: u64,
}Expand description
Configuration options for the transaction memory pool.
Fields§
§max_size_bytes: usizeMaximum size of the mempool in bytes (default: 300 * 1_000_000)
expiry_seconds: u32Number of seconds to keep transactions in the mempool (default: 336 * 60 * 60)
min_relay_feerate: u64Minimum fee rate in satoshis per KB for a transaction to be accepted.
dust_relay_feerate: u64Minimum fee rate in satoshis per KB for a transaction to be accepted.
max_datacarrier_bytes: usizeA data carrying output is an unspendable output containing data. The script type is designated as TxoutType::NULL_DATA.
Maximum size of TxoutType::NULL_DATA scripts that this node considers standard. If nullopt, any size is nonstandard.
permit_bare_multisig: boolWhether to require standard transactions
require_standard: boolWhether to require standard transactions
max_script_cache_size: usizeMaximum script verification cache size
limits: MemPoolLimits§enable_rbf: boolWhether to enable RBF (BIP125).
max_replacement_txs: usizeMaximum number of transactions that can be replaced (BIP125 Rule 6).
enable_package_relay: boolEnable package relay/CPFP.
max_package_count: usizeMaximum number of transactions in a package.
max_package_vsize: u64Maximum total virtual size of package in vbytes.
Implementations§
Source§impl MemPoolOptions
impl MemPoolOptions
Sourcepub fn max_size_bytes(&self) -> usize
pub fn max_size_bytes(&self) -> usize
Get the maximum size of the mempool in bytes
Sourcepub fn expiry_duration(&self) -> Duration
pub fn expiry_duration(&self) -> Duration
Get the expiry duration
Sourcepub fn max_ancestors(&self) -> usize
pub fn max_ancestors(&self) -> usize
Get maximum number of ancestors
Sourcepub fn max_ancestor_size(&self) -> i64
pub fn max_ancestor_size(&self) -> i64
Get maximum ancestor size
Sourcepub fn max_descendants(&self) -> u64
pub fn max_descendants(&self) -> u64
Get maximum number of descendants
Sourcepub fn max_descendant_size(&self) -> i64
pub fn max_descendant_size(&self) -> i64
Get maximum descendant size
Sourcepub fn min_relay_fee_rate(&self) -> FeeRate
pub fn min_relay_fee_rate(&self) -> FeeRate
Get the minimum relay fee rate as FeeRate
Trait Implementations§
Source§impl Clone for MemPoolOptions
impl Clone for MemPoolOptions
Source§fn clone(&self) -> MemPoolOptions
fn clone(&self) -> MemPoolOptions
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemPoolOptions
impl Debug for MemPoolOptions
Auto Trait Implementations§
impl Freeze for MemPoolOptions
impl RefUnwindSafe for MemPoolOptions
impl Send for MemPoolOptions
impl Sync for MemPoolOptions
impl Unpin for MemPoolOptions
impl UnwindSafe for MemPoolOptions
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.