Changeset View
Changeset View
Standalone View
Standalone View
src/dummywallet.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
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."); | ||||
} | } | ||||
std::shared_ptr<CWallet> LoadWallet(const CChainParams &chainParams, | std::shared_ptr<CWallet> LoadWallet(const CChainParams &chainParams, | ||||
interfaces::Chain &chain, | interfaces::Chain &chain, | ||||
const std::string &name, std::string &error, | const std::string &name, std::string &error, | ||||
std::string &warning) { | std::vector<std::string> &warnings) { | ||||
throw std::logic_error("Wallet function called in non-wallet build."); | throw std::logic_error("Wallet function called in non-wallet build."); | ||||
} | } | ||||
WalletCreationStatus | WalletCreationStatus CreateWallet(const CChainParams &chainParams, | ||||
CreateWallet(const CChainParams &chainParams, interfaces::Chain &chain, | interfaces::Chain &chain, | ||||
const SecureString &passphrase, uint64_t wallet_creation_flags, | const SecureString &passphrase, | ||||
const std::string &name, std::string &error, std::string &warning, | uint64_t wallet_creation_flags, | ||||
const std::string &name, std::string &error, | |||||
std::vector<std::string> &warnings, | |||||
std::shared_ptr<CWallet> &result) { | std::shared_ptr<CWallet> &result) { | ||||
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 |