Skip to content

Commit 8728d0a

Browse files
authored
Merge pull request #1287 from opentensor/devnet
devnet => testnet
2 parents de6f5b0 + ab37ca0 commit 8728d0a

File tree

16 files changed

+3037
-164
lines changed

16 files changed

+3037
-164
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ This repository contains Bittensor's substrate-chain. Subtensor contains the tru
2222

2323
* The binaries in ./bin/release are x86_64 binaries to be used with the Linux kernel.
2424
* Subtensor needs ~286 MiB to run.
25-
* Architectures other than x86_64 are currently not supported.
25+
* Supported Architectures:
26+
- Linux: x86_64
27+
- MacOS: x86_64 and ARM64 (M series Macs)
2628
* OSs other than Linux and MacOS are currently not supported.
2729

30+
2831
## Architectures
2932
Subtensor support the following architectures:
3033

@@ -34,9 +37,10 @@ Requirements:
3437
* glibc 2.11+
3538
A fresh FRAME-based [Substrate](https://www.substrate.io/) node, ready for hacking :rocket:
3639

37-
## MacOS x86_64
40+
## MacOS x86_64 & arm64 (Apple Silicon)
3841
Requirements:
39-
* MacOS 10.7+ (Lion+)
42+
* macOS 10.7+ (Lion+) for x86_64
43+
* macOS 11+ (Big Sur+) for Apple Silicon (M1, M2, and later) with arm64 architecture support.
4044

4145
## Network requirements
4246
* Subtensor needs access to the public internet
@@ -49,7 +53,7 @@ Requirements:
4953

5054
---
5155

52-
## For Subnet Development
56+
## For Subnet Development
5357

5458
If you are developing and testing subnet incentive mechanism, you will need to run a local subtensor node. Follow the detailed step-by-step instructions provided in the [**Subtensor Nodes** section in Bittensor Developer Documentation](https://docs.bittensor.com/subtensor-nodes).
5559

@@ -216,7 +220,7 @@ If you want to see the multi-node consensus algorithm in action, refer to our
216220
A Substrate project such as this consists of a number of components that are spread across a few
217221
directories.
218222

219-
### Node Capabilities
223+
### Node Capabilities
220224

221225
A blockchain node is an application that allows users to participate in a blockchain network.
222226
Substrate-based blockchain nodes expose a number of capabilities:
@@ -232,7 +236,7 @@ Substrate-based blockchain nodes expose a number of capabilities:
232236

233237
**Directory structure**
234238

235-
There are several files in the [`node`](./node/) directory. Make a note of the following important files:
239+
There are several files in the [`node`](./node/) directory. Make a note of the following important files:
236240

237241
- [`chain_spec.rs`](./node/src/chain_spec.rs): A
238242
[chain specification](https://docs.substrate.io/main-docs/build/chain-spec/) is a

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 & 6 deletions
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
}
@@ -249,11 +249,6 @@ impl<T: Config> Pallet<T> {
249249
BlocksSinceLastStep::<T>::mutate(netuid, |total| *total = total.saturating_add(1));
250250
}
251251
}
252-
253-
// --- 8. Apply pending childkeys of this subnet for the next epoch
254-
for netuid in subnets.iter() {
255-
Self::do_set_pending_children(*netuid);
256-
}
257252
}
258253

259254
pub fn drain_pending_emission(

0 commit comments

Comments
 (0)