Trait phronesis::phron_node_rpc::PhronNodeApiServer
source · pub trait PhronNodeApiServer<B, BE>: Sized + Send + Sync + 'static {
// Required methods
fn emergency_finalize(
&self,
justification: Bytes,
hash: BlockHash,
number: BlockNumber
) -> RpcResult<()>;
fn block_author(&self, hash: BlockHash) -> RpcResult<Option<AccountId>>;
fn ready(&self) -> RpcResult<bool>;
fn validator_network_info(
&self
) -> RpcResult<HashMap<AccountId, ValidatorAddressingInfo>>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where B: Send + Sync + 'static,
BE: Send + Sync + 'static { ... }
}
Expand description
Server trait implementation for the PhronNodeApi
RPC API.
Required Methods§
sourcefn emergency_finalize(
&self,
justification: Bytes,
hash: BlockHash,
number: BlockNumber
) -> RpcResult<()>
fn emergency_finalize( &self, justification: Bytes, hash: BlockHash, number: BlockNumber ) -> RpcResult<()>
Finalize the block with given hash and number using attached signature. Returns the empty string or an error.
Get the author of the block with given hash.
fn validator_network_info( &self ) -> RpcResult<HashMap<AccountId, ValidatorAddressingInfo>>
Provided Methods§
Object Safety§
This trait is not object safe.