| 23 | } |
| 24 | |
| 25 | static void RejectDifficultyMismatch(double difficulty, double expected_difficulty) { |
| 26 | BOOST_CHECK_MESSAGE( |
| 27 | DoubleEquals(difficulty, expected_difficulty, 0.00001), |
| 28 | "Difficulty was " + std::to_string(difficulty) |
| 29 | + " but was expected to be " + std::to_string(expected_difficulty)); |
| 30 | } |
| 31 | |
| 32 | /* Given a BlockIndex with the provided nbits, |
| 33 | * verify that the expected difficulty results. |
no test coverage detected