aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-04-14 14:39:21 -0400
committerAndrew Chow <achow101-github@achow101.com>2022-04-14 14:39:21 -0400
commit17ab31aa46f7b5c265d07091fe45671ef2af6a9a (patch)
treed5c1caeb20e5aa9f4d140a2de852b8739e129f7a /src
parentb69fd5eaa99f84b62a49d7c7f48d8cee1227592a (diff)
downloadbitcoin-17ab31aa46f7b5c265d07091fe45671ef2af6a9a.tar.xz
rpc, wallet: setwalletflags warnings are optional
Without this, trying to disable a wallet flag results in an Internal bug detected.
Diffstat (limited to 'src')
-rw-r--r--src/wallet/rpc/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpc/wallet.cpp b/src/wallet/rpc/wallet.cpp
index 4baf16fdcb..1291663847 100644
--- a/src/wallet/rpc/wallet.cpp
+++ b/src/wallet/rpc/wallet.cpp
@@ -257,7 +257,7 @@ static RPCHelpMan setwalletflag()
{
{RPCResult::Type::STR, "flag_name", "The name of the flag that was modified"},
{RPCResult::Type::BOOL, "flag_state", "The new state of the flag"},
- {RPCResult::Type::STR, "warnings", "Any warnings associated with the change"},
+ {RPCResult::Type::STR, "warnings", /*optional=*/true, "Any warnings associated with the change"},
}
},
RPCExamples{