Skip to content

Commit d9f43e1

Browse files
authored
Merge pull request #2166 from opentensor/put-faucet-behind-feature
Put faucet extrinsic behind ‘pow-faucet’ feature.
2 parents de708ba + fd5236d commit d9f43e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ pub mod pallet {
16181618
/// Weight is handled by the `#[pallet::weight]` attribute.
16191619
#[pallet::call_index(62)]
16201620
#[pallet::weight((
1621-
Weight::from_parts(10_020_000, 3507)
1621+
Weight::from_parts(5_744_000, 3507)
16221622
.saturating_add(T::DbWeight::get().reads(1_u64))
16231623
.saturating_add(T::DbWeight::get().writes(0_u64)),
16241624
DispatchClass::Operational,

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,7 @@ mod dispatches {
12431243
#[pallet::weight((Weight::from_parts(91_000_000, 0)
12441244
.saturating_add(T::DbWeight::get().reads(27))
12451245
.saturating_add(T::DbWeight::get().writes(22)), DispatchClass::Normal, Pays::No))]
1246+
#[cfg(feature = "pow-faucet")]
12461247
pub fn faucet(
12471248
origin: OriginFor<T>,
12481249
block_number: u64,

0 commit comments

Comments
 (0)