Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Oct 26, 2024
1 parent 5916cc8 commit 35bff8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/consensus/src/block/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct AnyHeader {
#[cfg_attr(feature = "serde", serde(rename = "sha3Uncles"))]
pub ommers_hash: B256,
/// Alias of `author`
#[serde(rename = "miner")]
#[cfg_attr(feature = "serde", serde(rename = "miner"))]
pub beneficiary: Address,
/// State root hash
pub state_root: B256,
Expand Down
4 changes: 2 additions & 2 deletions crates/consensus/src/block/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ pub struct Header {
/// block’s header, in its entirety; formally Hp.
pub parent_hash: B256,
/// The Keccak 256-bit hash of the ommers list portion of this block; formally Ho.
#[serde(rename = "sha3Uncles")]
#[cfg_attr(feature = "serde", serde(rename = "sha3Uncles"))]
pub ommers_hash: B256,
/// The 160-bit address to which all fees collected from the successful mining of this block
/// be transferred; formally Hc.
#[serde(rename = "miner")]
#[cfg_attr(feature = "serde", serde(rename = "miner"))]
pub beneficiary: Address,
/// The Keccak 256-bit hash of the root node of the state trie, after all transactions are
/// executed and finalisations applied; formally Hr.
Expand Down

0 comments on commit 35bff8f

Please sign in to comment.