From 38cbe99ba41c90156fd526d43e3182fd2cb3394b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 10 Jul 2018 04:28:03 -1100 Subject: [PATCH] Fix --- src/komodo_bitcoind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 9e774bf50..132ebc135 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1174,7 +1174,7 @@ uint32_t komodo_stake(int32_t validateflag,arith_uint256 bnTarget,int32_t nHeigh if ( blocktime+iter+segid*2 < txtime+minage ) continue; coinage = (value * diff) * ((diff >> 16) + 1); - newhashval = ratio * (UintToArith256(hash) / arith_uint256(coinage+1)); + hashval = ratio * (UintToArith256(hash) / arith_uint256(coinage+1)); if ( hashval <= bnTarget ) { winner = 1;