-
Notifications
You must be signed in to change notification settings - Fork 27
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 get_transaction_status to chain_plugin #145
Merged
brianjohnson5972
merged 10 commits into
feature/oci_api_phase1
from
enfs-30-pwo-get-transaction-status
Apr 27, 2022
Merged
Add get_transaction_status to chain_plugin #145
brianjohnson5972
merged 10 commits into
feature/oci_api_phase1
from
enfs-30-pwo-get-transaction-status
Apr 27, 2022
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
Update finality status to have timestamps and trx expiration Enable trx finality status processing feature Update test Update chain_plugin to make use of actual chain_state and trx_state Fix unit tests
heifner
reviewed
Apr 27, 2022
heifner
reviewed
Apr 27, 2022
plugins/chain_plugin/include/eosio/chain_plugin/chain_plugin.hpp
Outdated
Show resolved
Hide resolved
Callback registration lambdas are now wired fully from the initial stubs. Updated docs with example transaction status output
brianjohnson5972
suggested changes
Apr 27, 2022
plugins/chain_plugin/include/eosio/chain_plugin/chain_plugin.hpp
Outdated
Show resolved
Hide resolved
Remove enabling transaction finality status feature from previous feature testing effort.
brianjohnson5972
approved these changes
Apr 27, 2022
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.
Adding a feature that allows querying the status of a transaction on the chain.
Support for the feature added in cleos via subcommand:
get transaction-status <transaction_id>
Feature takes a transaction_id as input and outputs chain status and, if available, transaction status in the following format:
{ "state": "IN_BLOCK", "block_number": 90, "block_id": "0000005accfd59ba80a05380f60d51687406337b2aedd28b7daa33fdb8c16b5a", "block_timestamp": "2022-04-27T16:11:26.500", "expiration": "2022-04-27T16:11:56.000", "head_number": 186, "head_id": "000000bab27da51f76f483bb629b532510c22e2eb1acc632f5b37b421adecf63", "head_timestamp": "2022-04-27T16:12:14.500", "irreversible_number": 25, "irreversible_id": "0000001922118216bc16bf2c60d950598d80af3beca820eab751f7beecdb29e4", "irreversible_timestamp": "2022-04-27T16:10:54.000", "last_tracked_block_id": "000000129cee97f3e27312f0184d52d006a470f0e620553dfb4c5b4f3c856ab2" }
Transaction Status:
state
with values of:UNKNOWN
,FAILED
,FORKED_OUT
,LOCALLY_APPLIED
,IN_BLOCK
,IRREVERSIBLE
.block_number
,block_id
, andblock_timestamp
. The transaction’s expiration date asexpiration
Chain Status:
head_number
,head_id
, andhead_timestamp
.irreversible_number
,irreversible_id
, andirreversible_timestamp
.last_tracked_block_id