From 8f6f3fdecdc46296de44372f42440f23a98b3c84 Mon Sep 17 00:00:00 2001 From: Shoham Chakraborty Date: Fri, 21 Jul 2023 12:35:18 +0800 Subject: [PATCH] Add base_fee to header --- src/header.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/header.rs b/src/header.rs index f3afcdf..ce2f232 100644 --- a/src/header.rs +++ b/src/header.rs @@ -27,6 +27,7 @@ pub struct Header { pub extra_data: Bytes, pub mix_hash: H256, pub nonce: H64, + pub base_fee: U256 } impl Header { @@ -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, } } @@ -73,6 +75,7 @@ pub struct PartialHeader { pub extra_data: Bytes, pub mix_hash: H256, pub nonce: H64, + pub base_fee: U256 } impl From
for PartialHeader { @@ -91,6 +94,7 @@ impl From
for PartialHeader { extra_data: header.extra_data, mix_hash: header.mix_hash, nonce: header.nonce, + base_fee: header.base_fee, } } }