Skip to content

Commit af8903d

Browse files
committed
fix staking::test_mining_emission_distribution_validator_valiminer_miner
1 parent e93bd8f commit af8903d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pallets/subtensor/src/tests/staking.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,22 +1896,6 @@ fn test_mining_emission_distribution_validator_valiminer_miner() {
18961896
crate::LastUpdate::<Test>::set(netuid, vec![2, 2, 2]);
18971897
crate::Kappa::<Test>::set(netuid, u16::MAX / 5);
18981898

1899-
// Run run_coinbase until root epoch is run
1900-
while crate::PendingEmission::<Test>::get(netuid) == 0 {
1901-
step_block(1);
1902-
}
1903-
1904-
// Prevent further root epochs
1905-
crate::Tempo::<Test>::set(root_id, u16::MAX);
1906-
1907-
// Run run_coinbase until EmissionValues are populated
1908-
while crate::EmissionValues::<Test>::get(netuid) == 0 {
1909-
step_block(1);
1910-
}
1911-
1912-
// Prevent further subnet epochs
1913-
crate::Tempo::<Test>::set(netuid, u16::MAX);
1914-
19151899
// Run run_coinbase until emissions are drained
19161900
step_block((subnet_tempo * 4) as u16);
19171901

0 commit comments

Comments
 (0)