Skip to content

Commit 17ab31a

Browse files
committed
rpc, wallet: setwalletflags warnings are optional
Without this, trying to disable a wallet flag results in an Internal bug detected.
1 parent b69fd5e commit 17ab31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpc/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static RPCHelpMan setwalletflag()
257257
{
258258
{RPCResult::Type::STR, "flag_name", "The name of the flag that was modified"},
259259
{RPCResult::Type::BOOL, "flag_state", "The new state of the flag"},
260-
{RPCResult::Type::STR, "warnings", "Any warnings associated with the change"},
260+
{RPCResult::Type::STR, "warnings", /*optional=*/true, "Any warnings associated with the change"},
261261
}
262262
},
263263
RPCExamples{

0 commit comments

Comments
 (0)