Skip to content

Commit e9c9424

Browse files
committed
add totalemission counter
1 parent 6a76ecc commit e9c9424

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ pub mod pallet {
14331433
/// --- MAP ( netuid ) --> pending_emission
14341434
pub type PendingEmission<T> =
14351435
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultPendingEmission<T>>;
1436+
#[pallet::storage]
1437+
/// --- MAP ( netuid ) --> total_emission
1438+
pub type TotalEmission<T> =
1439+
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultZeroAlpha<T>>;
14361440
/// --- MAP ( netuid ) --> pending_root_alpha_emission
14371441
#[pallet::storage]
14381442
pub type PendingRootAlphaDivs<T> =

0 commit comments

Comments
 (0)