aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2020-05-15 18:54:18 -0400
committerAndrew Chow <[email protected]>2020-05-25 12:59:29 -0400
commitced95d0e43389fe62b5d30fcc7c42dbca0e88242 (patch)
tree9fe3918c67177101656bfbaee8f0d45f86a6844e /src/wallet/db.h
parentwalletdb: remove fAggressive from Salvage (diff)
downloaddiscoin-ced95d0e43389fe62b5d30fcc7c42dbca0e88242.tar.xz
discoin-ced95d0e43389fe62b5d30fcc7c42dbca0e88242.zip
Move BerkeleyEnvironment::Salvage into BerkeleyBatch::Recover
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index 4543c8c7e..4acb414a5 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();