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