mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-21 07:19:28 +00:00
core/types: copy block access list hash in CopyHeader (#34636)
This commit is contained in:
parent
db6c7d06a2
commit
bcb0efd756
1 changed files with 4 additions and 0 deletions
|
|
@ -325,6 +325,10 @@ func CopyHeader(h *Header) *Header {
|
||||||
cpy.RequestsHash = new(common.Hash)
|
cpy.RequestsHash = new(common.Hash)
|
||||||
*cpy.RequestsHash = *h.RequestsHash
|
*cpy.RequestsHash = *h.RequestsHash
|
||||||
}
|
}
|
||||||
|
if h.BlockAccessListHash != nil {
|
||||||
|
cpy.BlockAccessListHash = new(common.Hash)
|
||||||
|
*cpy.BlockAccessListHash = *h.BlockAccessListHash
|
||||||
|
}
|
||||||
if h.SlotNumber != nil {
|
if h.SlotNumber != nil {
|
||||||
cpy.SlotNumber = new(uint64)
|
cpy.SlotNumber = new(uint64)
|
||||||
*cpy.SlotNumber = *h.SlotNumber
|
*cpy.SlotNumber = *h.SlotNumber
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue