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