diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-05-15 18:54:18 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-05-25 12:59:29 -0400 |
commit | ced95d0e43389fe62b5d30fcc7c42dbca0e88242 (patch) | |
tree | 9fe3918c67177101656bfbaee8f0d45f86a6844e /src/wallet/db.h | |
parent | 07250b8dcebe2b97ed0fd900ad35cba4091b8ecf (diff) | |
download | bitcoin-ced95d0e43389fe62b5d30fcc7c42dbca0e88242.tar.xz |
Move BerkeleyEnvironment::Salvage into BerkeleyBatch::Recover
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r-- | src/wallet/db.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h index 4543c8c7e0..4acb414a5b 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -67,15 +67,6 @@ public: fs::path Directory() const { return strPath; } bool Verify(const std::string& strFile); - /** - * Salvage data from a file that Verify says is bad. - * fAggressive sets the DB_AGGRESSIVE flag (see berkeley DB->verify() method documentation). - * Appends binary key/value pairs to vResult, returns true if successful. - * NOTE: reads the entire database into memory, so cannot be used - * for huge databases. - */ - typedef std::pair<std::vector<unsigned char>, std::vector<unsigned char> > KeyValPair; - bool Salvage(const std::string& strFile, std::vector<KeyValPair>& vResult); bool Open(bool retry); void Close(); |