diff --git a/crates/freeze/src/datasets/transactions.rs b/crates/freeze/src/datasets/transactions.rs index afec6a29..54f3b8b1 100644 --- a/crates/freeze/src/datasets/transactions.rs +++ b/crates/freeze/src/datasets/transactions.rs @@ -25,6 +25,7 @@ pub struct Transactions { n_input_bytes: Vec, n_input_zero_bytes: Vec, n_input_nonzero_bytes: Vec, + n_rlp_bytes: Vec, block_hash: Vec>, chain_id: Vec, timestamp: Vec, @@ -212,6 +213,7 @@ pub(crate) fn process_transaction( store!(schema, columns, n_input_zero_bytes, n_input_zero_bytes); store!(schema, columns, n_input_nonzero_bytes, n_input_bytes - n_input_zero_bytes); } + store!(schema, columns, n_rlp_bytes, tx.rlp().len() as u32); store!(schema, columns, gas_used, receipt.and_then(|r| r.gas_used.map(|x| x.as_u64()))); store!(schema, columns, gas_price, tx.gas_price.map(|gas_price| gas_price.as_u64())); store!(schema, columns, transaction_type, tx.transaction_type.map(|value| value.as_u32()));