Equality between doubles is imprecise. Comparison should be done * with a small threshold of tolerance, rather than exact equality. */
| 9 | * with a small threshold of tolerance, rather than exact equality. |
| 10 | */ |
| 11 | static bool DoubleEquals(double a, double b, double epsilon) |
| 12 | { |
| 13 | return std::abs(a - b) < epsilon; |
| 14 | } |
| 15 | |
| 16 | static CBlockIndex* CreateBlockIndexWithNbits(uint32_t nbits) |
| 17 | { |
no outgoing calls
no test coverage detected