Skip to content

Commit

Permalink
Update hardfork height
Browse files Browse the repository at this point in the history
  • Loading branch information
joelao95 committed Sep 14, 2017
1 parent cd15d56 commit 10395ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,9 +1067,11 @@ double GetDifficultyFromBitsAver(const CBlockIndex* pindex0, int nBlocksAver0)
return rDiffAver/double(nWeightTot);
}

bool IsMaintainence(const CBlockIndex* pindex_)
#define HEIGHT_INIT_MAINTENANCE 1451226
#define HEIGHT_END_MAINTENANCE 1481500
bool IsMaintenance(const CBlockIndex* pindex_)
{
return ( (pindex_->nHeight > 1451226) );
return ( (pindex_->nHeight > HEIGHT_INIT_MAINTENANCE) && (pindex_->nHeight < HEIGHT_END_MAINTENANCE) );
}

int64 GetProofOfWorkReward_OPM(const CBlockIndex* pindex0)
Expand Down Expand Up @@ -1663,7 +1665,7 @@ unsigned int MagiQuantumWave(const CBlockIndex* pindexLast, bool fProofOfStake)
}


#define DIFF_ADJ_V3_INIT_HEIGHT 1479000
#define DIFF_ADJ_V3_INIT_HEIGHT 1482000
unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake)
{
int DiffMode = 1;
Expand Down Expand Up @@ -2781,7 +2783,7 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot) const
// return (pindexPrev->nMoneySupply) > (pindexPrev->pprev->nMoneySupply);
//}

#define BLOCK_VALID_CHECK_INIT_HEIGHT 1478500
#define BLOCK_VALID_CHECK_INIT_HEIGHT 1481500
bool IsBlockInvalid(int nHeight0, int64 nTime, bool fProofOfStake, const CBlockIndex* pindexPrev)
{
return ( fProofOfStake ?
Expand Down

0 comments on commit 10395ed

Please sign in to comment.