Skip to content

Commit

Permalink
v0.9.39 - add pallet staking runtime api
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Apr 4, 2023
1 parent 5c7a8fe commit 767abda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/src/runtime_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ impl_runtime_apis! {
}
}

impl pallet_staking_runtime_api::StakingApi<Block, Balance> for Runtime {
fn nominations_quota(balance: Balance) -> u32 {
Staking::api_nominations_quota(balance)
}
}

impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {
fn validate_transaction(
source: TransactionSource,
Expand Down

0 comments on commit 767abda

Please sign in to comment.