Skip to main content

MempoolConfig

Struct MempoolConfig 

Source
pub struct MempoolConfig {
Show 15 fields pub max_mempool_mb: u64, pub max_mempool_txs: usize, pub mempool_expiry_hours: u64, pub min_relay_fee_rate: u64, pub min_tx_fee: i64, pub rbf_fee_increment: i64, pub max_op_return_size: u32, pub max_op_return_outputs: u32, pub reject_multiple_op_return: bool, pub max_standard_script_size: u32, pub reject_envelope_protocol: bool, pub reject_spam_in_mempool: bool, pub spam_filter_config: Option<Value>, pub min_fee_rate_large_tx: u64, pub large_tx_threshold_bytes: u64,
}
Expand description

Mempool configuration

Controls mempool size limits, fee rates, and transaction expiry. These are operational parameters, not consensus-critical.

Fields§

§max_mempool_mb: u64

Maximum mempool size in megabytes (default 300 MB) Default: 300 MB

§max_mempool_txs: usize

Maximum number of transactions in mempool (alternative to size-based limit) Default: 100000

§mempool_expiry_hours: u64

Mempool transaction expiry in hours (default 336 = 14 days) Transactions older than this are removed from mempool Default: 336 (14 days)

§min_relay_fee_rate: u64

Minimum relay fee rate in satoshis per virtual byte (default 1 sat/vB) Transactions with fee rate below this are not relayed Default: 1 sat/vB (1000 sat/kB)

§min_tx_fee: i64

Minimum transaction fee in satoshis (absolute minimum, regardless of size) Default: 1000 satoshis

§rbf_fee_increment: i64

RBF (Replace-By-Fee) minimum fee increment in satoshis (BIP125) Replacement transactions must pay at least this much more than the original Default: 1000 satoshis

§max_op_return_size: u32

Maximum OP_RETURN data size in bytes (default 80) Default: 80 bytes

§max_op_return_outputs: u32

Maximum number of OP_RETURN outputs allowed (default: 1) Transactions with more than this are rejected as non-standard

§reject_multiple_op_return: bool

Reject transactions with multiple OP_RETURN outputs Default: true

§max_standard_script_size: u32

Maximum standard script size in bytes Default: 200 bytes

§reject_envelope_protocol: bool

Reject envelope protocol (OP_FALSE OP_IF) scripts Default: true

§reject_spam_in_mempool: bool

Reject spam transactions at mempool entry (opt-in) Default: false (spam filtering is opt-in for mempool)

Admission: enforced in blvm-node by MempoolPolicyConfig::reject_spam_in_mempool in MempoolManager::add_transaction (uses blvm-protocol spam filter).

§spam_filter_config: Option<Value>

Spam filter configuration (if reject_spam_in_mempool is enabled) Note: Prefer blvm-node MempoolPolicyConfig::spam_filter + SpamFilterConfigSerializable.

§min_fee_rate_large_tx: u64

Minimum fee rate for large transactions (satoshis per vbyte) Transactions larger than large_tx_threshold_bytes must pay at least this fee rate Default: 2 sat/vB (higher than standard min_relay_fee_rate)

§large_tx_threshold_bytes: u64

Large transaction threshold (bytes) Transactions larger than this require min_fee_rate_large_tx Default: 1000 bytes

Trait Implementations§

Source§

impl Clone for MempoolConfig

Source§

fn clone(&self) -> MempoolConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MempoolConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for MempoolConfig

Source§

fn default() -> MempoolConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MempoolConfig

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<MempoolConfig, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for MempoolConfig

Source§

fn eq(&self, other: &MempoolConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MempoolConfig

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MempoolConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,