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,16 +531,10 @@ 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
}
}
}
return types.NewBlock(head, nil, nil, nil, trie.NewStackTrie(nil)).WithWithdrawals(withdrawals)
}