mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
Show name, format and if uses descriptors in bitcoin-wallet tool
This commit is contained in:
parent
f5bd46a4cc
commit
fa4074b395
2 changed files with 14 additions and 0 deletions
|
@ -95,6 +95,9 @@ static void WalletShowInfo(CWallet* wallet_instance)
|
||||||
LOCK(wallet_instance->cs_wallet);
|
LOCK(wallet_instance->cs_wallet);
|
||||||
|
|
||||||
tfm::format(std::cout, "Wallet info\n===========\n");
|
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, "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, "HD (hd seed available): %s\n", wallet_instance->IsHDEnabled() ? "yes" : "no");
|
||||||
tfm::format(std::cout, "Keypool Size: %u\n", wallet_instance->GetKeyPoolSize());
|
tfm::format(std::cout, "Keypool Size: %u\n", wallet_instance->GetKeyPoolSize());
|
||||||
|
|
|
@ -98,6 +98,10 @@ class ToolWalletTest(BitcoinTestFramework):
|
||||||
out = textwrap.dedent('''\
|
out = textwrap.dedent('''\
|
||||||
Wallet info
|
Wallet info
|
||||||
===========
|
===========
|
||||||
|
Name: \
|
||||||
|
|
||||||
|
Format: bdb
|
||||||
|
Descriptors: no
|
||||||
Encrypted: no
|
Encrypted: no
|
||||||
HD (hd seed available): yes
|
HD (hd seed available): yes
|
||||||
Keypool Size: 2
|
Keypool Size: 2
|
||||||
|
@ -137,6 +141,10 @@ class ToolWalletTest(BitcoinTestFramework):
|
||||||
out = textwrap.dedent('''\
|
out = textwrap.dedent('''\
|
||||||
Wallet info
|
Wallet info
|
||||||
===========
|
===========
|
||||||
|
Name: \
|
||||||
|
|
||||||
|
Format: bdb
|
||||||
|
Descriptors: no
|
||||||
Encrypted: no
|
Encrypted: no
|
||||||
HD (hd seed available): yes
|
HD (hd seed available): yes
|
||||||
Keypool Size: 2
|
Keypool Size: 2
|
||||||
|
@ -164,6 +172,9 @@ class ToolWalletTest(BitcoinTestFramework):
|
||||||
Topping up keypool...
|
Topping up keypool...
|
||||||
Wallet info
|
Wallet info
|
||||||
===========
|
===========
|
||||||
|
Name: foo
|
||||||
|
Format: bdb
|
||||||
|
Descriptors: no
|
||||||
Encrypted: no
|
Encrypted: no
|
||||||
HD (hd seed available): yes
|
HD (hd seed available): yes
|
||||||
Keypool Size: 2000
|
Keypool Size: 2000
|
||||||
|
|
Loading…
Add table
Reference in a new issue