mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 19:11:04 +00:00
Fix docs (#7710)
* fix docs * Update frame/merkle-mountain-range/src/lib.rs Co-authored-by: Alexander Theißen <alex.theissen@me.com> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
committed by
GitHub
parent
9384e6ed53
commit
8814d793c7
@@ -2166,7 +2166,7 @@ impl<T: Config> Module<T> {
|
||||
Self::bonded(stash).and_then(Self::ledger).map(|l| l.active).unwrap_or_default()
|
||||
}
|
||||
|
||||
/// Internal impl of [`slashable_balance_of`] that returns [`VoteWeight`].
|
||||
/// Internal impl of [`Self::slashable_balance_of`] that returns [`VoteWeight`].
|
||||
pub fn slashable_balance_of_vote_weight(stash: &T::AccountId, issuance: BalanceOf<T>) -> VoteWeight {
|
||||
T::CurrencyToVote::to_vote(Self::slashable_balance_of(stash), issuance)
|
||||
}
|
||||
@@ -2833,7 +2833,7 @@ impl<T: Config> Module<T> {
|
||||
/// Execute election and return the new results. The edge weights are processed into support
|
||||
/// values.
|
||||
///
|
||||
/// This is basically a wrapper around [`do_phragmen`] which translates
|
||||
/// This is basically a wrapper around [`Self::do_phragmen`] which translates
|
||||
/// `PrimitiveElectionResult` into `ElectionResult`.
|
||||
///
|
||||
/// No storage item is updated.
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
//! has multiple misbehaviors. However, accounting for such cases is necessary
|
||||
//! to deter a class of "rage-quit" attacks.
|
||||
//!
|
||||
//! Based on research at https://research.web3.foundation/en/latest/polkadot/slashing/npos/
|
||||
//! Based on research at <https://research.web3.foundation/en/latest/polkadot/slashing/npos/>
|
||||
|
||||
use super::{
|
||||
EraIndex, Config, Module, Store, BalanceOf, Exposure, Perbill, SessionInterface,
|
||||
|
||||
Reference in New Issue
Block a user