Skip to content

Commit ed0b55b

Browse files
authored
Merge pull request #1237 from opentensor/non_scaled
Non scaled (testnet hotfix)
2 parents 0d749c8 + a837ef1 commit ed0b55b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pallets/subtensor/src/coinbase/block_emission.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<T: Config> Pallet<T> {
5353
);
5454

5555
// Scale down tao_in
56-
tao_in_emission = alpha_price.saturating_mul(float_alpha_block_emission);
56+
// tao_in_emission = alpha_price.saturating_mul(float_alpha_block_emission);
5757

5858
// Set to max alpha_block_emission
5959
alpha_in_emission = float_alpha_block_emission;

pallets/subtensor/src/tests/coinbase.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ fn test_dynamic_function_various_values() {
4040
assert!(alpha_out_emission <= 2 * alpha_emission, "alpha_out_emission is greater than 2 * alpha_emission");
4141
assert!((alpha_in_emission + alpha_out_emission) <= 2 * alpha_emission, "Sum of alpha_in_emission and alpha_out_emission is less than or equal to. 2 * alpha_emission");
4242
close( alpha_in_emission + alpha_out_emission, alpha_in_emission + alpha_emission, 10 );
43-
if alpha_in_emission > 0 || tao_in_emission > 0 {
44-
assert!((tao_in_emission as f64 / alpha_in_emission as f64 - price).abs() < 1e-1, "Ratio of tao_in_emission to alpha_in_emission is not equal to price");
45-
}
43+
// if alpha_in_emission > 0 || tao_in_emission > 0 {
44+
// assert!((tao_in_emission as f64 / alpha_in_emission as f64 - price).abs() < 1e-1, "Ratio of tao_in_emission to alpha_in_emission is not equal to price");
45+
// }
4646
}
4747
}
4848
}

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 225,
223+
spec_version: 226,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,

0 commit comments

Comments
 (0)