Skip to content

Commit

Permalink
bump API versions of {Beefy,Mmr}Api (paritytech#13509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf authored and nathanwhit committed Jul 19, 2023
1 parent 91b1a4a commit 8240f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit 8240f81

Please sign in to comment.