-
Notifications
You must be signed in to change notification settings - Fork 338
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: add various transaction endpoint and track pending transactions #1469
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a33d1b7
to
5936d42
Compare
198c100
to
9066f5e
Compare
144d721
to
4d5efee
Compare
02bd0b5
to
b415f42
Compare
b20305d
to
d177b5c
Compare
2ab0cb7
to
b1ae8fa
Compare
Thank you for this PR. Our users will love this one :) |
zelig
approved these changes
Jun 15, 2021
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.
Reviewed 15 of 15 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ralph-pichler)
metacertain
approved these changes
Jun 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a few transaction related endpoints useful for debugging and fixing potential transaction-related issues.
It builds on top of the functionality introduced in #1465 and adds the following debugapi endpoints:
GET /transactions
to get a list of transactions sent by bee which are neither confirmed nor provably cancelled (in other words "pending")GET /transactions/{hash}
to get details for a particular transaction (wether pending or not)POST /transactions/{hash}
to resend a transaction to the ethereum backend. This is useful if a pending transaction disappears from the eth network for some reason.To enable querying which transactions are actually pending, all sent transactions are monitored by default (using the machinery introduced in #1465). To make the output of the endpoints more useful some context has been added to the
TxRequest
definition.This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)