From a4269694f6465cf7c8c77a83eb6f36a54af11cb1 Mon Sep 17 00:00:00 2001 From: Guilherme Lawless Date: Tue, 7 May 2019 14:09:39 +0100 Subject: [PATCH] Fix difficulty check assert in work_pool (#1958) --- nano/lib/work.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/lib/work.cpp b/nano/lib/work.cpp index 5454df04..5c7b5f1d 100644 --- a/nano/lib/work.cpp +++ b/nano/lib/work.cpp @@ -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;