Skip to content

Commit 7c285bb

Browse files
committed
revert unnecessary changes
1 parent ff549c8 commit 7c285bb

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -960,37 +960,29 @@ pub mod pallet {
960960
#[pallet::storage]
961961
/// --- ITEM --> Global weight
962962
pub type TaoWeight<T> = StorageValue<_, u64, ValueQuery, DefaultTaoWeight<T>>;
963-
964963
#[pallet::storage]
965964
/// --- ITEM --> CK burn
966965
pub type CKBurn<T> = StorageValue<_, u64, ValueQuery, DefaultCKBurn<T>>;
967-
968966
#[pallet::storage]
969967
/// --- ITEM ( default_delegate_take )
970968
pub type MaxDelegateTake<T> = StorageValue<_, u16, ValueQuery, DefaultDelegateTake<T>>;
971-
972969
#[pallet::storage]
973970
/// --- ITEM ( min_delegate_take )
974971
pub type MinDelegateTake<T> = StorageValue<_, u16, ValueQuery, DefaultMinDelegateTake<T>>;
975-
976972
#[pallet::storage]
977973
/// --- ITEM ( default_childkey_take )
978974
pub type MaxChildkeyTake<T> = StorageValue<_, u16, ValueQuery, DefaultMaxChildKeyTake<T>>;
979-
980975
#[pallet::storage]
981976
/// --- ITEM ( min_childkey_take )
982977
pub type MinChildkeyTake<T> = StorageValue<_, u16, ValueQuery, DefaultMinChildKeyTake<T>>;
983-
984978
#[pallet::storage]
985-
/// MAP ( hot ) --> cold, Returns the controlling coldkey for a hotkey. Default is empty account.
979+
/// MAP ( hot ) --> cold, Returns the controlling coldkey for a hotkey
986980
pub type Owner<T: Config> =
987981
StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId, ValueQuery, DefaultAccount<T>>;
988-
989982
#[pallet::storage]
990-
/// MAP ( hot ) --> take, Returns the hotkey delegation take. And signals that this key is open for delegation. Default is 0.
983+
/// MAP ( hot ) --> take, Returns the hotkey delegation take. And signals that this key is open for delegation
991984
pub type Delegates<T: Config> =
992985
StorageMap<_, Blake2_128Concat, T::AccountId, u16, ValueQuery, DefaultDelegateTake<T>>;
993-
994986
#[pallet::storage]
995987
/// DMAP ( hot, netuid ) --> take, Returns the hotkey childkey take for a specific subnet
996988
pub type ChildkeyTake<T: Config> = StorageDoubleMap<
@@ -1002,7 +994,6 @@ pub mod pallet {
1002994
u16, // Value: take
1003995
ValueQuery,
1004996
>;
1005-
1006997
#[pallet::storage]
1007998
/// DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)
1008999
pub type PendingChildKeys<T: Config> = StorageDoubleMap<
@@ -1015,9 +1006,8 @@ pub mod pallet {
10151006
ValueQuery,
10161007
DefaultPendingChildkeys<T>,
10171008
>;
1018-
10191009
#[pallet::storage]
1020-
/// DMAP ( child, netuid ) --> Vec<(proportion,parent)> Default is empty Vec.
1010+
/// DMAP ( parent, netuid ) --> Vec<(proportion,child)>
10211011
pub type ChildKeys<T: Config> = StorageDoubleMap<
10221012
_,
10231013
Blake2_128Concat,
@@ -1028,7 +1018,6 @@ pub mod pallet {
10281018
ValueQuery,
10291019
DefaultAccountLinkage<T>,
10301020
>;
1031-
10321021
#[pallet::storage]
10331022
/// DMAP ( child, netuid ) --> Vec<(proportion,parent)>
10341023
pub type ParentKeys<T: Config> = StorageDoubleMap<
@@ -1041,7 +1030,6 @@ pub mod pallet {
10411030
ValueQuery,
10421031
DefaultAccountLinkage<T>,
10431032
>;
1044-
10451033
#[pallet::storage]
10461034
/// --- DMAP ( netuid, hotkey ) --> u64 | Last total dividend this hotkey got on tempo.
10471035
pub type AlphaDividendsPerSubnet<T: Config> = StorageDoubleMap<
@@ -1054,7 +1042,6 @@ pub mod pallet {
10541042
ValueQuery,
10551043
DefaultZeroAlpha<T>,
10561044
>;
1057-
10581045
#[pallet::storage]
10591046
/// --- DMAP ( netuid, hotkey ) --> u64 | Last total root dividend paid to this hotkey on this subnet.
10601047
pub type TaoDividendsPerSubnet<T: Config> = StorageDoubleMap<
@@ -1071,10 +1058,9 @@ pub mod pallet {
10711058
/// ==================
10721059
/// ==== Coinbase ====
10731060
/// ==================
1074-
/// --- ITEM ( global_block_emission )
10751061
#[pallet::storage]
1062+
/// --- ITEM ( global_block_emission )
10761063
pub type BlockEmission<T> = StorageValue<_, u64, ValueQuery, DefaultBlockEmission<T>>;
1077-
10781064
#[pallet::storage]
10791065
/// --- DMap ( hot, netuid ) --> emission | last hotkey emission on network.
10801066
pub type LastHotkeyEmissionOnNetuid<T: Config> = StorageDoubleMap<
@@ -1087,7 +1073,6 @@ pub mod pallet {
10871073
ValueQuery,
10881074
DefaultZeroAlpha<T>,
10891075
>;
1090-
10911076
/// ==========================
10921077
/// ==== Staking Counters ====
10931078
/// ==========================

0 commit comments

Comments
 (0)