Test
This commit is contained in:
@@ -686,7 +686,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 = (UintToArith256(hash) / arith_uint256(coinage+1));
|
||||
hashval = arith_uint256(supply) * (UintToArith256(hash) / arith_uint256(coinage+1));
|
||||
if ( hashval <= bnTarget )
|
||||
winner = 1;
|
||||
else
|
||||
@@ -695,7 +695,7 @@ uint32_t komodo_stake(arith_uint256 bnTarget,int32_t nHeight,uint256 txid,int32_
|
||||
{
|
||||
diff = (iter + blocktime - txtime);
|
||||
coinage = (((value * diff) / supply) * diff);
|
||||
hashval = (UintToArith256(hash) / arith_uint256(coinage+1));
|
||||
hashval = arith_uint256(supply) * (UintToArith256(hash) / arith_uint256(coinage+1));
|
||||
if ( hashval <= bnTarget )
|
||||
{
|
||||
winner = 1;
|
||||
|
||||
Reference in New Issue
Block a user