fix(staking miner): check latest state in solution (#5744)

This commit is contained in:
Niklas Adolfsson
2022-07-01 17:05:01 +02:00
committed by GitHub
parent ef198a579c
commit 6d672f0951
3 changed files with 36 additions and 2 deletions
+10
View File
@@ -68,6 +68,16 @@ pub trait RpcApi {
#[method(name = "system_dryRun")]
async fn dry_run(&self, extrinsic: &Bytes, at: Option<Hash>) -> RpcResult<Bytes>;
/// Get hash of the n-th block in the canon chain.
///
/// By default returns latest block hash.
#[method(name = "chain_getBlockHash", aliases = ["chain_getHead"], blocking)]
fn block_hash(&self, hash: Option<Hash>) -> RpcResult<Option<Hash>>;
/// Get hash of the last finalized block in the canon chain.
#[method(name = "chain_getFinalizedHead", aliases = ["chain_getFinalisedHead"], blocking)]
fn finalized_head(&self) -> RpcResult<Hash>;
/// Submit an extrinsic to watch.
///
/// See [`TransactionStatus`](sc_transaction_pool_api::TransactionStatus) for details on