Skip to content

Commit

Permalink
chore(consensus): Remove Header Method (alloy-rs#1271)
Browse files Browse the repository at this point in the history
chore: remove unnused header commented method
  • Loading branch information
refcell authored and lwedge99 committed Oct 8, 2024
1 parent 912b8fc commit b905df3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/consensus/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ impl Sealable for Header {
}

impl Header {
// TODO: re-enable

// /// Returns the parent block's number and hash
// pub fn parent_num_hash(&self) -> BlockNumHash {
// BlockNumHash { number: self.number.saturating_sub(1), hash: self.parent_hash }
// }

/// Heavy function that will calculate hash of data and will *not* save the change to metadata.
///
/// Use [`Header::seal_slow`] and unlock if you need the hash to be persistent.
Expand Down

0 comments on commit b905df3

Please sign in to comment.