From 9c1308818c643827b01068441cf82b8171ee1855 Mon Sep 17 00:00:00 2001 From: Arpit Temani Date: Fri, 10 Nov 2023 14:29:27 +0530 Subject: [PATCH] make blobgas nil --- core/genesis.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index f3409bbbff..b679e72040 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -531,14 +531,8 @@ func (g *Genesis) ToBlock() *types.Block { withdrawals = nil } if conf.IsCancun(num) { - head.ExcessBlobGas = g.ExcessBlobGas - head.BlobGasUsed = g.BlobGasUsed - if head.ExcessBlobGas == nil { - head.ExcessBlobGas = nil - } - if head.BlobGasUsed == nil { - head.BlobGasUsed = nil - } + head.ExcessBlobGas = nil + head.BlobGasUsed = nil } }