From 00f00ab569ee438b750034de4b5c4fcf02410d1f Mon Sep 17 00:00:00 2001 From: Emiliano Bonassi Date: Mon, 13 May 2024 17:26:43 -0700 Subject: [PATCH] feat: export rlp bytes --- crates/freeze/src/datasets/transactions.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/freeze/src/datasets/transactions.rs b/crates/freeze/src/datasets/transactions.rs index cdb933b..12d1d80 100644 --- a/crates/freeze/src/datasets/transactions.rs +++ b/crates/freeze/src/datasets/transactions.rs @@ -32,6 +32,7 @@ pub struct Transactions { r: Vec>, s: Vec>, v: Vec, + rlp_bytes: Vec> } #[async_trait::async_trait] @@ -61,6 +62,9 @@ impl Dataset for Transactions { "n_input_zero_bytes", "n_input_nonzero_bytes", "chain_id", + "v", + "r", + "s" ]) } @@ -233,6 +237,7 @@ pub(crate) fn process_transaction( store!(schema, columns, v, tx.v.as_u64()); store!(schema, columns, r, tx.r.to_vec_u8()); store!(schema, columns, s, tx.s.to_vec_u8()); + store!(schema, columns, rlp_bytes, tx.rlp().to_vec()); Ok(()) }