Closed forrestv closed 12 years ago
I hadn't tested it, but I just did and it works. I think you're reading it backwards - it will always sendwork if diff is less than 1 with my change.
I suspect I am reading it backwards. Although, this patch doesn't fix the fact that the miner will still only turn in far fewer shares than it should at <1 diff. I will merge it anyways.
Has this patch been tested on a chain of less than diff 1? It looks like it will just refuse to sendwork if diff is less than 1 with your change (although its not like my code any better, diff 1 is never supposed to happen on the main chain)