Fix used sectors space accounting after AddPieceFailed
This commit is contained in:
parent
a0795165af
commit
63c8b8edd1
4
extern/storage-sealing/input.go
vendored
4
extern/storage-sealing/input.go
vendored
@ -60,6 +60,10 @@ func (m *Sealing) handleWaitDeals(ctx statemachine.Context, sector SectorInfo) e
|
||||
return ctx.Send(SectorAddPiece{})
|
||||
},
|
||||
}
|
||||
} else {
|
||||
// make sure we're only accounting for pieces which were correctly added
|
||||
// (note that m.assignedPieces[sid] will always be empty here)
|
||||
m.openSectors[sid].used = used
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
Loading…
Reference in New Issue
Block a user