diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-05 23:02:44 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-12-19 09:46:55 +0100 |
commit | fa4435e22f78f632a455016ce00a357009aac059 (patch) | |
tree | 2880dcbc02b4c6612c08759c1c4f7304a7328b53 /src/wallet/rpcwallet.cpp | |
parent | fa7e803f3e4df33117927aef6fef9bfaee4f410d (diff) | |
download | bitcoin-fa4435e22f78f632a455016ce00a357009aac059.tar.xz |
Replace boost::optional with std::optional
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 614ebd22f6..ae4e8f2898 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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())); |