[][src]Struct ckb_tx_pool::service::TxPoolController

pub struct TxPoolController { /* fields omitted */ }

Implementations

impl TxPoolController[src]

pub fn handle(&self) -> &Handle[src]

pub fn get_block_template(
    &self,
    bytes_limit: Option<u64>,
    proposals_limit: Option<u64>,
    max_version: Option<Version>
) -> Result<BlockTemplateResult, FailureError>
[src]

pub fn get_block_template_with_block_assembler_config(
    &self,
    bytes_limit: Option<u64>,
    proposals_limit: Option<u64>,
    max_version: Option<Version>,
    block_assembler_config: Option<BlockAssemblerConfig>
) -> Result<BlockTemplateResult, FailureError>
[src]

pub fn notify_new_uncle(
    &self,
    uncle: UncleBlockView
) -> Result<(), FailureError>
[src]

pub fn update_tx_pool_for_reorg(
    &self,
    detached_blocks: VecDeque<BlockView>,
    attached_blocks: VecDeque<BlockView>,
    detached_proposal_id: HashSet<ProposalShortId>,
    snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
[src]

pub fn submit_txs(
    &self,
    txs: Vec<TransactionView>
) -> Result<SubmitTxsResult, FailureError>
[src]

pub fn plug_entry(
    &self,
    entries: Vec<TxEntry>,
    target: PlugTarget
) -> Result<(), FailureError>
[src]

pub fn notify_txs(
    &self,
    txs: Vec<TransactionView>,
    callback: Option<Box<dyn FnOnce(SubmitTxsResult) + Send + Sync + 'static>>
) -> Result<(), FailureError>
[src]

pub fn get_tx_pool_info(&self) -> Result<TxPoolInfo, FailureError>[src]

pub fn fresh_proposals_filter(
    &self,
    proposals: Vec<ProposalShortId>
) -> Result<Vec<ProposalShortId>, FailureError>
[src]

pub fn fetch_tx_for_rpc(
    &self,
    id: ProposalShortId
) -> Result<Option<(bool, TransactionView)>, FailureError>
[src]

pub fn fetch_txs(
    &self,
    short_ids: Vec<ProposalShortId>
) -> Result<HashMap<ProposalShortId, TransactionView>, FailureError>
[src]

pub fn fetch_txs_with_cycles(
    &self,
    short_ids: Vec<ProposalShortId>
) -> Result<Vec<(ProposalShortId, (TransactionView, Cycle))>, FailureError>
[src]

pub fn clear_pool(
    &self,
    new_snapshot: Arc<Snapshot>
) -> Result<(), FailureError>
[src]

Trait Implementations

impl Clone for TxPoolController[src]

impl Drop for TxPoolController[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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

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

impl<T> Erased for T

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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