File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 5151
5252production :
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"
Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments