wallet: Refactor to use WalletLocation

Github-Pull: #14350
Rebased-From: 65f3672
This commit is contained in:
João Barbosa 2018-09-28 16:50:18 +01:00 committed by Anthony Fieroni
parent 595f5c3ca3
commit 3cf3002e9e
2 changed files with 3 additions and 0 deletions

View file

@ -2580,6 +2580,7 @@ static UniValue loadwallet(const JSONRPCRequest& request)
+ HelpExampleRpc("loadwallet", "\"test.dat\"")
},
}.Check(request);
WalletLocation location(request.params[0].get_str());
WalletLocation location(request.params[0].get_str());

View file

@ -913,6 +913,8 @@ public:
const WalletLocation& GetLocation() const { return m_location; }
const WalletLocation& GetLocation() const { return m_location; }
/** Get a name for this wallet for logging/debugging purposes.
*/
const std::string& GetName() const { return m_location.GetName(); }