Skip to content

Commit 2f79f2e

Browse files
committed
Satisfy linter
1 parent 688d4a7 commit 2f79f2e

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,30 @@ pub struct WeightsTlockPayload {
2020
impl<T: Config> Pallet<T> {
2121
/// The `coinbase` function performs a four-part emission distribution process involving
2222
/// subnets, epochs, hotkeys, and nominators.
23+
///
2324
/// It is divided into several steps, each handling a specific part of the distribution:
2425
///
2526
/// Step 1: Compute the block-wise emission for each subnet.
26-
/// This involves calculating how much (TAO) should be emitted into each subnet using the
27-
/// root epoch function.
27+
/// This involves calculating how much (TAO) should be emitted into each subnet using the root
28+
/// epoch function.
2829
///
2930
/// Step 2: Accumulate the subnet block emission.
30-
/// After calculating the block-wise emission, these values are accumulated to keep track
31-
/// of how much each subnet should emit before the next distribution phase. This accumulation
32-
/// is a running total that gets updated each block.
31+
/// After calculating the block-wise emission, these values are accumulated to keep track of how
32+
/// much each subnet should emit before the next distribution phase. This accumulation is a
33+
/// running total that gets updated each block.
3334
///
3435
/// Step 3: Distribute the accumulated emissions through epochs.
35-
/// Subnets periodically distribute their accumulated emissions to hotkeys (active validators/miners)
36-
/// in the network on a `tempo` --- the time between epochs. This step runs Yuma consensus to
37-
/// determine how emissions are split among hotkeys based on their contributions and roles.
38-
/// The accumulation of hotkey emissions is done through the `accumulate_hotkey_emission` function.
39-
/// The function splits the rewards for a hotkey amongst itself and its `parents`. The parents are
40-
/// the hotkeys that are delegating their stake to the hotkey.
36+
/// Subnets periodically distribute their accumulated emissions to hotkeys (active
37+
/// validators/miners) in the network on a `tempo` --- the time between epochs. This step runs
38+
/// Yuma consensus to determine how emissions are split among hotkeys based on their
39+
/// contributions and roles. The accumulation of hotkey emissions is done through the
40+
/// `accumulate_hotkey_emission` function. The function splits the rewards for a hotkey amongst
41+
/// itself and its `parents`. The parents are the hotkeys that are delegating their stake to the
42+
/// hotkey.
4143
///
4244
/// Step 4: Further distribute emissions from hotkeys to nominators.
43-
/// Finally, the emissions received by hotkeys are further distributed to their nominators,
44-
/// who are stakeholders that support the hotkeys.
45+
/// Finally, the emissions received by hotkeys are further distributed to their nominators, who
46+
/// are stakeholders that support the hotkeys.
4547
pub fn run_coinbase() {
4648
// --- 0. Get current block.
4749
let current_block: u64 = Self::get_current_block_as_u64();

pallets/subtensor/src/staking/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use frame_support::{
33
storage::IterableStorageDoubleMap,
44
traits::{
55
tokens::{
6-
fungible::{Balanced as _, Inspect as _, Mutate as _},
6+
fungible::{Balanced as _, Inspect as _},
77
Fortitude, Precision, Preservation,
88
},
99
Imbalance,

pallets/subtensor/src/subnets/uids.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use super::*;
22
use frame_support::storage::IterableStorageDoubleMap;
3-
use frame_support::storage::IterableStorageMap;
43
use sp_std::vec;
54

65
impl<T: Config> Pallet<T> {

0 commit comments

Comments
 (0)