make blobgas nil

This commit is contained in:
Arpit Temani 2023-11-10 14:29:27 +05:30
parent 073bb183da
commit 9c1308818c

View file

@ -531,14 +531,8 @@ func (g *Genesis) ToBlock() *types.Block {
withdrawals = nil withdrawals = nil
} }
if conf.IsCancun(num) { if conf.IsCancun(num) {
head.ExcessBlobGas = g.ExcessBlobGas head.ExcessBlobGas = nil
head.BlobGasUsed = g.BlobGasUsed head.BlobGasUsed = nil
if head.ExcessBlobGas == nil {
head.ExcessBlobGas = nil
}
if head.BlobGasUsed == nil {
head.BlobGasUsed = nil
}
} }
} }