HomeSource World

consensus/ethash: fix usage of *reflect.SliceHeader (#21372)

Description

consensus/ethash: fix usage of *reflect.SliceHeader (#21372)

  • consensus/ethash: pr feedback from @mdempsky, makes a copy of dest such that is not mutated
  • consensus/ethash: remove noop assign
  • consensus/ethash: apply same fix to another location

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>

Details

Provenance
Preston Van Loon <preston@prysmaticlabs.com>Authored on Nov 17 2020, 9:35 AM
GitHub <noreply@github.com>Committed on Nov 17 2020, 9:35 AM
Parents
rGETH1ea7537997d1: crypto/bn256: refine comments according to #19577, #21595, and #21836 (#21847)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH844485ec6aa2: consensus/ethash: fix usage of *reflect.SliceHeader (#21372) (authored by Preston Van Loon <preston@prysmaticlabs.com>).Nov 17 2020, 9:35 AM