Merge pull request #1015

da32161 Use wallet2_api isAddressLocal utils method for isDaemonLocal check
This commit is contained in:
luigi1111
2018-03-13 16:14:08 -04:00
4 changed files with 10 additions and 23 deletions

View File

@@ -270,6 +270,11 @@ bool WalletManager::localDaemonSynced() const
return blockchainHeight() > 1 && blockchainHeight() >= blockchainTargetHeight();
}
bool WalletManager::isDaemonLocal(const QString &daemon_address) const
{
return Monero::Utils::isAddressLocal(daemon_address.toStdString());
}
QString WalletManager::resolveOpenAlias(const QString &address) const
{
bool dnssec_valid = false;

View File

@@ -111,6 +111,7 @@ public:
Q_INVOKABLE quint64 blockchainTargetHeight() const;
Q_INVOKABLE double miningHashRate() const;
Q_INVOKABLE bool localDaemonSynced() const;
Q_INVOKABLE bool isDaemonLocal(const QString &daemon_address) const;
Q_INVOKABLE bool isMining() const;
Q_INVOKABLE bool startMining(const QString &address, quint32 threads, bool backgroundMining, bool ignoreBattery);