Skip to content

Commit

Permalink
Remove checkpoints temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Cunningham committed Sep 1, 2017
1 parent 4dd8cdb commit 618a8e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/checkpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ namespace Checkpoints

int GetTotalBlocksEstimate()
{
return 0;
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);

return checkpoints.rbegin()->first;
}

CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex)
{
return NULL;
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);

BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, checkpoints)
Expand Down
3 changes: 2 additions & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static const int STAKE_MIN_AGE = 60 * 60; // minimum age for coin age
static const int STAKE_MAX_AGE = 60 * 60 * 24 * 5; // stake age of full weight
static const int STAKE_START_TIME = 1418470264; // Sat 13 Dec 2014 06:31:04 AM EST
static const unsigned int POW_START_TIME = 1418403600; // Fri 12 Dec 2014 12:00:00 PM EST
static const unsigned int POW_END_TIME = 1419181200; // Sun 21 Dec 2014 12:00:00 PM EST
static const unsigned int POW_END_TIME = 1504689456; // Sun 21 Dec 2014 12:00:00 PM EST
// MODIFIER_INTERVAL: time to elapse before new modifier is computed
static const unsigned int MODIFIER_INTERVAL = 10 * 60;
static const int64 MINIMUM_FOR_ORION = 50 * COIN;
Expand Down Expand Up @@ -592,6 +592,7 @@ class CTransaction
*/
int64 GetValueOut() const
{
return 0;
int64 nValueOut = 0;
BOOST_FOREACH(const CTxOut& txout, vout)
{
Expand Down

0 comments on commit 618a8e5

Please sign in to comment.