aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-03-20 16:29:26 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-03-20 16:29:28 +0100
commitf3948a30cd27928fdf9dffbbf90ea6430c869edf (patch)
tree61bdf899e90c96abd096c3c0abd5fdbd54369eff /src/wallet/wallet.h
parent05f17d4eaa9e74836d5736d50e456420949f2732 (diff)
parent2bb1c87700a80f0b20b4b2cbd68a0d82a18dbcc0 (diff)
Merge #5758: refactor: move BDB (bitdb / db.h) interaction from init.cpp to wallet.cpp
2bb1c87 refactor: move bdb (bitdb) interaction from init.cpp to wallet.cpp (Jonas Schnelli)
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index b2973250a4..1a9feff9f3 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -743,6 +743,12 @@ public:
//! Get wallet transactions that conflict with given transaction (spend same outputs)
std::set<uint256> GetConflicts(const uint256& txid) const;
+ //! Flush wallet (bitdb flush)
+ void Flush(bool shutdown=false);
+
+ //! Verify the wallet database and perform salvage if required
+ static bool Verify(const std::string walletFile, std::string& warningString, std::string& errorString);
+
/**
* Address book entry changed.
* @note called with lock cs_wallet held.