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

op-batcher: Move decision about data availability type to channel submission time #12002

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

Conversation

geoknee
Copy link
Contributor

@geoknee geoknee commented Sep 19, 2024

Closes #11609

For now, I decided to not make any changes to the decision logic itself (only to when it is triggered and what happens when a change is necessary).

Changing the trigger for the decision opens the opportunity to make a more accurate decision about which DA type to choose, since some transaction data is now in scope. However, this would not address the larger assumption in the current logic, which is about how many blobs are typically included in a tx. This can be lower than the target number on chains with low throughput as channels must be closed before they time out. To address this assumption, we could store the previous number of blobs per tx to make a better estimate than the current one (which assumes we always include the target number). This is saved for future work.

Tests: the modified implementation passes existing tests, including an end to end test for switching DA type.

instead of channel creation time

Also, cache the ChannelConfig whenever we switch DA type so it is used by default for new channels
@geoknee geoknee requested review from a team as code owners September 19, 2024 13:15
@geoknee geoknee mentioned this pull request Sep 19, 2024
@sebastianst sebastianst removed the request for review from bitwiseguy September 19, 2024 16:46
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.

op-batcher: Assess da-type choice when submitting a channel
1 participant