refactor: move bdb (bitdb) interaction from init.cpp to wallet.cpp

this will remove db.h from init.cpp
This commit is contained in:
Jonas Schnelli
2015-02-04 21:19:27 +01:00
committed by Wladimir J. van der Laan
parent 05f17d4eaa
commit 2bb1c87700
3 changed files with 72 additions and 44 deletions

View File

@@ -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.