Skip to content

Commit

Permalink
Merge pull request #1000 from qtumproject/neil/core23-update-chain-data
Browse files Browse the repository at this point in the history
core23 update chain data
  • Loading branch information
qtum-neil authored Feb 23, 2023
2 parents ca4cc07 + 455e97e commit ea28283
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class CMainParams : public CChainParams {
// Replace 0xffffc0 with the activation block number
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].min_activation_height = 2080512;

consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000037e70dfa7662e619017"); // 1883974
consensus.defaultAssumeValid = uint256S("0xefe5b66cd0963b19ed64850884f039ff4d98c49cd63b9ec763d5c336619d5a6d"); // 1883974
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000046da696c11a1b820988"); // 2636000
consensus.defaultAssumeValid = uint256S("0x4844cfb8403cdee4994acaab4bf1168339bce5ccd65496d4d9ffc1d262b0d79a"); // 2636000

/**
* The message start string is designed to be unlikely to occur in normal data.
Expand All @@ -132,7 +132,7 @@ class CMainParams : public CChainParams {
pchMessageStart[3] = 0xd3;
nDefaultPort = 3888;
nPruneAfterHeight = 100000;
m_assumed_blockchain_size = 16;
m_assumed_blockchain_size = 18;
m_assumed_chain_state_size = 1;

genesis = CreateGenesisBlock(1504695029, 8026361, 0x1f00ffff, 1, 50 * COIN);
Expand Down Expand Up @@ -182,6 +182,7 @@ class CMainParams : public CChainParams {
{ 888000, uint256S("02caf7a26b995e5054462715a4d31e1a7ff220c53fead7c06de720ac54510433")},
{ 1405000, uint256S("8ef924fb7d2a28e0420c8731fb34301c204d15fe8d1e68461e5ebe959df011f2")},
{ 1883974, uint256S("efe5b66cd0963b19ed64850884f039ff4d98c49cd63b9ec763d5c336619d5a6d")},
{ 2636000, uint256S("4844cfb8403cdee4994acaab4bf1168339bce5ccd65496d4d9ffc1d262b0d79a")},
}
};

Expand All @@ -191,10 +192,10 @@ class CMainParams : public CChainParams {

chainTxData = ChainTxData{
// Data as of block 2250aa6ed692895f7d3a7840e37bdc383584f18e0c7a9e7982521f9b47d6fd6c (height 1885982)
1653074852, // * UNIX timestamp of last known number of transactions
7579431, // * total number of transactions between genesis and that timestamp
1677137204, // * UNIX timestamp of last known number of transactions
9233597, // * total number of transactions between genesis and that timestamp
// (the tx=... number in the SetBestChain debug.log lines)
0.07127920937539545 // * estimated number of transactions per second after that timestamp
0.07037814963941287 // * estimated number of transactions per second after that timestamp
};

consensus.nBlocktimeDownscaleFactor = 4;
Expand Down Expand Up @@ -274,16 +275,16 @@ class CTestNetParams : public CChainParams {
// Replace 0xffffc0 with the activation block number
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].min_activation_height = 1967616;

consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000001568777684de8c59f80"); // 1930000
consensus.defaultAssumeValid = uint256S("0xf4836510a70e25d5c70554abbbcb346abd66af540f616d806fb1c20335c1e874"); // 1930000
consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000001c6bc764db929bf2dc1"); // 2686000
consensus.defaultAssumeValid = uint256S("0xc12594feff0dfae05f5a056cd9248ff5e6fc42d37c4bedf37b212eb17dccb486"); // 2686000

pchMessageStart[0] = 0x0d;
pchMessageStart[1] = 0x22;
pchMessageStart[2] = 0x15;
pchMessageStart[3] = 0x06;
nDefaultPort = 13888;
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 6;
m_assumed_blockchain_size = 8;
m_assumed_chain_state_size = 1;

genesis = CreateGenesisBlock(1504695029, 7349697, 0x1f00ffff, 1, 50 * COIN);
Expand Down Expand Up @@ -326,6 +327,7 @@ class CTestNetParams : public CChainParams {
{944000, uint256S("6bb6312088d81ca5484460b3466c66c01ff7d1cd4ef91e1dc9555a15b51d025d")},
{1405000, uint256S("aff1f9c768e83f90d10a55306993e9042b5740251abc1afdde1429d09e95fa66")},
{1930000, uint256S("f4836510a70e25d5c70554abbbcb346abd66af540f616d806fb1c20335c1e874")},
{2686000, uint256S("c12594feff0dfae05f5a056cd9248ff5e6fc42d37c4bedf37b212eb17dccb486")},
}
};

Expand All @@ -335,9 +337,9 @@ class CTestNetParams : public CChainParams {

chainTxData = ChainTxData{
// Data as of block f948d21fffc54b511638b4c2c73dfa8f1c50661fbf3187a553bf939c361116ea (height 1935143)
1653075072,
4040228,
0.06307789999321026
1677137416,
5556700,
0.0624360428132865
};

consensus.nBlocktimeDownscaleFactor = 4;
Expand Down

0 comments on commit ea28283

Please sign in to comment.