Replace boost::optional with std::optional

This commit is contained in:
MarcoFalke 2020-06-05 23:02:44 +02:00
parent fa7e803f3e
commit fa4435e22f
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
7 changed files with 12 additions and 12 deletions

View file

@ -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()));