celo-org / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
3 stars 2 forks source link

Enable Proto-Danksharding on testnet #97

Closed palango closed 1 month ago

palango commented 5 months ago

Enable proto-danksharding on the testnet

jcortejoso commented 1 month ago

I've tested this on different testnets, with Holesky as Layer1. It seems to work as expected (well). Some lessons:

Example of batcher transactions with different blob gas price conditions: High gas Fee: image Low/Normal gas fee: image

palango commented 1 month ago

We need a Beacon Node provider for op-node syncing using blob data. So far the more reliable (and with a free-usage option) is https://www.rockx.com/. Using other providers (publicnode free holesky beacon endpoint) caused some issues.

For full syncing nodes we also might need a blob archive node: https://docs.optimism.io/builders/node-operators/management/blobs#configure-a-blob-archiver-archive-nodes See #232 and #233 for the respective issues.

Regarding costs, I assume it's still cheaper than posting it as call data?

jcortejoso commented 1 month ago

For full syncing nodes we also might need a blob archive node: https://docs.optimism.io/builders/node-operators/management/blobs#configure-a-blob-archiver-archive-nodes

Yes, exactly (op-node fullsync)

Regarding costs, I assume it's still cheaper than posting it as call data?

In most and what we probably could say "expected" conditions, blob data should be cheaper than calldata (particularly on Mainnet). But I guess there can be conditions where it can be more expensive to use blob data depending on network conditions, activity on L2 and missconfigurations on your batcher. As summary things I've learned:

But I think in "normal" conditions we can expect blob DA to be cheaper than calldata DA. Also my initial guess to me is that blob DA throughput can be higher that calldata throughput, in case of very high activity on L2.

Also as a summary recommendation: