Skip to content

Commit f3bb9ed

Browse files
committed
Copy extra in CopyHeader
1 parent 5227c55 commit f3bb9ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/types/block.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ func CopyHeader(h *Header) *Header {
311311
cpy.ParentBeaconRoot = new(common.Hash)
312312
*cpy.ParentBeaconRoot = *h.ParentBeaconRoot
313313
}
314+
if h.extra != nil {
315+
cpy.extra = h.extra
316+
}
314317
return &cpy
315318
}
316319

0 commit comments

Comments
 (0)