| 14 | } |
| 15 | |
| 16 | static 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 | |
| 25 | static void RejectDifficultyMismatch(double difficulty, double expected_difficulty) { |
| 26 | BOOST_CHECK_MESSAGE( |