miner.cpp::ScanHash() -> Proof::GenerateSolution()
nNonce = 0 -> ResetSolution()
proof.nNonce >= 0xffff0000 -> proof.OutOfRangeSolution()
Replace proof.nNonce >= 0xffff000 with an iteration counter
Small miner optimization