[][src]Struct grin_pool::types::PoolConfig

pub struct PoolConfig {
    pub accept_fee_base: u64,
    pub max_pool_size: usize,
    pub max_stempool_size: usize,
    pub mineable_max_weight: usize,
}

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.

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: usize

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

impl Clone for PoolConfig[src]

impl Default for PoolConfig[src]

impl PartialEq<PoolConfig> for PoolConfig[src]

impl Debug for PoolConfig[src]

impl Serialize for PoolConfig[src]

impl<'de> Deserialize<'de> for PoolConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T