diff options
author | Jeffrey Ryan <jeffro256@tutanota.com> | 2023-01-28 01:20:13 -0600 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2023-04-25 10:18:20 -0500 |
commit | d2a591d7c6ddca053b887473c9deff52c19a1aee (patch) | |
tree | 69d140b0f8b0f51fbaba1aa65970c6e550ae751e /src/wallet/wallet_errors.h | |
parent | Merge pull request #8719 (diff) | |
download | monero-d2a591d7c6ddca053b887473c9deff52c19a1aee.tar.xz |
wallet, simplewallet: Drop support for mine-to-use RPC system
Using post-PR wallet with pre-PR node will generate error message specific to this PR and not generic "command failed" mesages.
Diffstat (limited to 'src/wallet/wallet_errors.h')
-rw-r--r-- | src/wallet/wallet_errors.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h index fb43d16b4..a2b248434 100644 --- a/src/wallet/wallet_errors.h +++ b/src/wallet/wallet_errors.h @@ -91,7 +91,7 @@ namespace tools // is_key_image_spent_error // get_histogram_error // get_output_distribution - // payment_required + // deprecated_rpc_access // wallet_files_doesnt_correspond // // * - class with protected ctor @@ -865,10 +865,11 @@ namespace tools } }; //---------------------------------------------------------------------------------------------------- - struct payment_required: public wallet_rpc_error + struct deprecated_rpc_access: public wallet_rpc_error { - explicit payment_required(std::string&& loc, const std::string& request) - : wallet_rpc_error(std::move(loc), "payment required", request) + // The daemon we connected to has enabled the old pay-to-access RPC feature + explicit deprecated_rpc_access(std::string&& loc, const std::string& request) + : wallet_rpc_error(std::move(loc), "daemon requires deprecated RPC payment", request) { } }; |