Struct ckb_tx_pool::pool::TxPool
source · pub struct TxPool {
pub recent_reject: Option<RecentReject>,
/* private fields */
}Expand description
Tx-pool implementation
Fields§
§recent_reject: Option<RecentReject>record recent reject
Implementations§
source§impl TxPool
impl TxPool
sourcepub fn status_size(&self, status: Status) -> usize
pub fn status_size(&self, status: Status) -> usize
Get tx-pool size
sourcepub fn enable_rbf(&self) -> bool
pub fn enable_rbf(&self) -> bool
Check whether tx-pool enable RBF
sourcepub fn min_replace_fee(&self, tx: &TxEntry) -> Option<Capacity>
pub fn min_replace_fee(&self, tx: &TxEntry) -> Option<Capacity>
The least required fee rate to allow tx to be replaced
Auto Trait Implementations§
impl !RefUnwindSafe for TxPool
impl Send for TxPool
impl Sync for TxPool
impl Unpin for TxPool
impl !UnwindSafe for TxPool
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