mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Add src/wallet/* code to wallet:: namespace
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
using node::NodeContext;
|
||||
|
||||
namespace wallet {
|
||||
class WalletInit : public WalletInitInterface
|
||||
{
|
||||
public:
|
||||
@@ -41,8 +42,6 @@ public:
|
||||
void Construct(NodeContext& node) const override;
|
||||
};
|
||||
|
||||
const WalletInitInterface& g_wallet_init_interface = WalletInit();
|
||||
|
||||
void WalletInit::AddWalletOptions(ArgsManager& argsman) const
|
||||
{
|
||||
argsman.AddArg("-addresstype", strprintf("What type of addresses to use (\"legacy\", \"p2sh-segwit\", \"bech32\", or \"bech32m\", default: \"%s\")", FormatOutputType(DEFAULT_ADDRESS_TYPE)), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET);
|
||||
@@ -139,3 +138,6 @@ void WalletInit::Construct(NodeContext& node) const
|
||||
node.wallet_loader = wallet_loader.get();
|
||||
node.chain_clients.emplace_back(std::move(wallet_loader));
|
||||
}
|
||||
} // namespace wallet
|
||||
|
||||
const WalletInitInterface& g_wallet_init_interface = wallet::WalletInit();
|
||||
|
||||
Reference in New Issue
Block a user