Skip to content

Commit 23c9087

Browse files
authored
Merge pull request #1515 from opentensor/sam-fix-hotfix-merge-conflict-4-7-2025
fix merge conflict from v2.0.10 hotfix
2 parents 8091fb4 + 82c776b commit 23c9087

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Diff for: .github/workflows/try-runtime.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
jobs:
1010
check-devnet:
1111
name: check devnet
12+
if: github.base_ref != 'main'
1213
runs-on: SubtensorCI
1314
steps:
1415
- name: Checkout sources
@@ -29,7 +30,7 @@ jobs:
2930

3031
check-testnet:
3132
name: check testnet
32-
# if: github.base_ref == 'testnet' || github.base_ref == 'devnet' || github.base_ref == 'main'
33+
if: github.base_ref != 'main'
3334
runs-on: SubtensorCI
3435
steps:
3536
- name: Checkout sources

Diff for: pallets/subtensor/src/staking/stake_utils.rs

-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ impl<T: Config> Pallet<T> {
6868
Self::get_current_block_as_u64().saturating_sub(start_call_block)
6969
});
7070

71-
// Use halving time hyperparameter. The meaning of this parameter can be best explained under
72-
// the assumption of a constant price and SubnetMovingAlpha == 0.5: It is how many blocks it
73-
// will take in order for the distance between current EMA of price and current price to shorten
74-
// by half.
7571
let halving_time = EMAPriceHalvingBlocks::<T>::get(netuid);
7672
let current_ma_unsigned = U96F32::saturating_from_num(SubnetMovingAlpha::<T>::get());
7773
let alpha: U96F32 = current_ma_unsigned.saturating_mul(blocks_since_start_call.safe_div(

0 commit comments

Comments
 (0)