Skip to content

Commit

Permalink
docs: add note about deprecated total difficulty (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 11, 2024
1 parent b0909d4 commit de01884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/rpc-types-eth/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ pub struct Header<H = alloy_consensus::Header> {
#[cfg_attr(feature = "serde", serde(flatten))]
pub inner: H,
/// Total difficulty
///
/// Note: This field is now effectively deprecated: <https://github.com/ethereum/execution-apis/pull/570>
#[cfg_attr(feature = "serde", serde(default, skip_serializing_if = "Option::is_none"))]
pub total_difficulty: Option<U256>,
/// Integer the size of this block in bytes.
Expand Down

0 comments on commit de01884

Please sign in to comment.