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

Function CreateBlockIndexWithNbits

src/test/blockchain_tests.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static CBlockIndex* CreateBlockIndexWithNbits(uint32_t nbits)
27{
28 CBlockIndex* block_index = new CBlockIndex();
29 block_index->nHeight = 46367;
30 block_index->nTime = 1269211443;
31 block_index->nBits = nbits;
32 return block_index;
33}
34
35static void RejectDifficultyMismatch(double difficulty, double expected_difficulty) {
36 BOOST_CHECK_MESSAGE(

Callers 1

TestDifficultyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected