Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(consensus): Remove Header Method #1271

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions crates/consensus/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,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