mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-10 20:53:50 +01:00
Show name, format and if uses descriptors in bitcoin-wallet tool
This commit is contained in:
@@ -95,6 +95,9 @@ static void WalletShowInfo(CWallet* wallet_instance)
|
||||
LOCK(wallet_instance->cs_wallet);
|
||||
|
||||
tfm::format(std::cout, "Wallet info\n===========\n");
|
||||
tfm::format(std::cout, "Name: %s\n", wallet_instance->GetName());
|
||||
tfm::format(std::cout, "Format: %s\n", wallet_instance->GetDatabase().Format());
|
||||
tfm::format(std::cout, "Descriptors: %s\n", wallet_instance->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS) ? "yes" : "no");
|
||||
tfm::format(std::cout, "Encrypted: %s\n", wallet_instance->IsCrypted() ? "yes" : "no");
|
||||
tfm::format(std::cout, "HD (hd seed available): %s\n", wallet_instance->IsHDEnabled() ? "yes" : "no");
|
||||
tfm::format(std::cout, "Keypool Size: %u\n", wallet_instance->GetKeyPoolSize());
|
||||
|
||||
Reference in New Issue
Block a user