Skip to content

Commit 9236b52

Browse files
committed
Change PostCopy(dst, src) -> PostCopy(dst)
1 parent f8a0ea3 commit 9236b52

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/types/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func CopyHeader(h *Header) *Header {
309309
cpy.ParentBeaconRoot = new(common.Hash)
310310
*cpy.ParentBeaconRoot = *h.ParentBeaconRoot
311311
}
312-
h.hooks().PostCopy(&cpy, h)
312+
h.hooks().PostCopy(&cpy)
313313
return &cpy
314314
}
315315

core/types/block.libevm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type HeaderHooks interface {
3232
UnmarshalJSON(*Header, []byte) error //nolint:govet
3333
EncodeRLP(*Header, io.Writer) error
3434
DecodeRLP(*Header, *rlp.Stream) error
35-
PostCopy(dst, src *Header)
35+
PostCopy(dst *Header)
3636
}
3737

3838
// hooks returns the Header's registered HeaderHooks, if any, otherwise a
@@ -110,4 +110,4 @@ func (*NOOPHeaderHooks) DecodeRLP(h *Header, s *rlp.Stream) error {
110110
return s.Decode((*withoutMethods)(h))
111111
}
112112

113-
func (n *NOOPHeaderHooks) PostCopy(dst, src *Header) {}
113+
func (n *NOOPHeaderHooks) PostCopy(dst *Header) {}

core/types/block.libevm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (hh *stubHeaderHooks) DecodeRLP(h *Header, s *rlp.Stream) error {
7575
return hh.errDecode
7676
}
7777

78-
func (hh *stubHeaderHooks) PostCopy(dst, src *Header) {}
78+
func (hh *stubHeaderHooks) PostCopy(dst *Header) {}
7979

8080
func TestHeaderHooks(t *testing.T) {
8181
TestOnlyClearRegisteredExtras()

0 commit comments

Comments
 (0)