Page MenuHomePhabricator

D7327.diff
No OneTemporary

D7327.diff

diff --git a/src/wallet/wallettool.cpp b/src/wallet/wallettool.cpp
--- a/src/wallet/wallettool.cpp
+++ b/src/wallet/wallettool.cpp
@@ -17,7 +17,7 @@
// deleter here.
static void WalletToolReleaseWallet(CWallet *wallet) {
wallet->WalletLogPrintf("Releasing wallet\n");
- wallet->Flush();
+ wallet->Flush(true);
delete wallet;
}
@@ -129,7 +129,7 @@
std::shared_ptr<CWallet> wallet_instance = CreateWallet(name, path);
if (wallet_instance) {
WalletShowInfo(wallet_instance.get());
- wallet_instance->Flush();
+ wallet_instance->Flush(true);
}
} else if (command == "info") {
if (!fs::exists(path)) {
@@ -149,7 +149,7 @@
return false;
}
WalletShowInfo(wallet_instance.get());
- wallet_instance->Flush();
+ wallet_instance->Flush(true);
} else {
tfm::format(std::cerr, "Invalid command: %s\n", command);
return false;

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 11:54 (26 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187722
Default Alt Text
D7327.diff (979 B)

Event Timeline