diff options
author | Cozz Lovan <cozzlovan@yahoo.com> | 2014-08-31 05:55:27 +0200 |
---|---|---|
committer | Cozz Lovan <cozzlovan@yahoo.com> | 2014-10-03 05:11:27 +0200 |
commit | 44bc988e7becb492a78ed92ea1052f4789012534 (patch) | |
tree | e7ce5489c4f331b71bc55c24cfcd89393097f069 /src/init.cpp | |
parent | 29f96e8bc652cb14c6fdefe5279ee983054faa2a (diff) |
[Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 980c589b29..b943b8662b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1177,6 +1177,8 @@ bool AppInit2(boost::thread_group& threadGroup) // Restore wallet transaction metadata after -zapwallettxes=1 if (GetBoolArg("-zapwallettxes", false) && GetArg("-zapwallettxes", "1") != "2") { + CWalletDB walletdb(strWalletFile); + BOOST_FOREACH(const CWalletTx& wtxOld, vWtx) { uint256 hash = wtxOld.GetHash(); @@ -1192,7 +1194,7 @@ bool AppInit2(boost::thread_group& threadGroup) copyTo->fFromMe = copyFrom->fFromMe; copyTo->strFromAccount = copyFrom->strFromAccount; copyTo->nOrderPos = copyFrom->nOrderPos; - copyTo->WriteToDisk(); + copyTo->WriteToDisk(&walletdb); } } } |