The limit was off by one. This makes it 2^256 -1
@@ -80,7 +80,7 @@ def create_seal_hash( block_hash:bytes, nonce:int ) -> bytes:
def seal_meets_difficulty( seal:bytes, difficulty:int ):
seal_number = int.from_bytes(seal, "big")
product = seal_number * difficulty
- limit = int(math.pow(2,256) - 1)
+ limit = int(math.pow(2,256))- 1
if product > limit:
return False
else:
@@ -126,7 +126,7 @@ def solve_for_difficulty_fast( subtensor, wallet, num_processes: int = None, upd
block_bytes = block_hash.encode('utf-8')[2:]
nonce = 0
- limit = int(math.pow(2,256) - 1)
+ limit = int(math.pow(2,256)) - 1
start_time = time.time()
console = bittensor.__console__
