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