From 630482a25cdf73fc7e3e908515f85ee1ffeeb538 Mon Sep 17 00:00:00 2001 From: splinter Date: Sun, 8 Feb 2026 21:53:33 +0100 Subject: [PATCH] Update journal.go --- core/state/journal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/journal.go b/core/state/journal.go index a79bd7331a..6d6ca19ee7 100644 --- a/core/state/journal.go +++ b/core/state/journal.go @@ -137,9 +137,9 @@ func (j *journal) length() int { // copy returns a deep-copied journal. func (j *journal) copy() *journal { - entries := make([]journalEntry, 0, j.length()) + entries := make([]journalEntry, j.length()) for i := 0; i < j.length(); i++ { - entries = append(entries, j.entries[i].copy()) + entries[i] = j.entries[i].copy() } return &journal{ entries: entries,