wallet::AddWallet

Register a loaded wallet with the wallet context.

Synopsis

Declared in <wallet/wallet.h>

bool
AddWallet(
    WalletContext& context,
    std::shared_ptr<CWallet> const& wallet);

Return Value

true if the wallet was added, false if it was already present.

Parameters

NameDescription
contextThe wallet context to register into.
walletThe wallet to add.