Skip to content

Commit

Permalink
Protocol and Checkpoints
Browse files Browse the repository at this point in the history
Protocol Version 70127
Min Protocol Version 70126
Ready for Chain ID switch rejecting all v1.15.x nodes
  • Loading branch information
farsider350 committed Sep 16, 2021
1 parent f11cefc commit 228c520
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 16)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_BUILD, 2)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2021)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
9 changes: 5 additions & 4 deletions src/chainparams.cpp
Expand Up @@ -117,10 +117,10 @@ class CMainParams : public CChainParams {
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1683030979; // May 5th, 2023

// The best chain should have at least this much work.
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000006212919ecbb3b34");
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000000006a7329290ba340d");

// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S("0x62ad9c9bc2baefa68d6c3ed0e7d1f19cce817b21b1211f5beaa8952696ce2fec"); // 205022
consensus.defaultAssumeValid = uint256S("0xcf087383153e13a3ec05130d9cf0ae5270ef3f468c2a50a22313e49af3d9f0c3"); // 222666

// AuxPoW parameters
consensus.nAuxpowChainIds = {0x0062, 0x0032}; // All future chain IDs. Used for permissive block header checks.
Expand Down Expand Up @@ -202,13 +202,14 @@ class CMainParams : public CChainParams {
( 65694, uint256S("0x71d55f53676a85567e96020194d66736751a4330814142c86a4bac9972109c3d"))
( 159010, uint256S("0x4223941e5b442f6413921b4ee376aa75e01b8522b42d4cb0d293914e628eb81f"))
( 205022, uint256S("0x62ad9c9bc2baefa68d6c3ed0e7d1f19cce817b21b1211f5beaa8952696ce2fec"))
( 222333, uint256S("0xc99682f70c4243247d1fffc282134e10067769ce36bb3f53e9c90c8ff7e398e9"))
};

chainTxData = ChainTxData{
// Data as of block 594a42d8fe16382085dc982135df72cf8fcea12d34e6efd566e2f9e442e2136f (height 1).
// Tx estimate based on average of year 2021 (~40k transactions per day)
1627728696, // * UNIX timestamp of last checkpoint block
197625, // * total number of transactions between genesis and last checkpoint
1631772861, // * UNIX timestamp of last checkpoint block
239348, // * total number of transactions between genesis and last checkpoint
// (the tx=... number in the SetBestChain debug.log lines)
0.26 // * estimated number of transactions per second after checkpoint
};
Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Expand Up @@ -11,7 +11,7 @@

// XXX: Decide if this is appropriate - if we reintroduce alerts we may need
// to reduce to 70012
static const int PROTOCOL_VERSION = 70126;
static const int PROTOCOL_VERSION = 70127;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
Expand All @@ -20,7 +20,7 @@ static const int INIT_PROTO_VERSION = 209;
static const int GETHEADERS_VERSION = 31800;

//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION = 70125;
static const int MIN_PEER_PROTO_VERSION = 70126;

//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this
Expand Down

0 comments on commit 228c520

Please sign in to comment.