Skip to content

Commit

Permalink
[3.0.1] final improvement
Browse files Browse the repository at this point in the history
- Fixed compiler issues & bugs
  • Loading branch information
globaltoken committed Sep 21, 2018
1 parent 71b76f2 commit 361decb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Expand Up @@ -1434,7 +1434,7 @@ std::string CChainParams::GetFoundersRewardAddressAtIndex(int i) const {

CAmount CChainParams::GetTreasuryAmount(CAmount coinAmount) const
{
return ((coinAmount / 100) * consensus.nTreasuryAmount);
return ((coinAmount / 100.0) * consensus.nTreasuryAmount);
}

unsigned int CChainParams::EquihashSolutionWidth(uint8_t nAlgo) const
Expand Down
1 change: 1 addition & 0 deletions src/consensus/tx_verify.cpp
Expand Up @@ -13,6 +13,7 @@
#include <chain.h>
#include <coins.h>
#include <utilmoneystr.h>
#include <utilstrencodings.h>

bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime)
{
Expand Down
4 changes: 2 additions & 2 deletions src/validation.cpp
Expand Up @@ -1220,7 +1220,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)

CAmount nSubsidy;

if((nHeight >= 350000 && nHeight <= 366448) && Params().NetworkIDString() == CBaseChainParams::MAIN)
if((nHeight >= 400000 && nHeight <= 416448) && Params().NetworkIDString() == CBaseChainParams::MAIN)
nSubsidy = 200 * COIN;
else
nSubsidy = 100 * COIN;
Expand All @@ -1232,7 +1232,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)

CAmount GetMasternodePayment(int nHeight, CAmount blockValue)
{
return ((blockValue / 100) * Params().GetConsensus().nMasternodePayeeReward);
return ((blockValue / 100.0) * Params().GetConsensus().nMasternodePayeeReward);
}

bool IsInitialBlockDownload()
Expand Down

0 comments on commit 361decb

Please sign in to comment.