Skip to content

Conversation

@LexLuthr
Copy link
Collaborator

@LexLuthr LexLuthr commented Mar 7, 2024

Currently, LID clean up uses a very complex logic to figure out which deals/claims have not expired/slashed on chain to determine if the deal should be cleaned up.
This logic can be simplified into a check if sector containing the deal exists for miner or not. If not then on chain state of deal does not matter as we cannot serve retrievals for such deals.

@LexLuthr LexLuthr requested a review from masih March 7, 2024 11:49
@LexLuthr
Copy link
Collaborator Author

LexLuthr commented Mar 7, 2024

@masih @rvagg I don't like they way test is setup. I was thinking about converting this into an itest instead of current way. Please let me know your thoughts on the same. If there is a way to emulate a Store, that would be the best. I could not find one.

@LexLuthr LexLuthr requested review from magik6k and rvagg March 7, 2024 15:49
@LexLuthr LexLuthr requested a review from snadrus March 7, 2024 16:17
@LexLuthr LexLuthr merged commit e73af16 into main Mar 7, 2024
@LexLuthr LexLuthr deleted the refactor-pdcleaner branch March 7, 2024 22:51
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.

2 participants