forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
In the Galileo upgrade, we introduced a new rollup fee formula that includes the compressed transaction size as one of its parameters. This was added in scroll-tech/scroll-revm#65 and #355.
In Feynman, we're using zstd(tx.data) (for the compression ratio), while in Galileo we're using zstd(rlp(tx)) (for the compressed size). Because the compressed data is different, we cannot combine this into a single operation, and must compress twice.
To avoid compressing twice, we should only compute compression_ratio for Feynman transactions, and only compute compressed_size for Galileo transactions.
Additional context
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request