Skip to content

Commit

Permalink
Only check fn payment after 78050 height
Browse files Browse the repository at this point in the history
Here we should make sure that fundamentalnode will remain running after 78050
  • Loading branch information
joshafest authored Nov 24, 2017
1 parent eb81b24 commit f790f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)

int64_t nCalculatedStakeReward = GetProofOfStakeReward(pindex->pprev, nCoinAge, nFees, pindex->nHeight);
//Check if fn payment was right
if(!IsInitialBlockDownload() && (GetBlockTime() > START_FUNDAMENTALNODE_PAYMENTS)){
if(!IsInitialBlockDownload() && (GetBlockTime() > START_FUNDAMENTALNODE_PAYMENTS) && (pindex->nHeight > 78050)){
int64_t nFundamentalnodePayment = GetFundamentalnodePayment(pindex->nHeight, nCalculatedStakeReward);
bool foundfnpayment = false;

Expand Down

0 comments on commit f790f62

Please sign in to comment.