From c37e6f4759604d662514772cf8a9ceb3c685a82a Mon Sep 17 00:00:00 2001 From: sergerad Date: Fri, 30 Aug 2024 15:45:29 +1200 Subject: [PATCH] B256 parent_digest --- rollup/src/block.rs | 2 +- rollup/src/sequencer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup/src/block.rs b/rollup/src/block.rs index 452de7b..7057d22 100644 --- a/rollup/src/block.rs +++ b/rollup/src/block.rs @@ -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, + pub parent_digest: Option, /// The root digest of the withdrawals Merkle tree. pub withdrawals_root: String, /// The root digest of the transactions Merkle tree. diff --git a/rollup/src/sequencer.rs b/rollup/src/sequencer.rs index 9b1b736..f193bdc 100644 --- a/rollup/src/sequencer.rs +++ b/rollup/src/sequencer.rs @@ -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()), };