[][src]Trait sc_consensus_manual_seal::rpc::ManualSealApi

pub trait ManualSealApi<Hash>: Sized + Send + Sync + 'static {
    fn create_block(
        &self,
        create_empty: bool,
        finalize: bool,
        parent_hash: Option<Hash>
    ) -> Box<dyn Future<Item = CreatedBlock<Hash>, Error = Error> + Send>;
fn finalize_block(
        &self,
        hash: Hash,
        justification: Option<Justification>
    ) -> Box<dyn Future<Item = bool, Error = Error> + Send>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
    where
        Hash: Send + Sync + 'static + Serialize + DeserializeOwned
, { ... } }

RPC trait that provides methods for interacting with the manual-seal authorship task over rpc.

Required methods

fn create_block(
    &self,
    create_empty: bool,
    finalize: bool,
    parent_hash: Option<Hash>
) -> Box<dyn Future<Item = CreatedBlock<Hash>, Error = Error> + Send>

Instructs the manual-seal authorship task to create a new block

fn finalize_block(
    &self,
    hash: Hash,
    justification: Option<Justification>
) -> Box<dyn Future<Item = bool, Error = Error> + Send>

Instructs the manual-seal authorship task to finalize a block

Loading content...

Provided methods

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> where
    Hash: Send + Sync + 'static + Serialize + DeserializeOwned

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

impl<Hash: Send + 'static> ManualSealApi<Hash> for ManualSeal<Hash>[src]

Loading content...