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

refactor: use new codecv4 interface #997

Open
wants to merge 37 commits into
base: develop
Choose a base branch
from

Conversation

colinlyguo
Copy link
Member

@colinlyguo colinlyguo commented Aug 21, 2024

1. Purpose or design rationale of this PR

Based on codec repo's simple factory pattern version (also after refactoring).

2. PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • refactor: A code change that doesn't fix a bug, or add a feature, or improves performance

rollup/rollup_sync_service/rollup_sync_service.go Outdated Show resolved Hide resolved
rollup/rollup_sync_service/rollup_sync_service.go Outdated Show resolved Hide resolved
return encoding.CodecV4 // codecv4: batches after DarwinV2
}
}

// decodeBlockRangesFromEncodedChunks decodes the provided chunks into a list of block ranges.
func decodeBlockRangesFromEncodedChunks(codecVersion encoding.CodecVersion, chunks [][]byte) ([]*rawdb.ChunkBlockRange, error) {
Copy link
Member

Choose a reason for hiding this comment

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

This function should belong to da-codec repo.

Base automatically changed from feat/rollup-verifier-codecv4 to develop August 23, 2024 06:50
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.

3 participants