aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2022-02-10 03:23:47 +0200
committerKristaps Kaupe <kristaps@blogiem.lv>2022-02-10 03:23:47 +0200
commitb75f4c89ec4d33a3014ccd5151964881b5e0aa1c (patch)
treed82ec62162ddba1c662a392fc036e3ab0b0ed218 /src/wallet
parent8c0f02c69d50761c3a6d4dfb5d7cba43a00a55ae (diff)
downloadbitcoin-b75f4c89ec4d33a3014ccd5151964881b5e0aa1c.tar.xz
RPC: Return external_signer in getwalletinfo
Diffstat (limited to 'src/wallet')
-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 33ec715b51..883a3c102b 100644
--- a/src/wallet/rpc/wallet.cpp
+++ b/src/wallet/rpc/wallet.cpp
@@ -57,6 +57,7 @@ static RPCHelpMan getwalletinfo()
{RPCResult::Type::NUM, "progress", "scanning progress percentage [0.0, 1.0]"},
}},
{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"},
}},
},
RPCExamples{
@@ -117,6 +118,7 @@ static RPCHelpMan getwalletinfo()
obj.pushKV("scanning", false);
}
obj.pushKV("descriptors", pwallet->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS));
+ obj.pushKV("external_signer", pwallet->IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER));
return obj;
},
};