| 246 | namespace dbwrapper_private { |
| 247 | |
| 248 | void HandleError(const leveldb::Status& status) |
| 249 | { |
| 250 | if (status.ok()) |
| 251 | return; |
| 252 | const std::string errmsg = "Fatal LevelDB error: " + status.ToString(); |
| 253 | LogPrintf("%s\n", errmsg); |
| 254 | LogPrintf("You can use -debug=leveldb to get more complete diagnostic messages\n"); |
| 255 | throw dbwrapper_error(errmsg); |
| 256 | } |
| 257 | |
| 258 | const std::vector<unsigned char>& GetObfuscateKey(const CDBWrapper &w) |
| 259 | { |
no test coverage detected