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

[RPC server] - add get transaction endpoint #1447

Merged
merged 7 commits into from
Apr 19, 2022
Merged

[RPC server] - add get transaction endpoint #1447

merged 7 commits into from
Apr 19, 2022

Conversation

patrickkuo
Copy link
Contributor

@patrickkuo patrickkuo commented Apr 19, 2022

This PR add get_transaction to the GatewayAPI, RestAPI and JSON-RPC

Currently it return CertifiedTransactions, we can extend it to return SignedTransaction(signed unconfirmed) as well if needed.

*also replaced base64 with base64ct

@patrickkuo patrickkuo self-assigned this Apr 19, 2022
Base automatically changed from pat/jsonrpsee to main April 19, 2022 22:18
Copy link
Contributor

@stella3d stella3d 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, just left one minor question for clarity

@@ -986,6 +986,14 @@ impl<const ALL_OBJ_VER: bool, S: Eq + Serialize + for<'de> Deserialize<'de>>
Ok(transaction)
}

pub fn get_certified_transaction(
Copy link
Contributor

Choose a reason for hiding this comment

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

previously this worked without modifying the authority store - did something change that requires this ?

@stella3d stella3d merged commit 68849b4 into main Apr 19, 2022
@stella3d stella3d deleted the pat/tx_endpoint branch April 19, 2022 23:38
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.

2 participants