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