mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-09 07:05:34 +01:00
wallet: Factor out LoadWallet
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
class CWallet;
|
||||
|
||||
namespace interfaces {
|
||||
class Chain;
|
||||
}
|
||||
|
||||
class DummyWalletInit : public WalletInitInterface {
|
||||
public:
|
||||
|
||||
@@ -43,6 +47,11 @@ std::vector<std::shared_ptr<CWallet>> GetWallets()
|
||||
throw std::logic_error("Wallet function called in non-wallet build.");
|
||||
}
|
||||
|
||||
std::shared_ptr<CWallet> LoadWallet(interfaces::Chain& chain, const std::string& name, std::string& error, std::string& warning)
|
||||
{
|
||||
throw std::logic_error("Wallet function called in non-wallet build.");
|
||||
}
|
||||
|
||||
namespace interfaces {
|
||||
|
||||
class Wallet;
|
||||
|
||||
Reference in New Issue
Block a user