aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/salvage.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-07-06 14:34:49 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-07-26 20:22:45 -0400
commit9f536d4fe949666f14a0bf5b814522cecde71f56 (patch)
tree8e9ad411b07c37a653ce4db46bad9df976a975fa /src/wallet/salvage.h
parent06e263a4e368671ebb4e4a77c1447ebd5104a488 (diff)
downloadbitcoin-9f536d4fe949666f14a0bf5b814522cecde71f56.tar.xz
wallettool: Have RecoverDatabaseFile return errors and warnings
Instead of logging or printing these errors and warnings, return them to the caller.
Diffstat (limited to 'src/wallet/salvage.h')
-rw-r--r--src/wallet/salvage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/salvage.h b/src/wallet/salvage.h
index e361930f5e..5a8538f942 100644
--- a/src/wallet/salvage.h
+++ b/src/wallet/salvage.h
@@ -9,6 +9,8 @@
#include <fs.h>
#include <streams.h>
-bool RecoverDatabaseFile(const fs::path& file_path);
+struct bilingual_str;
+
+bool RecoverDatabaseFile(const fs::path& file_path, bilingual_str& error, std::vector<bilingual_str>& warnings);
#endif // BITCOIN_WALLET_SALVAGE_H