Fix difficulty check assert in work_pool (#1958)

This commit is contained in:
Guilherme Lawless 2019-05-07 14:09:39 +01:00 committed by clemahieu
commit a4269694f6

View file

@ -114,7 +114,7 @@ void nano::work_pool::loop (uint64_t thread)
if (ticket == ticket_l)
{
// If the ticket matches what we started with, we're the ones that found the solution
assert (output >= network_constants.publish_threshold);
assert (output >= current_l.difficulty);
assert (work_value (current_l.item, work) == output);
// Signal other threads to stop their work next time they check ticket
++ticket;