| 294 | } |
| 295 | |
| 296 | static std::string getCompressionString(int mode) |
| 297 | { |
| 298 | switch(mode) { |
| 299 | case PointCompressionType::BOTH: |
| 300 | return "both"; |
| 301 | case PointCompressionType::UNCOMPRESSED: |
| 302 | return "uncompressed"; |
| 303 | case PointCompressionType::COMPRESSED: |
| 304 | return "compressed"; |
| 305 | } |
| 306 | |
| 307 | throw std::string("Invalid compression setting '" + util::format(mode) + "'"); |
| 308 | } |
| 309 | |
| 310 | void writeCheckpoint(secp256k1::uint256 nextKey) |
| 311 | { |
no test coverage detected