diff options
author | Cozz Lovan <cozzlovan@yahoo.com> | 2014-02-14 18:27:15 +0100 |
---|---|---|
committer | Cozz Lovan <cozzlovan@yahoo.com> | 2014-06-16 18:56:57 +0200 |
commit | 77cbd4623e171ee9c48ada8a421295ed2c8e6c7c (patch) | |
tree | 84ff89231b49da39f3ff6d4d8baeded4a3e8c068 /src/wallet.cpp | |
parent | 529047fcd18acd1b64dc95d6eb69edeaad75d405 (diff) |
Let -zapwallettxes recover transaction meta data
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 400c966a95..36e40b1fc8 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1511,11 +1511,11 @@ DBErrors CWallet::LoadWallet(bool& fFirstRunRet) } -DBErrors CWallet::ZapWalletTx() +DBErrors CWallet::ZapWalletTx(std::vector<CWalletTx>& vWtx) { if (!fFileBacked) return DB_LOAD_OK; - DBErrors nZapWalletTxRet = CWalletDB(strWalletFile,"cr+").ZapWalletTx(this); + DBErrors nZapWalletTxRet = CWalletDB(strWalletFile,"cr+").ZapWalletTx(this, vWtx); if (nZapWalletTxRet == DB_NEED_REWRITE) { if (CDB::Rewrite(strWalletFile, "\x04pool")) |