mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
Update journal.go
This commit is contained in:
parent
777265620d
commit
630482a25c
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue