Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wallet2: move wallet error on RPC resp handling to wallet_errors file #9380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j-berman
Copy link
Collaborator

Supports consistent RPC error response handling between wallet2 and a new wallet lib

Credit to @jeffro256 for identifying the source of a syntax issue

Used in the Seraphis lib async scanner: UkoeHB#23

{
namespace error
{
static inline void throw_on_rpc_response_error(bool r, const epee::json_rpc::error &error, const std::string &status, const char *method)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, I would drop the static keyword here. This one should arguably be in a cpp anyway.

@selsta selsta added the wallet label Jun 27, 2024
@luigi1111
Copy link
Collaborator

@j-berman please rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants