-
Notifications
You must be signed in to change notification settings - Fork 8
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
Node: Initial implementation and responses #66
Conversation
9c5b0d1
to
f3f4c28
Compare
f3f4c28
to
c630091
Compare
c630091
to
439db52
Compare
439db52
to
2c40064
Compare
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.
It looks good except some minor issues. I think it would be great to have a design doc or atleast an overview comment in main or elsewhere describing what jstz_node module does.
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.
Approved, but will trust you to address @alanmarkoTrilitech's comments
cc786d4
to
d151db5
Compare
2e375c7
to
67ad895
Compare
…point This commit creates the `jstz_node` binary: a HTTP server (using actix-web) with logging. Additionally it implements the GET /operations/<hash>/receipt endpoint (using `Rollup`) to read the receipt from the rollup node's durable storage.
67ad895
to
9ca3216
Compare
@alanmarkoTrilitech ping for reapproval |
I can't run cargo run --bin jstz-node due to this error:
|
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.
LGTM! I would still prefer though if there was an overview comment or design doc atleast for top level modules.
I'll add an asana task for a design doc of the |
Context
Related Tasks: Create a RPC node, Response Getter
The
jstz_node
will be a side-car service to the jstz rollup node. It's purpose will be communicating with the rollup using external messages, thekernel.log
file (which we will eventually refactor into a one-way channel), and reading storage from the rollup node.Description
Dependencies: #64, #77
This PR implements:
jstz_node
binary: a HTTP server (using actix-web) with logging.GET /operations/<hash>/receipt
endpoint (usingRollup
) to read the receipt from the rollup node's durable storageManually testing the PR
Using the hash
h
from the signed operation, curlhttp://localhost:8933/operations/<h>/receipt