Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

bump API versions of {Beefy,Mmr}Api #13509

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions primitives/consensus/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ impl OpaqueKeyOwnershipProof {

sp_api::decl_runtime_apis! {
/// API necessary for BEEFY voters.
#[api_version(2)]
pub trait BeefyApi
{
/// Return the block number where BEEFY consensus is enabled/started
Expand Down
1 change: 1 addition & 0 deletions primitives/merkle-mountain-range/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ impl Error {

sp_api::decl_runtime_apis! {
/// API to interact with MMR pallet.
#[api_version(2)]
pub trait MmrApi<Hash: codec::Codec, BlockNumber: codec::Codec> {
/// Return the on-chain MMR root hash.
fn mmr_root() -> Result<Hash, Error>;
Expand Down