core/types: deepcopy ExcessDataGas, DataGasUsed (#27767)

pull/27787/head
Darioush Jalali 2 years ago committed by GitHub
parent 2274a03e33
commit 37b952a4a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      core/types/block.go

@ -284,6 +284,14 @@ func CopyHeader(h *Header) *Header {
cpy.WithdrawalsHash = new(common.Hash)
*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
}

Loading…
Cancel
Save