rpc, wallet: setwalletflags warnings are optional
Without this, trying to disable a wallet flag results in an Internal bug detected.
This commit is contained in:
1 parent
b69fd5eaa9
commit
17ab31aa46
1 file changed
+1
-1
@@ -257,7 +257,7 @@ static RPCHelpMan setwalletflag()
|
|||||||
{
|
{
|
||||||
{RPCResult::Type::STR, "flag_name", "The name of the flag that was modified"},
|
{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::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{
|
RPCExamples{
|
||||||
|
|||||||
Reference in new issue
Block a user