Skip to content

Commit

Permalink
Remove unused consolidation request root from post electra body trait
Browse files Browse the repository at this point in the history
  • Loading branch information
hangleang authored and Tumas committed Dec 12, 2024
1 parent e48fd9e commit 53dd908
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions types/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,6 @@ pub trait PostElectraBeaconBlockBody<P: Preset>: PostDenebBeaconBlockBody<P> {
fn attester_slashings(
&self,
) -> &ContiguousList<ElectraAttesterSlashing<P>, P::MaxAttesterSlashingsElectra>;
fn consolidation_requests_root(&self) -> H256;
fn execution_requests(&self) -> &ExecutionRequests<P>;
}

Expand All @@ -1273,10 +1272,6 @@ impl<P: Preset> PostElectraBeaconBlockBody<P> for ElectraBeaconBlockBody<P> {
&self.attester_slashings
}

fn consolidation_requests_root(&self) -> H256 {
self.execution_requests.consolidations.hash_tree_root()
}

fn execution_requests(&self) -> &ExecutionRequests<P> {
&self.execution_requests
}
Expand All @@ -1293,10 +1288,6 @@ impl<P: Preset> PostElectraBeaconBlockBody<P> for ElectraBlindedBeaconBlockBody<
&self.attester_slashings
}

fn consolidation_requests_root(&self) -> H256 {
self.execution_requests.consolidations.hash_tree_root()
}

fn execution_requests(&self) -> &ExecutionRequests<P> {
&self.execution_requests
}
Expand Down

0 comments on commit 53dd908

Please sign in to comment.