|
26 | 26 | #include <cstring>
|
27 | 27 | #include <type_traits>
|
28 | 28 |
|
| 29 | +using namespace util::hex_literals; |
| 30 | + |
29 | 31 | // Workaround MSVC bug triggering C7595 when calling consteval constructors in
|
30 | 32 | // initializer lists.
|
31 | 33 | // A fix may be on the way:
|
@@ -71,7 +73,7 @@ static CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesi
|
71 | 73 | static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward)
|
72 | 74 | {
|
73 | 75 | const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
|
74 |
| - const CScript genesisOutputScript = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG; |
| 76 | + const CScript genesisOutputScript = CScript() << "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f"_hex_v_u8 << OP_CHECKSIG; |
75 | 77 | return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward);
|
76 | 78 | }
|
77 | 79 |
|
@@ -351,7 +353,7 @@ class CTestNet4Params : public CChainParams {
|
351 | 353 | m_assumed_chain_state_size = 0;
|
352 | 354 |
|
353 | 355 | const char* testnet4_genesis_msg = "03/May/2024 000000000000000000001ebd58c244970b3aa9d783bb001011fbe8ea8e98e00e";
|
354 |
| - const CScript testnet4_genesis_script = CScript() << ParseHex("000000000000000000000000000000000000000000000000000000000000000000") << OP_CHECKSIG; |
| 356 | + const CScript testnet4_genesis_script = CScript() << "000000000000000000000000000000000000000000000000000000000000000000"_hex_v_u8 << OP_CHECKSIG; |
355 | 357 | genesis = CreateGenesisBlock(testnet4_genesis_msg,
|
356 | 358 | testnet4_genesis_script,
|
357 | 359 | 1714777860,
|
@@ -412,7 +414,7 @@ class SigNetParams : public CChainParams {
|
412 | 414 | vSeeds.clear();
|
413 | 415 |
|
414 | 416 | if (!options.challenge) {
|
415 |
| - bin = ParseHex("512103ad5e0edad18cb1f0fc0d28a3d4f1f3e445640337489abb10404f2d1e086be430210359ef5021964fe22d6f8e05b2463c9540ce96883fe3b278760f048f5189f2e6c452ae"); |
| 417 | + bin = "512103ad5e0edad18cb1f0fc0d28a3d4f1f3e445640337489abb10404f2d1e086be430210359ef5021964fe22d6f8e05b2463c9540ce96883fe3b278760f048f5189f2e6c452ae"_hex_v_u8; |
416 | 418 | vSeeds.emplace_back("seed.signet.bitcoin.sprovoost.nl.");
|
417 | 419 | vSeeds.emplace_back("seed.signet.achownodes.xyz."); // Ava Chow, only supports x1, x5, x9, x49, x809, x849, xd, x400, x404, x408, x448, xc08, xc48, x40c
|
418 | 420 |
|
|
0 commit comments