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

Fetch and store transactions from pd storage #3473

Merged
merged 10 commits into from
Dec 5, 2023

Conversation

zbuc
Copy link
Member

@zbuc zbuc commented Dec 5, 2023

This removes pcli's reliance on the get_block_by_height method since it can't persist data after a chain upgrade occurs. Since it was only using this to fetch transaction data during sync, the transaction data is all that we need to record.

All block transactions will be recorded in nonverifiable storage in a new cometbft-data substore.

Closes #3451

@zbuc zbuc force-pushed the 3451_index_cometbft_blocks branch from 40ba5d5 to ac14d17 Compare December 5, 2023 18:52
Comment on lines +203 to +206
// An authorization hash for a Penumbra transaction.
message EffectHash {
bytes inner = 1;
}
Copy link
Member

Choose a reason for hiding this comment

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

Side note: I think we might want to split the effect hash code into its own crate, rather than putting it in the transaction crate. The reason is that all of the components need to be able to define their effecting data, but the overarching transaction crate depends on all the components.

Copy link
Member

@hdevalence hdevalence left a comment

Choose a reason for hiding this comment

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

This LGTM, thanks for getting it done.

@hdevalence hdevalence merged commit caa7802 into main Dec 5, 2023
5 checks passed
@hdevalence hdevalence deleted the 3451_index_cometbft_blocks branch December 5, 2023 23:29
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.

pd: index cometbft block data
2 participants