Skip to content

Commit

Permalink
Update state/fork/traversal.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Schalm <jordan@dapperlabs.com>
  • Loading branch information
zhangchiqing and jordanschalm committed Apr 22, 2024
1 parent 9b0c220 commit 4860e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state/fork/traversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func unsafeTraverse(headers storage.Headers, block *flow.Header, visitor onVisit

parent, err := headers.ByBlockID(block.ParentID)
if err != nil {
return nil, fmt.Errorf("failed to revtrieve block header %v (%x): %w", block.Height, block.ParentID, err)
return nil, fmt.Errorf("failed to retrieve block header (id=%x height=%d): %w", block.ParentID, block.Height-1, err)
}

block = parent
Expand Down

0 comments on commit 4860e67

Please sign in to comment.