Struct grin_pool::types::PoolConfig
source · pub struct PoolConfig {
pub accept_fee_base: u64,
pub reorg_cache_period: u32,
pub max_pool_size: usize,
pub max_stempool_size: usize,
pub mineable_max_weight: u64,
}
Expand description
Transaction pool configuration
Fields§
§accept_fee_base: u64
Base fee for a transaction to be accepted by the pool. The transaction weight is computed from its number of inputs, outputs and kernels and multiplied by the base fee to compare to the actual transaction fee.
reorg_cache_period: u32
§max_pool_size: usize
Maximum capacity of the pool in number of transactions
max_stempool_size: usize
Maximum capacity of the pool in number of transactions
mineable_max_weight: u64
Maximum total weight of transactions that can get selected to build a block from. Allows miners to restrict the maximum weight of their blocks.
Trait Implementations§
source§impl Clone for PoolConfig
impl Clone for PoolConfig
source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
Returns a copy 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 PoolConfig
impl Debug for PoolConfig
source§impl Default for PoolConfig
impl Default for PoolConfig
source§fn default() -> PoolConfig
fn default() -> PoolConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PoolConfig
impl<'de> Deserialize<'de> for PoolConfig
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 PoolConfig
impl PartialEq for PoolConfig
source§fn eq(&self, other: &PoolConfig) -> bool
fn eq(&self, other: &PoolConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PoolConfig
impl Serialize for PoolConfig
impl StructuralPartialEq for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnwindSafe for PoolConfig
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