| 99 | } |
| 100 | |
| 101 | static 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 | |
| 116 | bool ExecuteWalletToolFunc(const ArgsManager& args, const std::string& command) |
| 117 | { |
no test coverage detected