Skip to content

Commit

Permalink
Remove comment referring to Celo
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Aug 2, 2022
1 parent 4abc64f commit 46b9baa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/types/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct BlockHeader {
pub parent_hash: H256,
/// Hash of the uncles
#[serde(rename = "sha3Uncles")]
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub uncles_hash: H256,
/// Miner/author's address.
#[serde(rename = "miner", default, deserialize_with = "null_to_default")]
Expand All @@ -32,7 +32,7 @@ pub struct BlockHeader {
pub gas_used: U256,
/// Gas Limit
#[serde(rename = "gasLimit")]
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub gas_limit: U256,
/// Base fee per unit of gas (if past London)
#[serde(rename = "baseFeePerGas", skip_serializing_if = "Option::is_none")]
Expand All @@ -46,7 +46,7 @@ pub struct BlockHeader {
/// Timestamp
pub timestamp: U256,
/// Difficulty
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub difficulty: U256,
/// Mix Hash
#[serde(rename = "mixHash")]
Expand All @@ -66,7 +66,7 @@ pub struct Block<TX> {
pub parent_hash: H256,
/// Hash of the uncles
#[serde(rename = "sha3Uncles")]
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub uncles_hash: H256,
/// Miner/author's address.
#[serde(rename = "miner", default, deserialize_with = "null_to_default")]
Expand All @@ -87,7 +87,7 @@ pub struct Block<TX> {
pub gas_used: U256,
/// Gas Limit
#[serde(rename = "gasLimit")]
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub gas_limit: U256,
/// Base fee per unit of gas (if past London)
#[serde(rename = "baseFeePerGas", skip_serializing_if = "Option::is_none")]
Expand All @@ -101,7 +101,7 @@ pub struct Block<TX> {
/// Timestamp
pub timestamp: U256,
/// Difficulty
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub difficulty: U256,
/// Total difficulty
#[serde(rename = "totalDifficulty")]
Expand All @@ -110,7 +110,7 @@ pub struct Block<TX> {
#[serde(default, rename = "sealFields")]
pub seal_fields: Vec<Bytes>,
/// Uncles' hashes
#[serde(default)] // Celo doesn't have this field.
#[serde(default)]
pub uncles: Vec<H256>,
/// Transactions
pub transactions: Vec<TX>,
Expand Down

0 comments on commit 46b9baa

Please sign in to comment.