mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #6902
70eb0d1
wallet2_api: implement stop() to interrupt refresh() loop once (xiphon)
This commit is contained in:
commit
8b3b106ad1
3 changed files with 11 additions and 0 deletions
|
@ -910,6 +910,11 @@ std::string WalletImpl::path() const
|
||||||
return m_wallet->path();
|
return m_wallet->path();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WalletImpl::stop()
|
||||||
|
{
|
||||||
|
m_wallet->stop();
|
||||||
|
}
|
||||||
|
|
||||||
bool WalletImpl::store(const std::string &path)
|
bool WalletImpl::store(const std::string &path)
|
||||||
{
|
{
|
||||||
clearStatus();
|
clearStatus();
|
||||||
|
|
|
@ -99,6 +99,7 @@ public:
|
||||||
std::string publicSpendKey() const override;
|
std::string publicSpendKey() const override;
|
||||||
std::string publicMultisigSignerKey() const override;
|
std::string publicMultisigSignerKey() const override;
|
||||||
std::string path() const override;
|
std::string path() const override;
|
||||||
|
void stop() override;
|
||||||
bool store(const std::string &path) override;
|
bool store(const std::string &path) override;
|
||||||
std::string filename() const override;
|
std::string filename() const override;
|
||||||
std::string keysFilename() const override;
|
std::string keysFilename() const override;
|
||||||
|
|
|
@ -507,6 +507,11 @@ struct Wallet
|
||||||
*/
|
*/
|
||||||
virtual std::string publicMultisigSignerKey() const = 0;
|
virtual std::string publicMultisigSignerKey() const = 0;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief stop - interrupts wallet refresh() loop once (doesn't stop background refresh thread)
|
||||||
|
*/
|
||||||
|
virtual void stop() = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief store - stores wallet to file.
|
* \brief store - stores wallet to file.
|
||||||
* \param path - main filename to store wallet to. additionally stores address file and keys file.
|
* \param path - main filename to store wallet to. additionally stores address file and keys file.
|
||||||
|
|
Loading…
Reference in a new issue