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

chore: bump default confirmation-depth 0->8 blocks #285

Merged
merged 5 commits into from
Feb 12, 2025

Conversation

samlaf
Copy link
Collaborator

@samlaf samlaf commented Feb 10, 2025

This is a very important change. Reorgs of 1 block are quite common and can cause a da cert to be submitted to the rollup inbox with a wrong confirmationBlock! It's important to wait a few blocks for the confirmBatch to have landed onchain before submitting the dacert to the batcher inbox.

Also added a troubleshooting guide and added info as to how to troubleshoot the batch-hash-mismatch error.

Should we set default to finalized instead of 8? That might greatly impact the throughput of rollups, and iirc the longest reorg that ever happened on pos was on goerli and was something like 7 or 8 blocks long.

Fixes Issue

Fixes #

Changes proposed

Screenshots (Optional)

Note to reviewers

This is a very important change. Reorgs of 1 block are quite common and can cause a da cert to be submitted to the rollup inbox with a wrong confirmationBlock! It's important to wait a few blocks for the confirmBatch to have landed onchain before submitting the dacert to the batcher inbox.
@samlaf samlaf marked this pull request as draft February 10, 2025 22:11
@samlaf samlaf marked this pull request as ready for review February 11, 2025 17:46
@samlaf samlaf changed the title chore: change default confirmation-depth to 5 blocks (from 0 blocks) chore: bump default confirmation-depth 0->8 blocks Feb 11, 2025
```bash
DISPERSER_ENDPOINT=disperser-holesky.eigenda.xyz:443
# Get the request_id from your batcher's proxy logs
REQUEST_ID=05cb90531098964cc73f0e6b782f52f3b4387e3aed3ef6b89cd9a3c118dd781e-313733393032373134323137353330363738362f302f33332f312f33332fe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we actually log it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

probably... how else would the rollups get it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

They might have done some local change

RLP_ENCODED_CERT=${OP_ALTDA_COMMITMENT:6}
cast --from-rlp $RLP_ENCODED_CERT | jq
```
Unfortunately `cast --from-rlp` doesn't currently support schemas, so you will have to compare the arrays-of-hex-strings output to the [BlobInfo](https://github.com/Layr-Labs/eigenda/blob/f305e046ae3e611e19c15e134571cc2ec83062b4/api/proto/disperser/disperser.proto#L178) schema (note that [CertV1 === BlobInfo](https://github.com/Layr-Labs/eigenda-proxy/blob/97b71bda6e2136a6c0d71be2f7e9642dc840fefc/verify/certificate.go#L31)).
Copy link
Collaborator

Choose a reason for hiding this comment

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

shall we create a tool for parsing the Cert?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember Emiliano has the tool, but it isn't difficult to write

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i think we should extend (and rename) kzgpad to have all of these kindsa of tools yes

@samlaf samlaf merged commit fe4ad26 into main Feb 12, 2025
10 checks passed
@samlaf samlaf deleted the chore--change-default-confirmation-depth-to-5-blocks branch February 12, 2025 22: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.

2 participants