mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
wallet: add a getter for the filename path
This commit is contained in:
parent
c36cb54340
commit
657a70e004
5 changed files with 14 additions and 0 deletions
|
@ -399,6 +399,11 @@ std::string WalletImpl::integratedAddress(const std::string &payment_id) const
|
||||||
return m_wallet->get_account().get_public_integrated_address_str(pid, m_wallet->testnet());
|
return m_wallet->get_account().get_public_integrated_address_str(pid, m_wallet->testnet());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string WalletImpl::path() const
|
||||||
|
{
|
||||||
|
return m_wallet->path();
|
||||||
|
}
|
||||||
|
|
||||||
bool WalletImpl::store(const std::string &path)
|
bool WalletImpl::store(const std::string &path)
|
||||||
{
|
{
|
||||||
clearStatus();
|
clearStatus();
|
||||||
|
|
|
@ -64,6 +64,7 @@ public:
|
||||||
bool setPassword(const std::string &password);
|
bool setPassword(const std::string &password);
|
||||||
std::string address() const;
|
std::string address() const;
|
||||||
std::string integratedAddress(const std::string &payment_id) const;
|
std::string integratedAddress(const std::string &payment_id) const;
|
||||||
|
std::string path() const;
|
||||||
bool store(const std::string &path);
|
bool store(const std::string &path);
|
||||||
std::string filename() const;
|
std::string filename() const;
|
||||||
std::string keysFilename() const;
|
std::string keysFilename() const;
|
||||||
|
|
|
@ -2353,6 +2353,11 @@ void wallet2::check_genesis(const crypto::hash& genesis_hash) const {
|
||||||
THROW_WALLET_EXCEPTION_IF(genesis_hash != m_blockchain[0], error::wallet_internal_error, what);
|
THROW_WALLET_EXCEPTION_IF(genesis_hash != m_blockchain[0], error::wallet_internal_error, what);
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
std::string wallet2::path() const
|
||||||
|
{
|
||||||
|
return m_wallet_file;
|
||||||
|
}
|
||||||
|
//----------------------------------------------------------------------------------------------------
|
||||||
void wallet2::store()
|
void wallet2::store()
|
||||||
{
|
{
|
||||||
store_to("", "");
|
store_to("", "");
|
||||||
|
|
|
@ -332,6 +332,8 @@ namespace tools
|
||||||
*/
|
*/
|
||||||
void store_to(const std::string &path, const std::string &password);
|
void store_to(const std::string &path, const std::string &password);
|
||||||
|
|
||||||
|
std::string path() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief verifies given password is correct for default wallet keys file
|
* \brief verifies given password is correct for default wallet keys file
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -195,6 +195,7 @@ struct Wallet
|
||||||
virtual std::string errorString() const = 0;
|
virtual std::string errorString() const = 0;
|
||||||
virtual bool setPassword(const std::string &password) = 0;
|
virtual bool setPassword(const std::string &password) = 0;
|
||||||
virtual std::string address() const = 0;
|
virtual std::string address() const = 0;
|
||||||
|
virtual std::string path() const = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief integratedAddress - returns integrated address for current wallet address and given payment_id.
|
* \brief integratedAddress - returns integrated address for current wallet address and given payment_id.
|
||||||
|
|
Loading…
Reference in a new issue