mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Replace boost::optional with std::optional
This commit is contained in:
@@ -309,7 +309,7 @@ static RPCHelpMan getrawchangeaddress()
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, "Error: This wallet has no available keys");
|
||||
}
|
||||
|
||||
OutputType output_type = pwallet->m_default_change_type.get_value_or(pwallet->m_default_address_type);
|
||||
OutputType output_type = pwallet->m_default_change_type.value_or(pwallet->m_default_address_type);
|
||||
if (!request.params[0].isNull()) {
|
||||
if (!ParseOutputType(request.params[0].get_str(), output_type)) {
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Unknown address type '%s'", request.params[0].get_str()));
|
||||
|
||||
Reference in New Issue
Block a user