mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core/types: deepcopy ExcessDataGas, DataGasUsed (#27767)"
This reverts commit 0c56bf33c0.
This commit is contained in:
parent
3aa9bf6b56
commit
44014771f2
1 changed files with 0 additions and 8 deletions
|
|
@ -284,14 +284,6 @@ func CopyHeader(h *Header) *Header {
|
||||||
cpy.WithdrawalsHash = new(common.Hash)
|
cpy.WithdrawalsHash = new(common.Hash)
|
||||||
*cpy.WithdrawalsHash = *h.WithdrawalsHash
|
*cpy.WithdrawalsHash = *h.WithdrawalsHash
|
||||||
}
|
}
|
||||||
if h.ExcessDataGas != nil {
|
|
||||||
cpy.ExcessDataGas = new(uint64)
|
|
||||||
*cpy.ExcessDataGas = *h.ExcessDataGas
|
|
||||||
}
|
|
||||||
if h.DataGasUsed != nil {
|
|
||||||
cpy.DataGasUsed = new(uint64)
|
|
||||||
*cpy.DataGasUsed = *h.DataGasUsed
|
|
||||||
}
|
|
||||||
return &cpy
|
return &cpy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue