Skip to content

Commit 3387795

Browse files
author
unconst
committed
rename
2 parents da27d69 + 1e9a0e2 commit 3387795

File tree

5 files changed

+791
-693
lines changed

5 files changed

+791
-693
lines changed

pallets/subtensor/src/coinbase/block_step.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::*;
22
use frame_support::storage::IterableStorageMap;
3-
use substrate_fixed::types::I110F18;
3+
use substrate_fixed::types::{I110F18, I96F32};
44

55
impl<T: Config + pallet_drand::Config> Pallet<T> {
66
/// Executes the necessary operations for each block.
@@ -9,8 +9,11 @@ impl<T: Config + pallet_drand::Config> Pallet<T> {
99
log::debug!("block_step for block: {:?} ", block_number);
1010
// --- 1. Adjust difficulties.
1111
Self::adjust_registration_terms_for_networks();
12-
// --- 2. Run emission through network.
13-
Self::run_coinbase();
12+
// --- 2. Get the current coinbase emission.
13+
let block_emission: I96F32 = I96F32::from_num(Self::get_block_emission().unwrap_or(0));
14+
log::debug!("Block emission: {:?}", block_emission);
15+
// --- 3. Run emission through network.
16+
Self::run_coinbase(block_emission);
1417
// Return ok.
1518
Ok(())
1619
}

0 commit comments

Comments
 (0)