Skip to content

Commit

Permalink
B256 parent_digest
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Aug 30, 2024
1 parent 034132c commit c37e6f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct BlockHeader {
/// The timestamp at the time the block was sealed.
pub timestamp: u64,
/// The hash of the parent block. None if this is the genesis block.
pub parent_digest: Option<String>,
pub parent_digest: Option<B256>,
/// The root digest of the withdrawals Merkle tree.
pub withdrawals_root: String,
/// The root digest of the transactions Merkle tree.
Expand Down
2 changes: 1 addition & 1 deletion rollup/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Sequencer {
sequencer: self.signer.address,
number: self.blockchain.height(),
timestamp: block_time,
parent_digest: self.blockchain.head().map(|b| b.hash().to_string()),
parent_digest: self.blockchain.head().map(|b| b.hash()),
withdrawals_root: format!("{:x}", self.blockchain.withdrawals_tree.root()),
transactions_root: format!("{:x}", self.blockchain.transactions_tree.root()),
};
Expand Down

0 comments on commit c37e6f4

Please sign in to comment.