Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wallet2_api isAddressLocal utils method for isDaemonLocal check #1015

Merged
merged 1 commit into from
Mar 13, 2018
Merged

Use wallet2_api isAddressLocal utils method for isDaemonLocal check #1015

merged 1 commit into from
Mar 13, 2018

Conversation

Timo614
Copy link
Contributor

@Timo614 Timo614 commented Dec 11, 2017

Fixes #939 by using wallet2_api's isAddressLocal method which confirms whether the address passed in is a local address or not. It calls is_local_address internally which the associated issue was referencing.

I tested this by connecting to a remote node and confirmed that I saw the mining warnings that are not visible for local nodes. I also confirmed that when using the remote connect logic pointing to localhost or 127.0.0.1 it was still treated as a local node from a warning perspective.

(Note: if testing it looks like if you have a node up in the default port 18081 for mainnet or 28082 for testnet the remote node is ignored so I tested the local nodes treated as remote by running them on different ports)

local-node
remote-node

Copy link
Contributor

@moneromooo-monero moneromooo-monero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing false on empty string seems odd, I think the GUI uses a local daemon if none is selected, so while this PR is good, one more change might be needed.

@luigi1111 luigi1111 merged commit da32161 into monero-project:master Mar 13, 2018
luigi1111 added a commit that referenced this pull request Mar 13, 2018
da32161 Use wallet2_api isAddressLocal utils method for isDaemonLocal check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants