Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: minor
---

# Added ErrSectorCorrupt to detect disk corruption.
2 changes: 2 additions & 0 deletions rhp/v4/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ var (
ErrHostFundError = NewRPCError(ErrorCodeHostError, "host funding error")
// ErrSectorNotFound is returned when the host is not storing a sector.
ErrSectorNotFound = NewRPCError(ErrorCodeHostError, "sector not found")
// ErrSectorCorrupt is returned when the sector on disk is corrupt.
ErrSectorCorrupt = NewRPCError(ErrorCodeHostError, "sector corrupt")
Comment on lines +42 to +43
// ErrContractNotFound is returned when the host is not aware of a
// contract.
ErrContractNotFound = NewRPCError(ErrorCodeHostError, "contract not found")
Expand Down
Loading