Skip to content

Commit

Permalink
Update service/header/interface.go
Browse files Browse the repository at this point in the history
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
  • Loading branch information
Wondertan and renaynay committed Jan 28, 2022
1 parent d2dd0a2 commit 094553a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/header/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var (
// ErrNotFound is returned when there is no requested header.
ErrNotFound = errors.New("header: not found")

// ErrNoHead is returned when Store does not contain Head of the chain.
// ErrNoHead is returned when Store is empty (does not contain any known header).
ErrNoHead = fmt.Errorf("header/store: no chain head")

// ErrNonAdjacent is returned when Store is appended with a header not adjacent to the stored head.
Expand Down
2 changes: 1 addition & 1 deletion service/header/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
// * Syncs by requesting missing headers from Exchange or
// * By accessing cache of pending and verified headers
// 2. Receives new headers from PubSub subnetwork (s.processIncoming)
// * Usually, a new header is adjacent to the trusted head and if so, it is simply appended to the local store, incrementing the subjective height and
// * Usually, a new header is adjacent to the trusted head and if so, it is simply appended to the local store, incrementing the subjective height and
// making it the new latest known trusted header.
// * Or, if it receives a header further in the future,
// * verifies against the latest known trusted header
Expand Down

0 comments on commit 094553a

Please sign in to comment.