Skip to content

Commit

Permalink
fix mining util
Browse files Browse the repository at this point in the history
  • Loading branch information
fujicoin committed May 7, 2023
1 parent 8953d46 commit ca3c883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/monacoin-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ca3c883

Please sign in to comment.