From fd098285ce5619a15e6fddc2b1e968a23d59008b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 9 Apr 2018 21:12:49 +0300 Subject: [PATCH] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 367393fde..a2c726007 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -685,7 +685,7 @@ uint32_t komodo_stake(arith_uint256 bnTarget,int32_t nHeight,uint256 txid,int32_ hash = pindex->GetBlockHash(); // hash pubkey diff = (blocktime - txtime); coinage = (((value * diff) / supply) * diff); - hashval = arith_uint256(1000000) * (UintToArith256(hash) / arith_uint256(coinage+1)); + hashval = arith_uint256(supply) * (UintToArith256(hash) / arith_uint256(coinage+1)); if ( hashval <= bnTarget ) winner = 1; else @@ -694,7 +694,7 @@ uint32_t komodo_stake(arith_uint256 bnTarget,int32_t nHeight,uint256 txid,int32_ { diff = (iter + blocktime - txtime); coinage = (((value * diff) / supply) * diff); - hashval = arith_uint256(1000000) * (UintToArith256(hash) / arith_uint256(coinage+1)); + hashval = arith_uint256(supply) * (UintToArith256(hash) / arith_uint256(coinage+1)); if ( hashval <= bnTarget ) { winner = 1;