-
Notifications
You must be signed in to change notification settings - Fork 211
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
Add getTxStatus RPC #1111
Merged
Merged
Add getTxStatus RPC #1111
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0f79ca3
Add a getTxStatus RPC handler
eddyashton 16b1f57
Install it
eddyashton 8d87c21
Match schema
eddyashton c8c9265
Use getTxStatus in checker
eddyashton 6cad343
Use getTxStatus in election tests
eddyashton e727359
Merge branch 'master' into tx_status
eddyashton b565dd9
Add generated schema
eddyashton b04be8c
Use getTxStatus in while waiting for node catchup
eddyashton 872913f
Use getTxStatus from C++ perf client
eddyashton dd11635
getTxStatus should be executed locally
eddyashton 0b2d5af
Sig client doesn't need to be separate
eddyashton c0a3352
Update docs to recommend getTxStatus over getCommit
eddyashton 72495d8
Update docs, GET example commands
eddyashton c9bbdb9
User term.commit for consistency with other RPCs
eddyashton 4a93790
Add a comment on election subtleties
eddyashton 34e9335
Repeat schema changes everywhere
eddyashton c5ee24b
Reword TODO
eddyashton e5d17a1
Remove optional getCommit arg
eddyashton 671ca5d
Extend schema test to remove dead schema
eddyashton 57bd912
Merge branch 'master' into tx_status
eddyashton fc34db8
Remove reference to deleted file
eddyashton 42c575a
Merge branch 'master' into tx_status
achamayou 7fa516c
Refine statuses, add standalone unit test
eddyashton 8b11982
Extend unit test a little
eddyashton 795491f
Throw on known impossible cases
eddyashton 95753f2
Submit partial renames
eddyashton 1d0fa9e
Rename towards final names
eddyashton a36db0a
Flatten decision tree
eddyashton 68d3446
Expand renaming
eddyashton 76d3ab3
Detailed docs
eddyashton 9b974d0
Merge branch 'master' into tx_status
eddyashton 31f0b29
Formatting
eddyashton 7ccd2e9
Merge branch 'master' into tx_status
achamayou da07db8
Add current schema file
eddyashton 12834cb
Merge branch 'tx_status' of github.com:eddyashton/CCF into tx_status
eddyashton 8ac3d93
Merge remote-tracking branch 'upstream/master' into tx_status
25cd36b
Remove a few instances of global commit
01c880f
Add schemas
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"seqno": { | ||
"maximum": 4294967295, | ||
"minimum": 0, | ||
"type": "number" | ||
}, | ||
"view": { | ||
"maximum": 18446744073709551615, | ||
"minimum": 0, | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"view", | ||
"seqno" | ||
], | ||
"title": "tx/params", | ||
"type": "object" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"status": { | ||
"enum": [ | ||
"UNKNOWN", | ||
"PENDING", | ||
"COMMITTED", | ||
"INVALID" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"status" | ||
], | ||
"title": "tx/result", | ||
"type": "object" | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"seqno": { | ||
"maximum": 4294967295, | ||
"minimum": 0, | ||
"type": "number" | ||
}, | ||
"view": { | ||
"maximum": 18446744073709551615, | ||
"minimum": 0, | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"view", | ||
"seqno" | ||
], | ||
"title": "tx/params", | ||
"type": "object" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"status": { | ||
"enum": [ | ||
"UNKNOWN", | ||
"PENDING", | ||
"COMMITTED", | ||
"INVALID" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"status" | ||
], | ||
"title": "tx/result", | ||
"type": "object" | ||
} |
Oops, something went wrong.
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.
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.
That’s... a submarine TODO? I would suggest updating the headers ticket instead.