Skip to content

Commit

Permalink
fix: prevent blockheaderv2 being used as default?
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 30, 2025
1 parent 2061bd4 commit c77a618
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/types/src/blockchain/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ pub struct BlockHeaderMetadata {
}

#[cfg(any(test, feature = "test-helpers"))]
#[cfg(not(feature = "fault-proving"))]
impl Default for BlockHeader {
fn default() -> Self {
let mut default: BlockHeader = BlockHeaderV1::default().into();
Expand All @@ -320,16 +319,6 @@ impl Default for BlockHeader {
}
}

#[cfg(any(test, feature = "test-helpers"))]
#[cfg(feature = "fault-proving")]
impl Default for BlockHeader {
fn default() -> Self {
let mut default: BlockHeader = BlockHeaderV2::default().into();
default.recalculate_metadata();
default
}
}

#[cfg(any(test, feature = "test-helpers"))]
impl BlockHeader {
/// Creates the block header around the `height` and `time`.
Expand Down

0 comments on commit c77a618

Please sign in to comment.