aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-07-18 12:15:53 -0400
committerAndrew Chow <github@achow101.com>2023-06-08 07:29:00 -0400
commite9379f1ffa7a4eebce397f1150317e840655e021 (patch)
treef45e1a3e2a8e658d123b2f814b64ab2687976fae /src
parentda9f62f912294de07a595df0b4898aba4be6b69c (diff)
downloadbitcoin-e9379f1ffa7a4eebce397f1150317e840655e021.tar.xz
rpc, wallet: Include information about blank flag
This allows us to test that the blank flag is being set appropriately.
Diffstat (limited to 'src')
-rw-r--r--src/wallet/rpc/wallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/rpc/wallet.cpp b/src/wallet/rpc/wallet.cpp
index d728b2fb96..d71359508d 100644
--- a/src/wallet/rpc/wallet.cpp
+++ b/src/wallet/rpc/wallet.cpp
@@ -68,6 +68,7 @@ static RPCHelpMan getwalletinfo()
}, /*skip_type_check=*/true},
{RPCResult::Type::BOOL, "descriptors", "whether this wallet uses descriptors for scriptPubKey management"},
{RPCResult::Type::BOOL, "external_signer", "whether this wallet is configured to use an external signer such as a hardware wallet"},
+ {RPCResult::Type::BOOL, "blank", "Whether this wallet intentionally does not contain any keys, scripts, or descriptors"},
RESULT_LAST_PROCESSED_BLOCK,
}},
},
@@ -130,6 +131,7 @@ static RPCHelpMan getwalletinfo()
}
obj.pushKV("descriptors", pwallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS));
obj.pushKV("external_signer", pwallet->IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER));
+ obj.pushKV("blank", pwallet->IsWalletFlagSet(WALLET_FLAG_BLANK_WALLET));
AppendLastProcessedBlock(obj, *pwallet);
return obj;