Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Oct 26, 2024
1 parent 347522d commit f2566ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/eras/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ impl BlockHeaderGenesis {
/// A `BlockHeaderGenesis` instance containing the parsed and validated block header data.
pub fn from_db_header(db_header: VerifiableBlockHeader) -> Self {
let logs_bloom = <Self as BlockHeaderTrait>::hex_to_fixed_array::<256>(
&db_header.logs_bloom.unwrap_or_default(),
&db_header.logs_bloom.clone().unwrap_or_default(),
);
let nonce = <Self as BlockHeaderTrait>::hex_to_fixed_array::<8>(&db_header.nonce);
let nonce = <Self as BlockHeaderTrait>::hex_to_fixed_array::<8>(&db_header.nonce.clone());

println!("DB Header Parent Hash: {:#?}", db_header.parent_hash);

BlockHeaderGenesis {
parent_hash: H256::from_str(&db_header.parent_hash.unwrap_or_default()).unwrap(),
Expand Down

0 comments on commit f2566ca

Please sign in to comment.