add gArgs
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
fdf34ff655
commit
1a96452287
@ -257,7 +257,7 @@ UniValue CallRPC(const std::string& strMethod, const UniValue& params)
|
||||
|
||||
// check if we should use a special wallet endpoint
|
||||
std::string endpoint = "/";
|
||||
std::string walletName = GetArg("-usewallet", "");
|
||||
std::string walletName = gArgs.GetArg("-usewallet", "");
|
||||
if (!walletName.empty()) {
|
||||
char *encodedURI = evhttp_uriencode(walletName.c_str(), walletName.size(), false);
|
||||
if (encodedURI) {
|
||||
|
Loading…
Reference in New Issue
Block a user