-
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
wallet/owner_api: allow owner API port to be configurable #2475
Conversation
@@ -72,6 +74,7 @@ impl Default for WalletConfig { | |||
chain_type: Some(ChainTypes::Floonet), |
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.
Unrelated to your changes but shouldn't this be ChainTypes::Mainnet
?
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.
Looks like it should, yes.
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.
Good catch! Fixed in #2478
I suspected that too but I wasn't sure if there was a reason for it so I left it as-is. I think there's a few floonet remnants floating around the code, and will likely do another pr to resolve those. |
@@ -72,6 +74,7 @@ impl Default for WalletConfig { | |||
chain_type: Some(ChainTypes::Floonet), |
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.
Looks like it should, yes.
@ignopeverell Anything still blocking merging this? |
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 looks good.
It does get more awkward to run a wallet for floonet now. We have to remember to explicitly set the port correctly (there is no alternative floonet default config).
In the node global config we override mainnet global config with floonet specific defaults -
Lines 216 to 218 in 92cbfa2
match *chain_type { | |
global::ChainTypes::Mainnet => {} | |
global::ChainTypes::Floonet => { |
We should be able to do something similar in the wallet config, but I have not looked too closely.
I think this PR is worth merging now. Anybody using floonet can update their local floonet config for now.
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.
Lets merge this and we can work on the floonet defaults in a separate PR.
Adds an
owner_api_listen_port
to the grin-wallet.toml config to allow the port for the owner API to be changed on a per-wallet basis.Related issues/PRs:
#2328, #2405