Skip to content

Commit 22a9a66

Browse files
committed
update weight values
1 parent 5e557b2 commit 22a9a66

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,9 @@ pub mod pallet {
12351235
/// - Attempting to commit when it is not allowed.
12361236
///
12371237
#[pallet::call_index(96)]
1238-
#[pallet::weight((Weight::from_parts(10_151_000_000, 0)
1239-
.saturating_add(T::DbWeight::get().reads(4104))
1240-
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
1238+
#[pallet::weight((Weight::from_parts(46_000_000, 0)
1239+
.saturating_add(T::DbWeight::get().reads(1))
1240+
.saturating_add(T::DbWeight::get().writes(1)), DispatchClass::Normal, Pays::No))]
12411241
pub fn commit_weights(
12421242
origin: T::RuntimeOrigin,
12431243
netuid: u16,
@@ -1275,9 +1275,9 @@ pub mod pallet {
12751275
/// - The revealed hash does not match the committed hash.
12761276
///
12771277
#[pallet::call_index(97)]
1278-
#[pallet::weight((Weight::from_parts(10_151_000_000, 0)
1279-
.saturating_add(T::DbWeight::get().reads(4104))
1280-
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
1278+
#[pallet::weight((Weight::from_parts(103_000_000, 0)
1279+
.saturating_add(T::DbWeight::get().reads(11))
1280+
.saturating_add(T::DbWeight::get().writes(3)), DispatchClass::Normal, Pays::No))]
12811281
pub fn reveal_weights(
12821282
origin: T::RuntimeOrigin,
12831283
netuid: u16,

0 commit comments

Comments
 (0)