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 00f00ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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,9 @@ impl Dataset for Transactions {
"n_input_zero_bytes",
"n_input_nonzero_bytes",
"chain_id",
"v",
"r",
"s"
])
}

Expand Down Expand Up @@ -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(())
}
Expand Down

0 comments on commit 00f00ab

Please sign in to comment.