Skip to content

Commit

Permalink
fixup! RPC: getrpcwhitelist: Return all methods (or none) if no expli…
Browse files Browse the repository at this point in the history
…cit whitelist defined
  • Loading branch information
luke-jr committed Mar 6, 2024
1 parent fb6d7b7 commit 542fcfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/httprpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ void StopHTTPRPC()
}
}

const std::set<std::string> GetWhitelistedRpcs(const std::string& user_name)
std::set<std::string> GetWhitelistedRpcs(const std::string& user_name)
{
if (auto it = g_rpc_whitelist.find(user_name); it != g_rpc_whitelist.end()) {
return it->second;
Expand Down
2 changes: 1 addition & 1 deletion src/httprpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ void StopREST();

/** Returns a collection of whitelisted RPCs for the given user
*/
const std::set<std::string> GetWhitelistedRpcs(const std::string& user_name);
std::set<std::string> GetWhitelistedRpcs(const std::string& user_name);

#endif // BITCOIN_HTTPRPC_H

0 comments on commit 542fcfe

Please sign in to comment.