scuwan
scuwan
Perhaps it's better to split the search space this way: subspace_size = u64::MAX/thread_count; [subspace_size * 0.. subspace_size*1)... [subspace_size * id.. subspace_size * (id +1)]... [subspace_size * (thread_count - 1)..subspace_size *...
I found this bug because my mine pool was receiving duplicate shares from miners.
> > Perhaps it's better to split the search space this way: subspace_size = u64::MAX/thread_count; [subspace_size * 0.. subspace_size*1)... [subspace_size * id.. subspace_size * (id +1)]... [subspace_size * (thread_count -...
A simple solution would be to make batch_size an integer multiple of thread_count, which I think would work and preserve the logic