Bitcoin ABC 0.34.2
P2P Digital Currency
checkpoints.cpp
Go to the documentation of this file.
1// Copyright (c) 2020 The Bitcoin developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#include <chainparams.h>
6#include <common/system.h>
7#include <util/chaintype.h>
8
11 {11111, *BlockHash::FromHex("0000000069e244f73d78e8fd29ba2fd2ed6"
12 "18bd6fa2ee92559f542fdb26e7c1d")},
13 {33333, *BlockHash::FromHex("000000002dd5588a74784eaa7ab0507a18a"
14 "d16a236e7b1ce69f00d7ddfb5d0a6")},
15 {74000, *BlockHash::FromHex("0000000000573993a3c9e41ce34471c079d"
16 "cf5f52a0e824a81e7f953b8661a20")},
17 {105000, *BlockHash::FromHex("00000000000291ce28027faea320c8d2b0"
18 "54b2e0fe44a773f3eefb151d6bdc97")},
19 {134444, *BlockHash::FromHex("00000000000005b12ffd4cd315cd34ffd4"
20 "a594f430ac814c91184a0d42d2b0fe")},
21 {168000, *BlockHash::FromHex("000000000000099e61ea72015e79632f21"
22 "6fe6cb33d7899acb35b75c8303b763")},
23 {193000, *BlockHash::FromHex("000000000000059f452a5f7340de6682a9"
24 "77387c17010ff6e6c3bd83ca8b1317")},
25 {210000, *BlockHash::FromHex("000000000000048b95347e83192f69cf03"
26 "66076336c639f9b7228e9ba171342e")},
27 {216116, *BlockHash::FromHex("00000000000001b4f4b433e81ee46494af"
28 "945cf96014816a4e2370f11b23df4e")},
29 {225430, *BlockHash::FromHex("00000000000001c108384350f74090433e"
30 "7fcf79a606b8e797f065b130575932")},
31 {250000, *BlockHash::FromHex("000000000000003887df1f29024b06fc22"
32 "00b55f8af8f35453d7be294df2d214")},
33 {279000, *BlockHash::FromHex("0000000000000001ae8c72a0b0c301f67e"
34 "3afca10e819efa9041e458e9bd7e40")},
35 {295000, *BlockHash::FromHex("00000000000000004d9b4ef50f0f9d686f"
36 "d69db2e03af35a100370c64632a983")},
37 // UAHF fork block.
38 {478558, *BlockHash::FromHex("0000000000000000011865af4122fe3b14"
39 "4e2cbeea86142e8ff2fb4107352d43")},
40 // Nov, 13 DAA activation block.
41 {504031, *BlockHash::FromHex("0000000000000000011ebf65b60d0a3de8"
42 "0b8175be709d653b4c1a1beeb6ab9c")},
43 // Monolith activation.
44 {530359, *BlockHash::FromHex("0000000000000000011ada8bd08f46074f"
45 "44a8f155396f43e38acf9501c49103")},
46 // Magnetic anomaly activation.
47 {556767, *BlockHash::FromHex("0000000000000000004626ff6e3b936941"
48 "d341c5932ece4357eeccac44e6d56c")},
49 // Great wall activation.
50 {582680, *BlockHash::FromHex("000000000000000001b4b8e36aec7d4f96"
51 "71a47872cb9a74dc16ca398c7dcc18")},
52 // Graviton activation.
53 {609136, *BlockHash::FromHex("000000000000000000b48bb207faac5ac6"
54 "55c313e41ac909322eaa694f5bc5b1")},
55 // Phonon activation.
56 {635259, *BlockHash::FromHex("00000000000000000033dfef1fc2d6a5d5"
57 "520b078c55193a9bf498c5b27530f7")},
58 // Axion activation.
59 {661648,
60 *BlockHash::FromHex("000000000000000004284c9d8b2c8ff731efeaec6b"
61 "e50729bdc9bd07f910757d")},
62 {664198,
63 *BlockHash::FromHex("00000000000000000c2f90578cede892ff39592cce"
64 "34b2fb89b6d2a122468260")},
65 {680140, *BlockHash::FromHex("0000000000000000232c48568b63451d4ac445210"
66 "9aa46f8b38c65c3f62f7c0b")},
67 // Tachyon activation
68 {686621, *BlockHash::FromHex("00000000000000003c8fe6f7570a9f6d5480dcfc9"
69 "5f8228ae9d60b98bee5b745")},
70 // Selectron activation.
71 {713661,
72 *BlockHash::FromHex("00000000000000000676f84307c7ccb53a0f19083f"
73 "eace753cb73a38eaaaef8d")},
74 // Gluon activation.
75 {739536,
76 *BlockHash::FromHex("000000000000000006db04cd4609560905fe5a7be6"
77 "2f2429b159ce6b59fc7b61")},
78 // Jefferson activation.
79 {766195,
80 *BlockHash::FromHex("0000000000000000102bc94853715b9ade9610eb31"
81 "b4ed7d955529b76d24e094")},
82 // Wellington activation.
83 {792118,
84 *BlockHash::FromHex("00000000000000000b360176b8456de45b662fce6d"
85 "557c6238dec17362d197f3")},
86 // Cowperthwaite activation.
87 {818670,
88 *BlockHash::FromHex("000000000000000003e79cfe757a675909fd2bffde"
89 "52158ce4ec826e5ac6ae79")},
90 // Lee Kuan Yew activation.
91 {844743,
92 *BlockHash::FromHex("0000000000000000053b80210677e6821a2ac0ed73"
93 "b949a78667e1bfb3dfa6eb")},
94 // Augusto activation.
95 {871168,
96 *BlockHash::FromHex("0000000000000000232d2ec92c9a2dd3a6e887dabc"
97 "254c85f10e804239ff7274")},
98 // Schumpeter activation.
99 {896974,
100 *BlockHash::FromHex("0000000000000000051b048b2d7801b854dbbe3fcd"
101 "f8f28e995d2bbbd29e7cf5")},
102 // Shibusawa activation.
103 {923348,
104 *BlockHash::FromHex("00000000000000004eb0a7a410071b9ff243ed02ea"
105 "61ce3d566081dd05c05576")},
106 // Obolensky activation.
107 {949200,
108 *BlockHash::FromHex("000000000000000098694560815190dba8bbe2f06c"
109 "08a7c23837df3c4886cba2")},
110 }};
111
113 .mapCheckpoints = {
114 {546, *BlockHash::FromHex("000000002a936ca763904c3c35fce2f3556c5"
115 "59c0214345d31b1bcebf76acb70")},
116 // UAHF fork block.
117 {1155875,
118 *BlockHash::FromHex("00000000f17c850672894b9a75b63a1e72830bbd5f"
119 "4c8889b5c1a80e7faef138")},
120 // Nov, 13. DAA activation block.
121 {1188697,
122 *BlockHash::FromHex("0000000000170ed0918077bde7b4d36cc4c91be69f"
123 "a09211f748240dabe047fb")},
124 // Great wall activation.
125 {1303885,
126 *BlockHash::FromHex("00000000000000479138892ef0e4fa478ccc938fb9"
127 "4df862ef5bde7e8dee23d3")},
128 // Graviton activation.
129 {1341712,
130 *BlockHash::FromHex("00000000fffc44ea2e202bd905a9fbbb9491ef9e9d"
131 "5a9eed4039079229afa35b")},
132 // Phonon activation.
133 {1378461,
134 *BlockHash::FromHex("0000000099f5509b5f36b1926bcf82b21d936ebeade"
135 "e811030dfbbb7fae915d7")},
136 // Axion activation.
137 {1421481,
138 *BlockHash::FromHex("00000000062c7f32591d883c99fc89ebe74a83287"
139 "c0f2b7ffeef72e62217d40b")},
140 // Tachyon activation.
141 {1450540,
142 *BlockHash::FromHex("00000000001085419e7328a2bacaf6216dd913c40"
143 "0f0b7da4bde43a8ebf6ed4e")},
144 // Selectron activation.
145 {1477500,
146 *BlockHash::FromHex("000000000004057554e6f83253e3080774c37ae8a"
147 "940ffbc38d77525274709ae")},
148 // Gluon activation.
149 {1503557,
150 *BlockHash::FromHex("00000000000dbd764814fb67b5ff5aab606faa1f5"
151 "881dc86f57639a1396e11ba")},
152 // Jefferson activation.
153 {1530063,
154 *BlockHash::FromHex("00000000013102d35674688b5fd478c3a048660d6"
155 "fea862401734a4b914132bf")},
156 // Wellington activation.
157 {1556121,
158 *BlockHash::FromHex("000000000eb806d6dbc9a200a9d533c7a11fc7d45"
159 "ab67a3c8440cc1b5c4e741f")},
160 // Cowperthwaite activation.
161 {1584486,
162 *BlockHash::FromHex("000000000bdc9ee694295e611be29fcad7189f116"
163 "04edeb8f6c0ab65b40c3370")},
164 // Lee Kuan Yew activation.
165 {1608805,
166 *BlockHash::FromHex("00000000000ad004602681a2458bc6304196ec483"
167 "f336cce7d031309e4d3592d")},
168 // Augusto activation.
169 {1635241,
170 *BlockHash::FromHex("00000000082c7e223785dffb1f62db4ec737b8fd1"
171 "4faaf4dfb7c5a8bbf22bd2d")},
172 // Schumpeter activation.
173 {1661274,
174 *BlockHash::FromHex("00000000000ec2a59f7dbddebfa9f5b82a918085d"
175 "d6174da26eb9d7ad005c219")},
176 // Shibusawa activation.
177 {1687664,
178 *BlockHash::FromHex("00000000000a09cd4a16996bed7fb6afc58cb52f3"
179 "df7b1c8ce0bc90e5c56982f")},
180 // Obolensky activation.
181 {1713793,
182 *BlockHash::FromHex("000000000008b5b5579ca088a51dd7ed18923e150"
183 "23f7a296bb248d0eda80f84")}}};
184
186 .mapCheckpoints = {
187 {0, *BlockHash::FromHex("0f9188f13cb7b2c71f2a335e3a4fc328bf5beb4"
188 "36012afca590b1a11466e2206")},
189 }};
190
192 switch (chain) {
193 case ChainType::MAIN:
199 }
200 throw std::invalid_argument(
201 strprintf("%s: Invalid ChainType value", __func__));
202}
ChainType
Definition: chaintype.h:11
static CCheckpointData regTestCheckpointData
static CCheckpointData testNetCheckpointData
static CCheckpointData mainNetCheckpointData
Definition: checkpoints.cpp:9
const CCheckpointData & CheckpointData(const ChainType chain)
static std::optional< BlockHash > FromHex(std::string_view str)
Definition: blockhash.h:17
MapCheckpoints mapCheckpoints
Definition: chainparams.h:36
#define strprintf
Format arguments and return the string or write to given std::ostream (see tinyformat::format doc for...
Definition: tinyformat.h:1203