Skip to content

Commit 7150467

Browse files
committed
add clarifying comment
1 parent 8a581dd commit 7150467

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

crates/scroll/alloy/evm/src/tx/compression.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,13 @@ mod tests {
250250
use alloy_primitives::{bytes, uint, U256};
251251

252252
#[test]
253-
fn test_compute_compression_ratio() -> eyre::Result<()> {
253+
fn test_compression() -> eyre::Result<()> {
254+
// Compute compression ratio and compressed size for each test case.
255+
// These test cases are meant to be shared between the Go and Rust implementations.
256+
// Note: Feynman's compression ratio is computed on the transaction payload,
257+
// while Galileo's compressed size is computed on the full RLP-encoded transaction.
258+
// In these compression tests we ignore this distinction.
259+
254260
// eth-transfer
255261
let bytes = bytes!("0x");
256262
let ratio = compute_compression_ratio(&bytes);

0 commit comments

Comments
 (0)