-
Notifications
You must be signed in to change notification settings - Fork 992
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
Change owner API port for MainNet #2405
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fix for mainnet but should really needs to be configurable via toml file?
Otherwise we're just going to break floonet.
I could make the port configurable (But not the address, since that looks to be part of a wider discussion around HTTPS and running owner API outside of localhost) which solves this issue for now? |
Oh I see - normally we configure the whole thing (ip+port). But here we need to limit it to the port. I think we should do this yes, following the existing config approach as closely as possible but for the port only. Otherwise we fix it for mainnet and immediately break it for floonet for anyone running both on the same system (and having floonet pointing at hard-coded mainnet port is arguably worse). |
Right, so a basic |
That would be the pragmatic approach for |
@thedevworks Good initiative! Find |
Thanks, I've updated to set the port based on is_floonet. I have tested with a fresh node and wallet with and without --floonet parameter, and the port is selected as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…ainnet owner_apis to run in parallell on a single server, with ports 13420 or 3420
* fix owner_api docs: wrong port number * update ports since PR #2405. We now allow both floo and mainnet owner_apis to run in parallell on a single server, with ports 13420 or 3420 * correction since there is no --mainnet flag * fixes the comment by @karkagis
I do think that the owner API port should be configurable, and not hard coded to I'm happy to make a PR for the change if you wish. |
* Change owner API port for MainNet * Added owner_api port selector based on is_floonet
* Change owner API port for MainNet * Added owner_api port selector based on is_floonet
* fix owner_api docs: wrong port number * update ports since PR mimblewimble#2405. We now allow both floo and mainnet owner_apis to run in parallell on a single server, with ports 13420 or 3420 * correction since there is no --mainnet flag * fixes the comment by @karkagis
Fixes #2389 ?