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

Add rpc call to get current addresses for our node #857

Merged
merged 5 commits into from
Oct 10, 2019

Conversation

michael-loki
Copy link
Contributor

Builds on top of #856

Also, add the ability to use libcurl to hit the jsonrpc endpoint (the libcurl dependency is optional, if it's not available on the system, support simply isn't compiled in).

("h,help", "help", cxxopts::value<bool>())
("j,json", "output in json", cxxopts::value<bool>())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

based on feedback from @jagerman, the non-json output isn't that useful, so make it the default.

Comment on lines 481 to 485
#ifdef _WIN32
fs::path homedir = fs::path(getenv("APPDATA"));
#else
fs::path homedir = fs::path(getenv("HOME"));
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

can these be const ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

@majestrate
Copy link
Contributor

looks like ci wants the package: libcurl4-openssl-dev not libcurl-dev

@majestrate majestrate merged commit 2cf1045 into oxen-io:dev Oct 10, 2019
@michael-loki michael-loki deleted the rcutil_curl branch October 10, 2019 22:34
@despair86
Copy link
Contributor

despair86 commented Oct 11, 2019

we should make it look for the libcurl in win32-setup/* for win32 builds
(the installer build system which i'm still working on automating pulls a copy of libcurl and builds it on-demand)

@necro-nemesis
Copy link

Glad to see this.

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