Skip to content

Commit

Permalink
Copy extra in CopyHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 16, 2025
1 parent 5227c55 commit f3bb9ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func CopyHeader(h *Header) *Header {
cpy.ParentBeaconRoot = new(common.Hash)
*cpy.ParentBeaconRoot = *h.ParentBeaconRoot
}
if h.extra != nil {
cpy.extra = h.extra
}
return &cpy
}

Expand Down

0 comments on commit f3bb9ed

Please sign in to comment.