Skip to content
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 convenience API for getting transaction ID without ConsensusParameters #419

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

Voxelot
Copy link
Member

@Voxelot Voxelot commented Apr 7, 2023

Since checked transactions are guaranteed to have computed all relevant metadata, this PR adds an infallible API to enable fetching the cached transaction ID for Checked<Tx> types.

This cleans up a lot of places in FuelLabs/fuel-core#1107 where the consensus parameters would have to be routed even though the transaction id is already known (mainly executor and txpool since they use checked transactions).

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@Voxelot Voxelot added this pull request to the merge queue Apr 7, 2023
Merged via the queue into master with commit 6dcb0ac Apr 7, 2023
@Voxelot Voxelot deleted the Voxelot/cached-id branch April 7, 2023 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant