mirror of
https://github.com/cygnusxi/CurecoinSource.git
synced 2025-07-29 00:24:56 +02:00
cast to quite warnings
This commit is contained in:
parent
5367dceb87
commit
46916b33f4
@ -1056,7 +1056,7 @@ int64 GetProofOfStakeReward(int64 nCoinAge, unsigned int nBits, unsigned int nTi
|
|||||||
// nRewardCoinYear = 1 / (posdiff ^ 1/4)
|
// nRewardCoinYear = 1 / (posdiff ^ 1/4)
|
||||||
|
|
||||||
CBigNum bnLowerBound = 1 * CENT; // Lower interest bound is 1% per year
|
CBigNum bnLowerBound = 1 * CENT; // Lower interest bound is 1% per year
|
||||||
if (nBestHeight > HF_BLOCK) bnLowerBound = 4 * CENT;
|
if (nBestHeight > (int)HF_BLOCK) bnLowerBound = 4 * CENT;
|
||||||
CBigNum bnUpperBound = bnRewardCoinYearLimit;
|
CBigNum bnUpperBound = bnRewardCoinYearLimit;
|
||||||
while (bnLowerBound + CENT <= bnUpperBound)
|
while (bnLowerBound + CENT <= bnUpperBound)
|
||||||
{
|
{
|
||||||
@ -2225,7 +2225,7 @@ bool CBlock::AcceptBlock()
|
|||||||
CBlockIndex* pindexPrev = (*mi).second;
|
CBlockIndex* pindexPrev = (*mi).second;
|
||||||
int nHeight = pindexPrev->nHeight+1;
|
int nHeight = pindexPrev->nHeight+1;
|
||||||
|
|
||||||
if (IsProofOfWork() && nHeight > HF_BLOCK)
|
if (IsProofOfWork() && nHeight > (int)HF_BLOCK)
|
||||||
return DoS(100, error("AcceptBloock() : rejected pow block at height %d", nHeight));
|
return DoS(100, error("AcceptBloock() : rejected pow block at height %d", nHeight));
|
||||||
|
|
||||||
// Check proof-of-work or proof-of-stake
|
// Check proof-of-work or proof-of-stake
|
||||||
|
Loading…
x
Reference in New Issue
Block a user