mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
make blobgas nil
This commit is contained in:
parent
073bb183da
commit
9c1308818c
1 changed files with 2 additions and 8 deletions
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue