mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-19 12:10:19 +01:00
Merge #20198: Show name, format and if uses descriptors in bitcoin-wallet tool
fa4074b395Show name, format and if uses descriptors in bitcoin-wallet tool (Jonas Schnelli) Pull request description: ACKs for top commit: MarcoFalke: ACKfa4074b395jonatack: re-ACKfa4074b395Tree-SHA512: cf6ee96ff21532fc4b0ba7a0fdfdc1fa485c9b1495447350fe65cd0bd919e0e0280613933265cdee069b8c29ccf015ac374535a70cac3d4fb89f4d08b3a03519
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