Skip to content

Commit

Permalink
Update checkpoints and stake modifiers
Browse files Browse the repository at this point in the history
Mark block 2000 as last PoW block and fully transition to PoS.
  • Loading branch information
sskender committed Dec 6, 2021
1 parent 75d34cd commit 3f1e4d4
Show file tree
Hide file tree
Showing 3 changed files with 5 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 @@ -25,6 +25,8 @@ namespace Checkpoints
static MapCheckpoints mapCheckpoints =
boost::assign::map_list_of
( 0, hashGenesisBlock )
( 1, uint256("0x00000179bb84389b12f54ab6af07cb4aa3dc66f716930b2b041e99f6f89d9f43") )
( 500, uint256("0x0000000065527f5a4cd868c1f70a28da97d50765ca23007540c85c38b96e5100") )
;

// TestNet has no checkpoints
Expand Down
2 changes: 2 additions & 0 deletions src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ typedef std::map<int, unsigned int> MapModifierCheckpoints;
static std::map<int, unsigned int> mapStakeModifierCheckpoints =
boost::assign::map_list_of
( 0, 0x0e00670b )
( 1, 0xbc4b99b6 )
( 500, 0xcd5271c0 )
;

// Hard checkpoints of stake modifiers to ensure they are deterministic (testNet)
Expand Down
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CInv;
class CRequestTracker;
class CNode;

static const int LAST_POW_BLOCK = 20000;
static const int LAST_POW_BLOCK = 2000;
static const int MAX_TIME_SINCE_BEST_BLOCK = 10; // how many seconds to wait before sending next PushGetBlocks()

static const unsigned int MAX_BLOCK_SIZE = 20000000;
Expand Down

0 comments on commit 3f1e4d4

Please sign in to comment.