Skip to content

Commit adad4fd

Browse files
authored
Merge pull request #790 from opentensor/hotfix/root_emissions
hotfix: dont drain root emisions
2 parents 58c1f51 + cf768eb commit adad4fd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ lint:
5151

5252
production:
5353
@echo "Running cargo build with metadata-hash generation..."
54-
cargo +{{RUSTV}} build --profile production --features="runtime-benchmarks metadata-hash"
54+
cargo +{{RUSTV}} build --profile production --features="metadata-hash"

Diff for: pallets/subtensor/src/coinbase/run_coinbase.rs

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ impl<T: Config> Pallet<T> {
4848
// --- 3. Drain the subnet block emission and accumulate it as subnet emission, which increases until the tempo is reached in #4.
4949
// subnet_blockwise_emission -> subnet_pending_emission
5050
for netuid in subnets.clone().iter() {
51+
if *netuid == 0 {
52+
continue;
53+
}
5154
// --- 3.1 Get the network's block-wise emission amount.
5255
// This value is newly minted TAO which has not reached staking accounts yet.
5356
let subnet_blockwise_emission: u64 = EmissionValues::<T>::get(*netuid);

Diff for: runtime/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
142142
// `spec_version`, and `authoring_version` are the same between Wasm and native.
143143
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
144144
// the compatible custom types.
145-
spec_version: 195,
145+
spec_version: 196,
146146
impl_version: 1,
147147
apis: RUNTIME_API_VERSIONS,
148148
transaction_version: 1,

0 commit comments

Comments
 (0)