Changeset View
Changeset View
Standalone View
Standalone View
src/dummywallet.cpp
Show All 26 Lines | std::vector<std::string> opts = { | ||||
"-walletnotify=<cmd>", "-zapwallettxes=<mode>", | "-walletnotify=<cmd>", "-zapwallettxes=<mode>", | ||||
// Wallet debug options | // Wallet debug options | ||||
"-dblogsize=<n>", "-flushwallet", "-privdb", "-walletrejectlongchains"}; | "-dblogsize=<n>", "-flushwallet", "-privdb", "-walletrejectlongchains"}; | ||||
gArgs.AddHiddenArgs(opts); | gArgs.AddHiddenArgs(opts); | ||||
} | } | ||||
const WalletInitInterface &g_wallet_init_interface = DummyWalletInit(); | const WalletInitInterface &g_wallet_init_interface = DummyWalletInit(); | ||||
fs::path GetWalletDir() { | |||||
throw std::logic_error("Wallet function called in non-wallet build."); | |||||
} | |||||
std::vector<fs::path> ListWalletDir() { | |||||
throw std::logic_error("Wallet function called in non-wallet build."); | |||||
} | |||||
std::vector<std::shared_ptr<CWallet>> GetWallets() { | std::vector<std::shared_ptr<CWallet>> GetWallets() { | ||||
throw std::logic_error("Wallet function called in non-wallet build."); | throw std::logic_error("Wallet function called in non-wallet build."); | ||||
} | } | ||||
namespace interfaces { | namespace interfaces { | ||||
class Wallet; | class Wallet; | ||||
std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet> &wallet) { | std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet> &wallet) { | ||||
throw std::logic_error("Wallet function called in non-wallet build."); | throw std::logic_error("Wallet function called in non-wallet build."); | ||||
} | } | ||||
} // namespace interfaces | } // namespace interfaces |