Skip to content

Commit

Permalink
feat: export rlp bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
emilianobonassi committed May 14, 2024
1 parent aa4674d commit 3385d63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/freeze/src/datasets/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub struct Transactions {
r: Vec<Vec<u8>>,
s: Vec<Vec<u8>>,
v: Vec<u64>,
rlp_bytes: Vec<Vec<u8>>,
}

#[async_trait::async_trait]
Expand Down Expand Up @@ -61,6 +62,10 @@ impl Dataset for Transactions {
"n_input_zero_bytes",
"n_input_nonzero_bytes",
"chain_id",
"v",
"r",
"s",
"rlp_bytes",
])
}

Expand Down Expand Up @@ -233,6 +238,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(())
}
Expand Down

0 comments on commit 3385d63

Please sign in to comment.