diff --git a/erigon-lib/commitment/commitment.go b/erigon-lib/commitment/commitment.go index 3ea27ad1ffe..60ca4bcca6f 100644 --- a/erigon-lib/commitment/commitment.go +++ b/erigon-lib/commitment/commitment.go @@ -348,11 +348,8 @@ func (be *BranchEncoder) EncodeBranch(bitmap, touchMap, afterMap uint16, readCel } bitset ^= bit } - res := make([]byte, be.buf.Len()) - copy(res, be.buf.Bytes()) - //fmt.Printf("EncodeBranch [%x] size: %d\n", be.buf.Bytes(), be.buf.Len()) - return res, lastNibble, nil + return be.buf.Bytes(), lastNibble, nil } func RetrieveCellNoop(nibble int, skip bool) (*cell, error) { return nil, nil }