aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2016-12-09 13:36:42 -0500
committerAlex Morcos <morcos@chaincode.com>2016-12-09 13:36:42 -0500
commit06329393c7d5e119f56b56f5a056ac8dcbb42e67 (patch)
tree5f013f000ec8e71d6e24bb286ba9cbbb758bd31a /src
parent72bf1b3d0962304850a3ef5fe375db4bff1d0a39 (diff)
downloadbitcoin-06329393c7d5e119f56b56f5a056ac8dcbb42e67.tar.xz
Flush wallet after abandontransaction
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 638fca9917..56e7b8e226 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1009,8 +1009,7 @@ bool CWallet::AbandonTransaction(const uint256& hashTx)
{
LOCK2(cs_main, cs_wallet);
- // Do not flush the wallet here for performance reasons
- CWalletDB walletdb(strWalletFile, "r+", false);
+ CWalletDB walletdb(strWalletFile, "r+");
std::set<uint256> todo;
std::set<uint256> done;