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

prototype: compact blocks #1180

Closed
wants to merge 2 commits into from
Closed

prototype: compact blocks #1180

wants to merge 2 commits into from

Conversation

cmwaters
Copy link
Contributor

This PR is predominantly for explanatory purposes. It shows a minimal prototype for compact blocks leveraging the CAT pool

Copy link
Contributor Author

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

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

I've hardcoded the v2 mempool but tbh we could still have the v1 and v0 which would simply disable compact blocks

Comment on lines +81 to +91
// StandardTxFetcher implements TxFetcher. Unlike the CATPool, it gossips the entire transaction set
// instead of the set of keys. This aligns with Tendermint's vanilla block propagation method
type StandardTxFetcher struct{}

func (tf *StandardTxFetcher) FetchKeysFromTxs(_ context.Context, txs [][]byte) ([][]byte, error) {
return txs, nil
}

func (tf *StandardTxFetcher) FetchTxsFromKeys(_ context.Context, _ []byte, txs [][]byte) ([][]byte, error) {
return txs, nil
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using this allows us to preserve the previous behaviour

@cmwaters cmwaters closed this Jan 25, 2024
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