From 518f3bdae3415fdb60cef984b69b36f2633c1fe1 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Fri, 14 Feb 2014 11:33:07 -0500 Subject: Add -zapwallettxes cli/config option, used for wallet recovery This diagnostic tool removes all "tx" records from the wallet db, then forces a full rescan, to rebuild "tx" records accurately. --- src/walletdb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/walletdb.h') diff --git a/src/walletdb.h b/src/walletdb.h index 4f3e29283e..3bfb436050 100644 --- a/src/walletdb.h +++ b/src/walletdb.h @@ -122,6 +122,8 @@ public: DBErrors ReorderTransactions(CWallet*); DBErrors LoadWallet(CWallet* pwallet); + DBErrors FindWalletTx(CWallet* pwallet, std::vector& vTxHash); + DBErrors ZapWalletTx(CWallet* pwallet); static bool Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys); static bool Recover(CDBEnv& dbenv, std::string filename); }; -- cgit v1.2.3