Skip to content

Commit

Permalink
rebase and bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
debjit-bw committed Dec 3, 2024
1 parent 506b5b1 commit 5ecad5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/testing/cases/blockchain_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ impl Case for BlockchainTestCase {
// Decode and insert blocks, creating a chain of blocks for the test case.
let last_block = case.blocks.iter().try_fold(None, |_, block| {
let decoded = SealedBlock::decode(&mut block.rlp.as_ref())?;
dbg!(
"printing block during insertion: {:?}",
decoded.clone().try_seal_with_senders().unwrap()
);
provider.insert_historical_block(
decoded.clone().try_seal_with_senders().unwrap(),
)?;
Expand Down
3 changes: 3 additions & 0 deletions src/testing/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ pub struct Header {
pub parent_beacon_block_root: Option<B256>,
/// Requests root.
pub requests_root: Option<B256>,
/// Target blobs per block.
pub target_blobs_per_block: Option<U256>,
}

impl From<Header> for SealedHeader {
Expand All @@ -114,6 +116,7 @@ impl From<Header> for SealedHeader {
excess_blob_gas: value.excess_blob_gas.map(|v| v.to::<u64>()),
parent_beacon_block_root: value.parent_beacon_block_root,
requests_hash: value.requests_root,
target_blobs_per_block: value.target_blobs_per_block.map(|v| v.to::<u64>()),
};
Self::new(header, value.hash)
}
Expand Down

0 comments on commit 5ecad5d

Please sign in to comment.