-
Notifications
You must be signed in to change notification settings - Fork 114
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(rpc): add getrawtransaction #3908
Conversation
78240ba
to
41c56d2
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.
I didnt checked eveything yet but leaving some feedback. All minor stuff.
Co-authored-by: teor <[email protected]> Co-authored-by: Alfredo Garcia <[email protected]>
Co-authored-by: Alfredo Garcia <[email protected]>
f3269fc
to
021f5e8
Compare
021f5e8
to
bada4e3
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.
This is completely optional, but I prefer try_into
over as
, because it catches bugs earlier.
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.
Thanks for the comments! I've rebased this and addressed them, but I'm still working on tests
This is now ready for final review. I couldn't come up with new tests other than a couple of proptests for failure cases in 1c3c081, and integration tests seem to require cached state (I thought of spinning both serves and getting a tx from e.g. the second block, but that seems redundant with the cached state test). I also tested manually with curl, e.g.
|
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 good to me, I'm happy for @oxarbitrage to resolve the discussions we both commented on.
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 good.
@Mergifyio update |
✅ Branch has been successfully updated |
Motivation
We need the
getrawtransaction
RPC in order to support lightwalletd.Specifications
Designs
Solution
getrawtransaction
Based on #3907
Closes #3145
Review
It's mostly complete, it's a draft just because I want to add more tests. But I'd welcome a initial review on the implementation.
Reviewer Checklist
Follow Up Work