mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add src/wallet/* code to wallet:: namespace
This commit is contained in:
parent
90fc8b089d
commit
f7086fd8ff
94 changed files with 294 additions and 75 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue