Given a BlockIndex with the provided nbits, * verify that the expected difficulty results. */
| 39 | * verify that the expected difficulty results. |
| 40 | */ |
| 41 | static void TestDifficulty(uint32_t nbits, double expected_difficulty) |
| 42 | { |
| 43 | CBlockIndex* block_index = CreateBlockIndexWithNbits(nbits); |
| 44 | double difficulty = GetDifficulty(block_index); |
| 45 | delete block_index; |
| 46 | |
| 47 | RejectDifficultyMismatch(difficulty, expected_difficulty); |
| 48 | } |
| 49 | |
| 50 | BOOST_FIXTURE_TEST_SUITE(blockchain_tests, BasicTestingSetup) |
| 51 |
no test coverage detected