Skip to content

Commit

Permalink
Add base_fee to header
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamc1 committed Jul 21, 2023
1 parent 0ffbe47 commit 8f6f3fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub struct Header {
pub extra_data: Bytes,
pub mix_hash: H256,
pub nonce: H64,
pub base_fee: U256
}

impl Header {
Expand All @@ -48,6 +49,7 @@ impl Header {
extra_data: partial_header.extra_data,
mix_hash: partial_header.mix_hash,
nonce: partial_header.nonce,
base_fee: partial_header.base_fee,
}
}

Expand All @@ -73,6 +75,7 @@ pub struct PartialHeader {
pub extra_data: Bytes,
pub mix_hash: H256,
pub nonce: H64,
pub base_fee: U256
}

impl From<Header> for PartialHeader {
Expand All @@ -91,6 +94,7 @@ impl From<Header> for PartialHeader {
extra_data: header.extra_data,
mix_hash: header.mix_hash,
nonce: header.nonce,
base_fee: header.base_fee,
}
}
}

0 comments on commit 8f6f3fd

Please sign in to comment.