Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix unseal status on the sector page #362

Merged
merged 1 commit into from
Jan 13, 2025
Merged
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
6 changes: 2 additions & 4 deletions web/api/webrpc/sector.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type SectorInfo struct {
UpdatedSealedCid string
IsSnap bool
UpdateMsg string
UnsealedState bool
UnsealedState *bool
HasUnsealed bool

PipelinePoRep *sectorListEntry
Expand Down Expand Up @@ -454,9 +454,7 @@ func (a *WebRPC) SectorInfo(ctx context.Context, sp string, intid int64) (*Secto
p := *sectormeta.Partition
si.Partition = &p
}
if sectormeta.UnsealedState != nil {
si.UnsealedState = *sectormeta.UnsealedState
}
si.UnsealedState = sectormeta.UnsealedState
}

var pieces []SectorPieceMeta
Expand Down
Loading