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 get_rpc_status func to RPC server definition file #9379

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

j-berman
Copy link
Collaborator

Supports consistent RPC status handling between wallet2 and a new wallet lib

Used in the Seraphis lib async scanner: UkoeHB#23

@@ -80,6 +80,19 @@ namespace cryptonote
#define CORE_RPC_STATUS_NOT_MINING "NOT MINING"
#define CORE_RPC_STATUS_PAYMENT_REQUIRED "PAYMENT REQUIRED"

static inline const std::string get_rpc_status(const bool trusted_daemon, const std::string &s)
Copy link
Contributor

Choose a reason for hiding this comment

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

If you drop the static keyword, the linker will merge multiple potential copies in the runtime binary. Otherwise, each compilation unit will have its own copy, and I don't see a good reason for this.

@selsta selsta added the wallet label Jun 27, 2024
@luigi1111 luigi1111 merged commit 8dbbc47 into monero-project:master Jul 16, 2024
18 checks passed
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