From ca3c8836e421df511c12dbd262b114bc4a6c8529 Mon Sep 17 00:00:00 2001 From: motty Date: Sun, 7 May 2023 13:59:18 +0900 Subject: [PATCH] fix mining util --- configure.ac | 2 +- src/monacoin-util.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 32d8998d46..c3742ba2d6 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ AC_PREREQ([2.69]) define(_CLIENT_VERSION_MAJOR, 22) define(_CLIENT_VERSION_MINOR, 1) -define(_CLIENT_VERSION_BUILD, 0) +define(_CLIENT_VERSION_BUILD, 1) define(_CLIENT_VERSION_RC, 0) define(_CLIENT_VERSION_IS_RELEASE, true) define(_COPYRIGHT_YEAR, 2021) diff --git a/src/monacoin-util.cpp b/src/monacoin-util.cpp index a62a1bc2ad..43377ecdd0 100644 --- a/src/monacoin-util.cpp +++ b/src/monacoin-util.cpp @@ -94,7 +94,7 @@ static void grind_task(uint32_t nBits, CBlockHeader& header_orig, uint32_t offse while (!found && header.nNonce < finish) { const uint32_t next = (finish - header.nNonce < 5000*step) ? finish : header.nNonce + 5000*step; do { - if (UintToArith256(header.GetHash()) <= target) { + if (UintToArith256(header.GetPoWHash(true)) <= target) { if (!found.exchange(true)) { header_orig.nNonce = header.nNonce; }