MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CreateBlockIndexWithNbits

Function CreateBlockIndexWithNbits

src/test/blockchain_tests.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16static CBlockIndex* CreateBlockIndexWithNbits(uint32_t nbits)
17{
18 CBlockIndex* block_index = new CBlockIndex();
19 block_index->nHeight = 46367;
20 block_index->nTime = 1269211443;
21 block_index->nBits = nbits;
22 return block_index;
23}
24
25static void RejectDifficultyMismatch(double difficulty, double expected_difficulty) {
26 BOOST_CHECK_MESSAGE(

Callers 1

TestDifficultyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected