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

feat: allow for connections to different hosts for wallet and full node #265

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

TheLastCicada
Copy link
Contributor

No description provided.

@@ -77,7 +77,7 @@ async def _get_rpc_client(
async def get_wallet_rpc_client() -> AsyncIterator[WalletRpcClient]:
async for _ in _get_rpc_client(
node_type=NodeType.WALLET,
self_hostname=settings.CHIA_HOSTNAME,
self_hostname=settings.CHIA_WALLET_HOSTNAME or settings.CHIA_HOSTNAME,
Copy link
Contributor

Choose a reason for hiding this comment

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

I would write this using ternary
self_hostname = setting.CHIA_WALLET_HOSTNAME if setting.CHIA_WALLET_HOSTNAME else settings.CHIA_HOSTNAME

although I'm not sure I have a good reason for it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a good reason for the way I was doing it either, so I changed it to your suggestion

@TheLastCicada TheLastCicada merged commit ab56f3b into develop Jan 13, 2025
39 checks passed
@TheLastCicada TheLastCicada deleted the zgb.custom-conn-strings branch January 13, 2025 18:03
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.

2 participants