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 @@ -56,8 +56,7 @@ static BlockAssembler AssemblerForTest(const CChainParams& params) {
56
56
return BlockAssembler (params, options);
57
57
}
58
58
59
- static
60
- struct {
59
+ constexpr static struct {
61
60
unsigned char extranonce;
62
61
unsigned int nonce;
63
62
} blockinfo[] = {
@@ -225,7 +224,8 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
225
224
BOOST_CHECK (pblocktemplate = AssemblerForTest (chainparams).CreateNewBlock (scriptPubKey));
226
225
227
226
// We can't make transactions until we have inputs
228
- // Therefore, load 100 blocks :)
227
+ // Therefore, load 110 blocks :)
228
+ static_assert (sizeof (blockinfo) / sizeof (*blockinfo) == 110 , " Should have 110 blocks to import" );
229
229
int baseheight = 0 ;
230
230
std::vector<CTransactionRef> txFirst;
231
231
for (unsigned int i = 0 ; i < sizeof (blockinfo)/sizeof (*blockinfo); ++i)
You can’t perform that action at this time.
0 commit comments