We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fb426 commit 2b325b3Copy full SHA for 2b325b3
pallets/subtensor/src/subnets/registration.rs
@@ -381,7 +381,12 @@ impl<T: Config> Pallet<T> {
381
);
382
383
// --- 3. Ensure the supplied work passes the difficulty.
384
- let difficulty: U256 = U256::from(1_000); // Base faucet difficulty.
+ if !cfg!(feature = "fast-blocks") {
385
+ let difficulty: U256 = U256::from(1_000_000); // Base faucet difficulty.
386
+ } else {
387
+ let difficulty: U256 = U256::from(100); // Lowered for fast blocks
388
+ }
389
+
390
let work_hash: H256 = Self::vec_to_hash(work.clone());
391
ensure!(
392
Self::hash_meets_difficulty(&work_hash, difficulty),
0 commit comments