Skip to content

Update the VAA hash to use payload hash #422

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

Merged

Conversation

ali-behjati
Copy link
Collaborator

Prior to this PR, we cached the VAAs and skipped them based on the entire VAA hash; Also we have a metric for counting distinct received VAAs. However, it seems that a VAA can have different signature sets and that will results in different hashes.

This PR changes the hash to the hash of the VAA payload which is always unique.

@ali-behjati ali-behjati requested a review from jayantk December 9, 2022 10:24
@ali-behjati ali-behjati merged commit 6e279c8 into main Dec 9, 2022
@ali-behjati ali-behjati deleted the price-service/update-vaa-hash-for-cache-and-metric branch December 9, 2022 13:53
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