We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d8a58 commit 0ece437Copy full SHA for 0ece437
pallets/subtensor/src/subnets/registration.rs
@@ -381,11 +381,11 @@ impl<T: Config> Pallet<T> {
381
);
382
383
// --- 3. Ensure the supplied work passes the difficulty.
384
- if !cfg!(feature = "fast-blocks") {
385
- let difficulty: U256 = U256::from(1_000_000); // Base faucet difficulty.
+ let difficulty: U256 = if !cfg!(feature = "fast-blocks") {
+ U256::from(1_000_000) // Base faucet difficulty.
386
} else {
387
- let difficulty: U256 = U256::from(100); // Lowered for fast blocks
388
- }
+ U256::from(100) // Lowered for fast blocks
+ };
389
390
let work_hash: H256 = Self::vec_to_hash(work.clone());
391
ensure!(
0 commit comments