diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-07-06 14:34:49 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-07-26 20:22:45 -0400 |
commit | 9f536d4fe949666f14a0bf5b814522cecde71f56 (patch) | |
tree | 8e9ad411b07c37a653ce4db46bad9df976a975fa /src/wallet/salvage.h | |
parent | 06e263a4e368671ebb4e4a77c1447ebd5104a488 (diff) |
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.h | 4 |
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 |