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

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<EncodedJustification>
    ) -> Box<dyn Future<Item = bool, Error = Error> + Send>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
    where
        Hash: Send + Sync + 'static + Serialize + DeserializeOwned
, { ... } }
Expand description

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

Required methods

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

Instructs the manual-seal authorship task to finalize a block

Provided methods

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

Implementors