Skip to content

Add ErrSectorCorrupt#413

Merged
n8mgr merged 1 commit into
masterfrom
nate/sector-corrupt
Jul 1, 2026
Merged

Add ErrSectorCorrupt#413
n8mgr merged 1 commit into
masterfrom
nate/sector-corrupt

Conversation

@n8mgr

@n8mgr n8mgr commented Jul 1, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 1, 2026 18:21
@n8mgr n8mgr merged commit 44b8503 into master Jul 1, 2026
13 checks passed
@n8mgr n8mgr deleted the nate/sector-corrupt branch July 1, 2026 18:21
@github-project-automation github-project-automation Bot moved this to Done in Sia Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new RHP v4 RPC error sentinel to let hosts explicitly signal disk/sector corruption to clients, with a corresponding changeset entry for release documentation.

Changes:

  • Introduced ErrSectorCorrupt in rhp/v4/errors.go as a host-side RPC error.
  • Added a .changeset entry documenting the new error.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
rhp/v4/errors.go Adds the new ErrSectorCorrupt RPC error definition alongside existing sector-related errors.
.changeset/added_errsectorcorrupt_to_detect_disk_corruption.md Documents the addition for release/changelog generation via changesets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rhp/v4/errors.go
Comment on lines +42 to +43
// ErrSectorCorrupt is returned when the sector on disk is corrupt.
ErrSectorCorrupt = NewRPCError(ErrorCodeHostError, "sector corrupt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants