Skip to content

Commit

Permalink
errors.go: remove subordinate not synced
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalank committed Jul 26, 2022
1 parent d2f7e6c commit f77dbaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion consensus/blake3/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ func (blake3 *Blake3) PreviousCoincidentOnPath(chain consensus.ChainHeaderReader
// Get previous header on local chain by hash
prevHeader := chain.GetHeaderByHash(header.ParentHash[path])
if prevHeader == nil {
return nil, consensus.ErrSubordinateNotSynced
return nil, consensus.ErrSliceNotSynced
}
// Increment previous header
header = prevHeader
Expand Down
3 changes: 0 additions & 3 deletions consensus/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ var (
// ErrGhostState is returned if a side chain is attempted to be re-imported into state.
ErrGhostState = errors.New("sidechain ghost-state attack")

// ErrSubordinateNotSynced is returned if PCRC returns an unlinked chain in the subordinate.
ErrSubordinateNotSynced = errors.New("subordinate chain not synced")

// ErrSliceNotSynced is returned if PCRC returns an unlinked chain in the subordinate.
ErrSliceNotSynced = errors.New("slice is not synced")
)

0 comments on commit f77dbaf

Please sign in to comment.