Skip to content

Commit 7c485f0

Browse files
committed
add new storage for announcements
1 parent 14fe3f6 commit 7c485f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,12 @@ pub mod pallet {
13691369
DefaultColdkeySwapScheduled<T>,
13701370
>;
13711371

1372+
/// A map of the coldkey swap announcements from a coldkey
1373+
/// to the block number the announcement was made and the new coldkey.
1374+
#[pallet::storage]
1375+
pub type ColdkeySwapAnnouncements<T: Config> =
1376+
StorageMap<_, Twox64Concat, T::AccountId, (BlockNumberFor<T>, T::AccountId), OptionQuery>;
1377+
13721378
/// --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns.
13731379
#[pallet::storage]
13741380
pub type TotalHotkeyAlpha<T: Config> = StorageDoubleMap<

0 commit comments

Comments
 (0)