diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 11ce8f359..605225eed 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) / supply; - hashval = arith_uint256(100000000000) * (UintToArith256(hash) / arith_uint256(coinage+1)); + hashval = arith_uint256(1000000) * (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) / supply; - hashval = arith_uint256(100000000000) * (UintToArith256(hash) / arith_uint256(coinage+1)); + hashval = arith_uint256(1000000) * (UintToArith256(hash) / arith_uint256(coinage+1)); if ( hashval <= bnTarget ) { winner = 1; diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a9e64158c..3d36e43ac 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4530,6 +4530,7 @@ int32_t komodo_staked(uint32_t nBits,uint32_t *blocktimep,uint32_t *txtimep,uint for (i=0; i