Skip to content

Commit 3192e31

Browse files
authored
Merge pull request #1280 from opentensor/fix/include-pow-reg-disabled-in-no-tao-in-check
Fix/include pow reg disabled in no tao in check
2 parents fd96f59 + 9dce4e7 commit 3192e31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub mod pallet {
158158
netuid: u16,
159159
min_difficulty: u64,
160160
) -> DispatchResult {
161-
pallet_subtensor::Pallet::<T>::ensure_subnet_owner_or_root(origin, netuid)?;
161+
ensure_root(origin)?;
162162

163163
ensure!(
164164
pallet_subtensor::Pallet::<T>::if_subnet_exist(netuid),

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<T: Config> Pallet<T> {
8787
let alpha_out_i = alpha_emission_i;
8888
// Only emit TAO if the subnetwork allows registration.
8989
if !Self::get_network_registration_allowed(*netuid_i)
90-
&& Self::get_network_pow_registration_allowed(*netuid_i)
90+
&& !Self::get_network_pow_registration_allowed(*netuid_i)
9191
{
9292
tao_in_i = asfloat!(0.0);
9393
}

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
229229
// `spec_version`, and `authoring_version` are the same between Wasm and native.
230230
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
231231
// the compatible custom types.
232-
spec_version: 233,
232+
spec_version: 234,
233233
impl_version: 1,
234234
apis: RUNTIME_API_VERSIONS,
235235
transaction_version: 1,

0 commit comments

Comments
 (0)