Do not share embedded blockif.Header between block.Header instances

pull/1538/head
Eugene Kim 5 years ago
parent 13e4fb07e9
commit 83dae1fa24
  1. 1
      core/types/block.go

@ -195,6 +195,7 @@ func NewBlockWithHeader(header *block.Header) *Block {
// TODO ek – no longer necessary
func CopyHeader(h *block.Header) *block.Header {
cpy := *h
cpy.Header = cpy.Header.Copy()
return &cpy
}

Loading…
Cancel
Save