Skip to content

Commit 0d89e0a

Browse files
committed
Merge pull request #10 from MaxAntonenko/master
Switch to const interest
2 parents 3987514 + 9da05b8 commit 0d89e0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,12 +1154,12 @@ int64_t GetProofOfStakeInterestV3(int nHeight)
11541154
double weight = GetPoSKernelPS(nHeight-1);
11551155

11561156
uint64_t rate = MIN_COIN_YEAR_REWARD;
1157-
if (weight > 16384)
1157+
/*if (weight > 16384)
11581158
{
11591159
rate = std::max(MIN_COIN_YEAR_REWARD,
11601160
std::min(static_cast<int64_t>(MIN_COIN_YEAR_REWARD * log(weight / 16384.0)),
11611161
MAX_COIN_YEAR_REWARD));
1162-
}
1162+
}*/
11631163
return rate;
11641164
}
11651165

src/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
17391739
if (nReward <= 0)
17401740
return false;
17411741

1742-
nCredit += nReward*0.95;
1742+
nCredit += nReward;
17431743
}
17441744

17451745
// Set output amount

0 commit comments

Comments
 (0)