File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(CheckProofOfWork_test_negative_target)
86
86
uint256 hash;
87
87
unsigned int nBits;
88
88
nBits = UintToArith256 (consensus.powLimit ).GetCompact (true );
89
- hash. SetHex ( " 0x1 " ) ;
89
+ hash = uint256{ 1 } ;
90
90
BOOST_CHECK (!CheckProofOfWork (hash, nBits, consensus));
91
91
}
92
92
@@ -95,7 +95,7 @@ BOOST_AUTO_TEST_CASE(CheckProofOfWork_test_overflow_target)
95
95
const auto consensus = CreateChainParams (*m_node.args , ChainType::MAIN)->GetConsensus ();
96
96
uint256 hash;
97
97
unsigned int nBits{~0x00800000U };
98
- hash. SetHex ( " 0x1 " ) ;
98
+ hash = uint256{ 1 } ;
99
99
BOOST_CHECK (!CheckProofOfWork (hash, nBits, consensus));
100
100
}
101
101
@@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(CheckProofOfWork_test_too_easy_target)
107
107
arith_uint256 nBits_arith = UintToArith256 (consensus.powLimit );
108
108
nBits_arith *= 2 ;
109
109
nBits = nBits_arith.GetCompact ();
110
- hash. SetHex ( " 0x1 " ) ;
110
+ hash = uint256{ 1 } ;
111
111
BOOST_CHECK (!CheckProofOfWork (hash, nBits, consensus));
112
112
}
113
113
You can’t perform that action at this time.
0 commit comments