Fix used sectors space accounting after AddPieceFailed

This commit is contained in:
Łukasz Magiera 2021-10-18 09:55:28 +02:00
parent a0795165af
commit 63c8b8edd1

View File

@ -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() {