diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-10-19 15:34:21 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-11-18 11:56:08 -0500 |
commit | a58b719cf75e2d97205ec260bcff0d4780fe4fb8 (patch) | |
tree | 59b1f757afd587e30aa4e094131c81db300929d9 /src/wallet/wallettool.cpp | |
parent | b33af48210c117a734fc3e1bebeb1c2057645775 (diff) |
Do not compile BDB things when USE_BDB is defined
Diffstat (limited to 'src/wallet/wallettool.cpp')
-rw-r--r-- | src/wallet/wallettool.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallettool.cpp b/src/wallet/wallettool.cpp index 0e18d6a740..dad1232e10 100644 --- a/src/wallet/wallettool.cpp +++ b/src/wallet/wallettool.cpp @@ -122,6 +122,7 @@ bool ExecuteWalletToolFunc(const std::string& command, const std::string& name) WalletShowInfo(wallet_instance.get()); wallet_instance->Close(); } else if (command == "salvage") { +#ifdef USE_BDB bilingual_str error; std::vector<bilingual_str> warnings; bool ret = RecoverDatabaseFile(path, error, warnings); @@ -134,6 +135,10 @@ bool ExecuteWalletToolFunc(const std::string& command, const std::string& name) } } return ret; +#else + tfm::format(std::cerr, "Salvage command is not available as BDB support is not compiled"); + return false; +#endif } } else { tfm::format(std::cerr, "Invalid command: %s\n", command); |