[][src]Struct ckb_sync::Relayer

pub struct Relayer { /* fields omitted */ }

TODO(doc): @driftluo

Implementations

impl Relayer[src]

pub fn new(
    chain: ChainController,
    shared: Arc<SyncShared>,
    min_fee_rate: FeeRate,
    max_tx_verify_cycles: Cycle
) -> Self
[src]

TODO(doc): @driftluo

pub fn shared(&self) -> &Arc<SyncShared>[src]

TODO(doc): @driftluo

pub fn request_proposal_txs(
    &self,
    nc: &dyn CKBProtocolContext,
    peer: PeerIndex,
    block_hash: Byte32,
    proposals: Vec<ProposalShortId>
)
[src]

TODO(doc): @driftluo

pub fn accept_block(
    &self,
    nc: &dyn CKBProtocolContext,
    peer: PeerIndex,
    block: BlockView
)
[src]

TODO(doc): @driftluo

pub fn reconstruct_block(
    &self,
    active_chain: &ActiveChain,
    compact_block: &CompactBlock,
    received_transactions: Vec<TransactionView>,
    uncles_index: &[u32],
    received_unlces: &[UncleBlockView]
) -> ReconstructionResult
[src]

TODO(doc): @driftluo

pub fn ask_for_txs(&self, nc: &dyn CKBProtocolContext)[src]

TODO(doc): @driftluo

pub fn send_bulk_of_tx_hashes(&self, nc: &dyn CKBProtocolContext)[src]

TODO(doc): @driftluo

Trait Implementations

impl CKBProtocolHandler for Relayer[src]

impl Clone for Relayer[src]

Auto Trait Implementations

impl !RefUnwindSafe for Relayer

impl Send for Relayer

impl Sync for Relayer

impl Unpin for Relayer

impl !UnwindSafe for Relayer

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> Pointable for T

type Init = T

The type for initializers.

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>,