Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115733
D7327.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
979 B
Subscribers
None
D7327.diff
View Options
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
Details
Attached
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)
Attached To
D7327: [backport#15390] [wallet-tool] Close bdb when flushing wallet
Event Timeline
Log In to Comment