forked from Public/monero-gui
Merge pull request #1015
da32161 Use wallet2_api isAddressLocal utils method for isDaemonLocal check
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user