MCPcopy Create free account
hub / github.com/ElementsProject/elements / WalletShowInfo

Function WalletShowInfo

src/wallet/wallettool.cpp:101–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static void WalletShowInfo(CWallet* wallet_instance)
102{
103 LOCK(wallet_instance->cs_wallet);
104
105 tfm::format(std::cout, "Wallet info\n===========\n");
106 tfm::format(std::cout, "Name: %s\n", wallet_instance->GetName());
107 tfm::format(std::cout, "Format: %s\n", wallet_instance->GetDatabase().Format());
108 tfm::format(std::cout, "Descriptors: %s\n", wallet_instance->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS) ? "yes" : "no");
109 tfm::format(std::cout, "Encrypted: %s\n", wallet_instance->IsCrypted() ? "yes" : "no");
110 tfm::format(std::cout, "HD (hd seed available): %s\n", wallet_instance->IsHDEnabled() ? "yes" : "no");
111 tfm::format(std::cout, "Keypool Size: %u\n", wallet_instance->GetKeyPoolSize());
112 tfm::format(std::cout, "Transactions: %zu\n", wallet_instance->mapWallet.size());
113 tfm::format(std::cout, "Address Book: %zu\n", wallet_instance->m_address_book.size());
114}
115
116bool ExecuteWalletToolFunc(const ArgsManager& args, const std::string& command)
117{

Callers 1

ExecuteWalletToolFuncFunction · 0.85

Calls 8

IsWalletFlagSetMethod · 0.80
IsCryptedMethod · 0.80
formatFunction · 0.50
GetNameMethod · 0.45
FormatMethod · 0.45
IsHDEnabledMethod · 0.45
GetKeyPoolSizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected