-
Notifications
You must be signed in to change notification settings - Fork 0
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
RPC relay #25
RPC relay #25
Conversation
Remaining:
|
Also instead of calling |
Todo:
|
@sirn Noting down before I forget after the sleep... So I tried moving the deregistration to the node's exit process but the problem is that:
So I can think of 2 ways right now: a) Keep calling b) Call c) Or any better ideas? I'm currently in favor of a) because of the less false positives in exchange of cleaner code 😢 |
☝️ Force-pushed to rebase against latest master |
I'm going with a) in the meantime.
|
Changed my mind to b)
Reasons:
|
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.
Sorry for late review, but I like solution B better because it's cleaner and most of the time we probably don't want to reuse a resurrected node immediately.
For some reason the last commit wasn't signed. So here's a forced push |
Issue/Task Number: #5, #6
Closes #5
Closes #6
Overview
Basic Ethereum-flavored JSON-RPC request/response relay between Potterhat users and the nodes behind the scene.
Supports Parity for now.
Changes
PotterhatRPC
subapp.Implementation Details
This is a dumb relay to Ethereum nodes, meaning that discrepancies
between implementations like Geth v.s. Parity are not handled. It is up to the user to make sure
that either:
Cross-client support maybe considered for Potterhat in the future but it will take some time.
Usage
Make sure that these nodes are already running.
Run
mix run --no-halt
on PotterhatTry make RPC calls to potterhat, e.g.
You should see Ethereum-flavored, JSON-RPC response returned.
Impact
Meh.