aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-02-04 21:19:27 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-03-20 16:23:39 +0100
commit2bb1c87700a80f0b20b4b2cbd68a0d82a18dbcc0 (patch)
tree61bdf899e90c96abd096c3c0abd5fdbd54369eff /src/wallet/wallet.h
parent05f17d4eaa9e74836d5736d50e456420949f2732 (diff)
downloadbitcoin-2bb1c87700a80f0b20b4b2cbd68a0d82a18dbcc0.tar.xz
refactor: move bdb (bitdb) interaction from init.cpp to wallet.cpp
this will remove db.h from init.cpp
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.