Merge pull request #7530 from filecoin-project/fix/ap-fail-used-acc

Fix used sector space accounting after AddPieceFailed
This commit is contained in:
Łukasz Magiera 2021-10-18 15:55:37 +01:00 committed by GitHub
commit e5d73f2923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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