add gArgs

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-08-01 11:33:45 -05:00
parent fdf34ff655
commit 1a96452287
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -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) {