mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #7542
7c4e4c7
wallet_api: add isDeterministic() (tobtoht)
This commit is contained in:
commit
1a8b6ba8c0
@ -2104,6 +2104,11 @@ bool WalletImpl::watchOnly() const
|
|||||||
return m_wallet->watch_only();
|
return m_wallet->watch_only();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool WalletImpl::isDeterministic() const
|
||||||
|
{
|
||||||
|
return m_wallet->is_deterministic();
|
||||||
|
}
|
||||||
|
|
||||||
void WalletImpl::clearStatus() const
|
void WalletImpl::clearStatus() const
|
||||||
{
|
{
|
||||||
boost::lock_guard<boost::mutex> l(m_statusMutex);
|
boost::lock_guard<boost::mutex> l(m_statusMutex);
|
||||||
|
@ -129,6 +129,7 @@ public:
|
|||||||
void setRecoveringFromDevice(bool recoveringFromDevice) override;
|
void setRecoveringFromDevice(bool recoveringFromDevice) override;
|
||||||
void setSubaddressLookahead(uint32_t major, uint32_t minor) override;
|
void setSubaddressLookahead(uint32_t major, uint32_t minor) override;
|
||||||
bool watchOnly() const override;
|
bool watchOnly() const override;
|
||||||
|
bool isDeterministic() const override;
|
||||||
bool rescanSpent() override;
|
bool rescanSpent() override;
|
||||||
NetworkType nettype() const override {return static_cast<NetworkType>(m_wallet->nettype());}
|
NetworkType nettype() const override {return static_cast<NetworkType>(m_wallet->nettype());}
|
||||||
void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const override;
|
void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const override;
|
||||||
|
@ -626,6 +626,12 @@ struct Wallet
|
|||||||
*/
|
*/
|
||||||
virtual bool watchOnly() const = 0;
|
virtual bool watchOnly() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief isDeterministic - checks if wallet keys are deterministic
|
||||||
|
* @return - true if deterministic
|
||||||
|
*/
|
||||||
|
virtual bool isDeterministic() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief blockChainHeight - returns current blockchain height
|
* @brief blockChainHeight - returns current blockchain height
|
||||||
* @return
|
* @return
|
||||||
|
Loading…
Reference in New Issue
Block a user