Skip to content

Commit f4a1091

Browse files
committed
Merge bitcoin/bitcoin#30721: refactor: Testnet4 - Replace uint256S("str") -> uint256{"str"}
49f9b64 refactor: Testnet4 - Replace uint256S("str") -> uint256{"str"} (Hodlinator) Pull request description: Ran scripted-diff from 2d9d752: ``` sed -i --regexp-extended -e 's/\buint256S\("(0x)?([^"]{64})"\)/uint256{"\2"}/g' $(git grep -l uint256S) ``` Follow-up to Testnet4 introduction #29775 which overlapped with work on `uint256` `consteval` ctor #30560 (the latter includes the scripted-diff commit). Going forward `uint256{}` should be used for constants instead of `uint256S()`. ACKs for top commit: maflcko: review-ACK 49f9b64 🐮 fjahr: ACK 49f9b64 Tree-SHA512: 94fe5d9f1fb85e9ce5c3c4c5e4c31667e8cbb55ee691a4b5b3ae4172ccac38230281071023663965917f188b4c19bdf67afd4e3cdf69d89e97c65faea88af833
2 parents 2c7a423 + 49f9b64 commit f4a1091

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/kernel/chainparams.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class CTestNet4Params : public CChainParams {
319319
consensus.CSVHeight = 1;
320320
consensus.SegwitHeight = 1;
321321
consensus.MinBIP9WarningHeight = 0;
322-
consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
322+
consensus.powLimit = uint256{"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"};
323323
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks
324324
consensus.nPowTargetSpacing = 10 * 60;
325325
consensus.fPowAllowMinDifficultyBlocks = true;
@@ -360,8 +360,8 @@ class CTestNet4Params : public CChainParams {
360360
1,
361361
50 * COIN);
362362
consensus.hashGenesisBlock = genesis.GetHash();
363-
assert(consensus.hashGenesisBlock == uint256S("0x00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043"));
364-
assert(genesis.hashMerkleRoot == uint256S("0x7aa0a7ae1e223414cb807e40cd57e667b718e42aaf9306db9102fe28912b7b4e"));
363+
assert(consensus.hashGenesisBlock == uint256{"00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043"});
364+
assert(genesis.hashMerkleRoot == uint256{"7aa0a7ae1e223414cb807e40cd57e667b718e42aaf9306db9102fe28912b7b4e"});
365365

366366
vFixedSeeds.clear();
367367
vSeeds.clear();

0 commit comments

Comments
 (0)