wallet: Refactor to use WalletLocation
Github-Pull: #14350
Rebased-From: 65f3672
This commit is contained in:
parent
595f5c3ca3
commit
3cf3002e9e
2 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
|
@ -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(); }
|
||||
|
|
Loading…
Reference in a new issue