Skip to content

Commit b835656

Browse files
committed
Merge #18500: chainparams: Bump assumed valid hash
222253e chainparams: Bump assumed valid hash (MarcoFalke) Pull request description: See https://github.com/bitcoin/bitcoin/blob/master/doc/release-process.md#before-branch-off ACKs for top commit: fanquake: ACK 222253e - matches output on my node. Also have 3.8GB for the chainstate dir. If anyone wants to know what commands they should run / what to check; I have some docs on [assumevalid updates](https://github.com/fanquake/core-review/blob/master/update-assumevalid.md). elichai: ACK 222253e theStack: ACK bitcoin/bitcoin@222253e instagibbs: ACK bitcoin/bitcoin@222253e all mainnet params, did not check testnet Tree-SHA512: 856e75f0c6663ab478768d80618f11ac109ef30058661f58ed7f2a3a615dd5fb8f8d648c996eff77949036c1633119085b25cd4c25250a0850c943c02cddf3d7
2 parents 6bdd515 + 222253e commit b835656

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/chainparams.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ class CMainParams : public CChainParams {
8484
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
8585

8686
// The best chain should have at least this much work.
87-
consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000008ea3cf107ae0dec57f03fe8");
87+
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000e1ab5ec9348e9f4b8eb8154");
8888

8989
// By default assume that the signatures in ancestors of this block are valid.
90-
consensus.defaultAssumeValid = uint256S("0x00000000000000000005f8920febd3925f8272a6a71237563d78c2edfdd09ddf"); // 597379
90+
consensus.defaultAssumeValid = uint256S("0x0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d"); // 623950
9191

9292
/**
9393
* The message start string is designed to be unlikely to occur in normal data.
@@ -100,7 +100,7 @@ class CMainParams : public CChainParams {
100100
pchMessageStart[3] = 0xd9;
101101
nDefaultPort = 8333;
102102
nPruneAfterHeight = 100000;
103-
m_assumed_blockchain_size = 280;
103+
m_assumed_blockchain_size = 320;
104104
m_assumed_chain_state_size = 4;
105105

106106
genesis = CreateGenesisBlock(1231006505, 2083236893, 0x1d00ffff, 1, 50 * COIN);
@@ -156,10 +156,10 @@ class CMainParams : public CChainParams {
156156
};
157157

158158
chainTxData = ChainTxData{
159-
// Data from RPC: getchaintxstats 4096 00000000000000000005f8920febd3925f8272a6a71237563d78c2edfdd09ddf
160-
/* nTime */ 1569926786,
161-
/* nTxCount */ 460596047,
162-
/* dTxRate */ 3.77848885073875,
159+
// Data from RPC: getchaintxstats 4096 0000000000000000000f2adce67e49b0b6bdeb9de8b7c3d7e93b21e7fc1e819d
160+
/* nTime */ 1585764811,
161+
/* nTxCount */ 517186863,
162+
/* dTxRate */ 3.305709665792344,
163163
};
164164
}
165165
};
@@ -192,18 +192,18 @@ class CTestNetParams : public CChainParams {
192192
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
193193

194194
// The best chain should have at least this much work.
195-
consensus.nMinimumChainWork = uint256S("0x00000000000000000000000000000000000000000000012b2a3a62424f21c918");
195+
consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000001495c1d5a01e2af8a23");
196196

197197
// By default assume that the signatures in ancestors of this block are valid.
198-
consensus.defaultAssumeValid = uint256S("0x00000000000000b7ab6ce61eb6d571003fbe5fe892da4c9b740c49a07542462d"); // 1580000
198+
consensus.defaultAssumeValid = uint256S("0x000000000000056c49030c174179b52a928c870e6e8a822c75973b7970cfbd01"); // 1692000
199199

200200
pchMessageStart[0] = 0x0b;
201201
pchMessageStart[1] = 0x11;
202202
pchMessageStart[2] = 0x09;
203203
pchMessageStart[3] = 0x07;
204204
nDefaultPort = 18333;
205205
nPruneAfterHeight = 1000;
206-
m_assumed_blockchain_size = 30;
206+
m_assumed_blockchain_size = 40;
207207
m_assumed_chain_state_size = 2;
208208

209209
genesis = CreateGenesisBlock(1296688602, 414098458, 0x1d00ffff, 1, 50 * COIN);
@@ -241,10 +241,10 @@ class CTestNetParams : public CChainParams {
241241
};
242242

243243
chainTxData = ChainTxData{
244-
// Data from RPC: getchaintxstats 4096 00000000000000b7ab6ce61eb6d571003fbe5fe892da4c9b740c49a07542462d
245-
/* nTime */ 1569741320,
246-
/* nTxCount */ 52318009,
247-
/* dTxRate */ 0.1517002392872353,
244+
// Data from RPC: getchaintxstats 4096 000000000000056c49030c174179b52a928c870e6e8a822c75973b7970cfbd01
245+
/* nTime */ 1585561140,
246+
/* nTxCount */ 13483,
247+
/* dTxRate */ 0.08523187013249722,
248248
};
249249
}
250250
};

0 commit comments

Comments
 (0)