@@ -32,8 +32,8 @@ type Eth1Block struct {
3232 BlockHash libcommon.Hash
3333 Transactions * solid.TransactionsSSZ
3434 Withdrawals * solid.ListSSZ [* types.Withdrawal ]
35- DataGasUsed uint64
36- ExcessDataGas uint64
35+ BlobGasUsed uint64
36+ ExcessBlobGas uint64
3737 // internals
3838 version clparams.StateVersion
3939}
@@ -72,9 +72,9 @@ func NewEth1BlockFromHeaderAndBody(header *types.Header, body *types.RawBody) *E
7272 Withdrawals : solid .NewStaticListSSZFromList (body .Withdrawals , 16 , 44 ),
7373 }
7474
75- if header .DataGasUsed != nil && header .ExcessDataGas != nil {
76- block .DataGasUsed = * header .DataGasUsed
77- block .ExcessDataGas = * header .ExcessDataGas
75+ if header .BlobGasUsed != nil && header .ExcessBlobGas != nil {
76+ block .BlobGasUsed = * header .BlobGasUsed
77+ block .ExcessBlobGas = * header .ExcessBlobGas
7878 block .version = clparams .DenebVersion
7979 } else if header .WithdrawalsHash != nil {
8080 block .version = clparams .CapellaVersion
@@ -102,10 +102,10 @@ func (b *Eth1Block) PayloadHeader() (*Eth1Header, error) {
102102 }
103103 }
104104
105- var dataGasUsed , excessDataGas uint64
105+ var blobGasUsed , excessBlobGas uint64
106106 if b .version >= clparams .DenebVersion {
107- dataGasUsed = b .DataGasUsed
108- excessDataGas = b .ExcessDataGas
107+ blobGasUsed = b .BlobGasUsed
108+ excessBlobGas = b .ExcessBlobGas
109109 }
110110
111111 return & Eth1Header {
@@ -124,8 +124,8 @@ func (b *Eth1Block) PayloadHeader() (*Eth1Header, error) {
124124 BlockHash : b .BlockHash ,
125125 TransactionsRoot : transactionsRoot ,
126126 WithdrawalsRoot : withdrawalsRoot ,
127- DataGasUsed : dataGasUsed ,
128- ExcessDataGas : excessDataGas ,
127+ BlobGasUsed : blobGasUsed ,
128+ ExcessBlobGas : excessBlobGas ,
129129 version : b .version ,
130130 }, nil
131131}
@@ -149,7 +149,7 @@ func (b *Eth1Block) EncodingSizeSSZ() (size int) {
149149 }
150150
151151 if b .version >= clparams .DenebVersion {
152- size += 8 * 2 // DataGasUsed + ExcessDataGas
152+ size += 8 * 2 // BlobGasUsed + ExcessBlobGas
153153 }
154154
155155 return
@@ -181,7 +181,7 @@ func (b *Eth1Block) getSchema() []interface{} {
181181 s = append (s , b .Withdrawals )
182182 }
183183 if b .version >= clparams .DenebVersion {
184- s = append (s , & b .DataGasUsed , & b .ExcessDataGas )
184+ s = append (s , & b .BlobGasUsed , & b .ExcessBlobGas )
185185 }
186186 return s
187187}
@@ -228,10 +228,10 @@ func (b *Eth1Block) RlpHeader() (*types.Header, error) {
228228 }
229229
230230 if b .version >= clparams .DenebVersion {
231- dataGasUsed := b .DataGasUsed
232- header .DataGasUsed = & dataGasUsed
233- excessDataGas := b .ExcessDataGas
234- header .ExcessDataGas = & excessDataGas
231+ blobGasUsed := b .BlobGasUsed
232+ header .BlobGasUsed = & blobGasUsed
233+ excessBlobGas := b .ExcessBlobGas
234+ header .ExcessBlobGas = & excessBlobGas
235235 }
236236
237237 // If the header hash does not match the block hash, return an error.
0 commit comments