吴狗蛋
吴狗蛋
And, in multithreading, what needs to be compared with the `min_difficulty` is the `global_best_difficulty`, not the `best_difficulty` of the current thread, otherwise all threads will have to mint the `min_difficulty`.
> This is not necessary. Each thread returns their best hash and then we reduce at the end for the global best. No, it is necessary. For example, if `min_difficulty...
> I was testing your fix and I still see that behaviour. Meaning if I set to 10, all the threads need to mint at least 10 and right after...
> 如果挖到min difficulty就停所有线程,就会降低挖到高难度的概率。 No, the min difficulty comparison only occurs when the remaining time is exceeded. At this time, pursuing high difficulty is irrational behavior.