Skip to content

Commit 415bb4d

Browse files
committed
fix: remove unused block_hash field from HeaderContext struct
1 parent ee8b235 commit 415bb4d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

modules/snapshot_bootstrapper/src/header.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub enum HeaderContextError {
2626
pub struct HeaderContext {
2727
pub point: Point,
2828
pub block_number: u64,
29-
pub block_hash: Hash<32>,
3029
}
3130

3231
impl HeaderContext {
@@ -53,13 +52,9 @@ impl HeaderContext {
5352
let minted: MintedHeader<'_> = minicbor::decode(&cbor)
5453
.map_err(|e| HeaderContextError::Decode(point.slot(), e.to_string()))?;
5554
let header = ConwayHeader::from(minted);
56-
let block_body_hash = header.header_body.block_body_hash;
57-
let hash = Self::convert_hash(block_body_hash.as_ref())?;
58-
5955
Ok(Self {
6056
point: point.clone(),
6157
block_number: header.header_body.block_number,
62-
block_hash: hash,
6358
})
6459
}
6560
}

0 commit comments

Comments
 (0)