wallet_api: add isDeterministic()

This commit is contained in:
tobtoht 2021-03-12 23:43:58 +01:00
parent b8f3e44a3f
commit 7c4e4c7603
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
3 changed files with 12 additions and 0 deletions

View file

@ -2104,6 +2104,11 @@ bool WalletImpl::watchOnly() const
return m_wallet->watch_only();
}
bool WalletImpl::isDeterministic() const
{
return m_wallet->is_deterministic();
}
void WalletImpl::clearStatus() const
{
boost::lock_guard<boost::mutex> l(m_statusMutex);

View file

@ -129,6 +129,7 @@ public:
void setRecoveringFromDevice(bool recoveringFromDevice) override;
void setSubaddressLookahead(uint32_t major, uint32_t minor) override;
bool watchOnly() const override;
bool isDeterministic() const override;
bool rescanSpent() override;
NetworkType nettype() const override {return static_cast<NetworkType>(m_wallet->nettype());}
void hardForkInfo(uint8_t &version, uint64_t &earliest_height) const override;

View file

@ -626,6 +626,12 @@ struct Wallet
*/
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
* @return