|
8 | 8 | #include <chainparamsseeds.h> |
9 | 9 | #include <consensus/merkle.h> |
10 | 10 | #include <hash.h> // for signet block challenge hash |
11 | | -#include <tinyformat.h> |
12 | 11 | #include <util/system.h> |
13 | 12 | #include <util/strencodings.h> |
14 | 13 | #include <versionbitsinfo.h> |
@@ -161,6 +160,10 @@ class CMainParams : public CChainParams { |
161 | 160 | } |
162 | 161 | }; |
163 | 162 |
|
| 163 | + m_assumeutxo_data = MapAssumeutxo{ |
| 164 | + // TODO to be specified in a future patch. |
| 165 | + }; |
| 166 | + |
164 | 167 | chainTxData = ChainTxData{ |
165 | 168 | // Data from RPC: getchaintxstats 4096 0000000000000000000b9d2ec5a352ecba0592946514a92f14319dc2b367fc72 |
166 | 169 | /* nTime */ 1603995752, |
@@ -250,6 +253,10 @@ class CTestNetParams : public CChainParams { |
250 | 253 | } |
251 | 254 | }; |
252 | 255 |
|
| 256 | + m_assumeutxo_data = MapAssumeutxo{ |
| 257 | + // TODO to be specified in a future patch. |
| 258 | + }; |
| 259 | + |
253 | 260 | chainTxData = ChainTxData{ |
254 | 261 | // Data from RPC: getchaintxstats 4096 000000000000006433d1efec504c53ca332b64963c425395515b01977bd7b3b0 |
255 | 262 | /* nTime */ 1603359686, |
@@ -431,6 +438,17 @@ class CRegTestParams : public CChainParams { |
431 | 438 | } |
432 | 439 | }; |
433 | 440 |
|
| 441 | + m_assumeutxo_data = MapAssumeutxo{ |
| 442 | + { |
| 443 | + 110, |
| 444 | + {uint256S("0x76fd7334ac7c1baf57ddc0c626f073a655a35d98a4258cd1382c8cc2b8392e10"), 110}, |
| 445 | + }, |
| 446 | + { |
| 447 | + 210, |
| 448 | + {uint256S("0x9c5ed99ef98544b34f8920b6d1802f72ac28ae6e2bd2bd4c316ff10c230df3f2"), 210}, |
| 449 | + }, |
| 450 | + }; |
| 451 | + |
434 | 452 | chainTxData = ChainTxData{ |
435 | 453 | 0, |
436 | 454 | 0, |
@@ -526,3 +544,9 @@ void SelectParams(const std::string& network) |
526 | 544 | SelectBaseParams(network); |
527 | 545 | globalChainParams = CreateChainParams(gArgs, network); |
528 | 546 | } |
| 547 | + |
| 548 | +std::ostream& operator<<(std::ostream& o, const AssumeutxoData& aud) |
| 549 | +{ |
| 550 | + o << strprintf("AssumeutxoData(%s, %s)", aud.hash_serialized.ToString(), aud.nChainTx); |
| 551 | + return o; |
| 552 | +} |
0 commit comments