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

providers/ipc: fix Trinity IPC path to include 'ipcs-eth1' sub-dir #1563

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

veox
Copy link
Contributor

@veox veox commented Jan 8, 2020

What was wrong?

Trinity's jsonrpc.ipc socket has moved to a sub-dir quite some time ago. I believe the change was made in ethereum/trinity#8, >1y ago, and landed in trinity-v0.1.0-alpha.21.

This has not been updated (or documented), probably because Trinity's JSON-RPC support is still limited.

How was it fixed?

Point towards the new socket location now, and mention the fact in docs.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

Source: satinek@Pixabay

Trinity's `jsonrpc.ipc` socket has moved to a sub-dir quite some
time ago. This has not been updated (or documented), probably
because Trinity's JSON-RPC support is still limited.

Anyway, point towards the new socket location now, and mention
the fact in docs.
@@ -100,7 +100,7 @@ def get_default_ipc_path() -> str: # type: ignore
return ipc_path

base_trinity_path = Path('~').expanduser() / '.local' / 'share' / 'trinity'
ipc_path = str(base_trinity_path / 'mainnet' / 'jsonrpc.ipc')
Copy link
Contributor Author

@veox veox Jan 8, 2020

Choose a reason for hiding this comment

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

Question: should this perhaps remain, for compatibility with very old versions of Trinity?

It's also "technically" a backwards-incompatible change. I'm not sure web3.py would even work with versions that old, TBH; haven't checked.

Copy link
Member

Choose a reason for hiding this comment

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

No, at this point we're still in alpha and no need to preserve support for old versions since this can be done manually if people really need to connect to an old version.

@veox veox changed the title [WIP] providers/ipc: fix Trinity IPC path to include 'ipcs-eth1' sub-dir providers/ipc: fix Trinity IPC path to include 'ipcs-eth1' sub-dir Jan 8, 2020
@pipermerriam
Copy link
Member

Maybe backport to v4 if you're feeling ambitious @kclowes

@kclowes kclowes merged commit b50d616 into ethereum:master Jan 8, 2020
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.

3 participants