TendermintApi, compilation fixes

This commit is contained in:
Luke Parker
2022-10-27 08:44:53 -04:00
parent 66f7663cb2
commit 5c08fa9701
14 changed files with 202 additions and 110 deletions

View File

@@ -361,6 +361,16 @@ sp_api::impl_runtime_apis! {
}
}
impl sp_tendermint::TendermintApi<Block> for Runtime {
fn current_session() -> u32 {
Tendermint::session()
}
fn validators() -> Vec<Public> {
Session::validators()
}
}
impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
fn account_nonce(account: AccountId) -> Index {
System::account_nonce(account)