Skip to content

Commit

Permalink
add r s v columns to txs (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
sslivkoff committed May 13, 2024
1 parent 24fc2f7 commit c0bf55a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/freeze/src/datasets/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ pub struct Transactions {
block_hash: Vec<Vec<u8>>,
chain_id: Vec<u64>,
timestamp: Vec<u32>,
r: Vec<Vec<u8>>,
s: Vec<Vec<u8>>,
v: Vec<u64>,
}

#[async_trait::async_trait]
Expand Down Expand Up @@ -227,6 +230,10 @@ pub(crate) fn process_transaction(
store!(schema, columns, timestamp, timestamp);
store!(schema, columns, block_hash, tx.block_hash.unwrap_or_default().as_bytes().to_vec());

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());

Ok(())
}

Expand Down

0 comments on commit c0bf55a

Please sign in to comment.