Skip to content

Commit 0ece437

Browse files
committed
fix faucet diff definition
1 parent a2d8a58 commit 0ece437

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pallets/subtensor/src/subnets/registration.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ impl<T: Config> Pallet<T> {
381381
);
382382

383383
// --- 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.
384+
let difficulty: U256 = if !cfg!(feature = "fast-blocks") {
385+
U256::from(1_000_000) // Base faucet difficulty.
386386
} else {
387-
let difficulty: U256 = U256::from(100); // Lowered for fast blocks
388-
}
387+
U256::from(100) // Lowered for fast blocks
388+
};
389389

390390
let work_hash: H256 = Self::vec_to_hash(work.clone());
391391
ensure!(

0 commit comments

Comments
 (0)