* 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:
Guillaume Thiolliere
2020-12-10 14:38:56 +01:00
committed by GitHub
parent 9384e6ed53
commit 8814d793c7
30 changed files with 55 additions and 54 deletions
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -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,