v13 migration: market: Consider checking deal expiration epoch for the cached migration
Opened this issue · 0 comments
arajasek commented
We're currently relying on the fact of the protocol to avoid looking up deal proposals for the cached migration. Specifically, we assume that no deals could have been added between the pre-migration and migration that have already expired.
While this is true given how Lotus intends to use this migration, and given the protocol parameters for minimum deal duration today, it would be nice to avoid doing this by just looking up the proposal for any new deals. This isn't very fast, but there will likely be only a small number of such deals (about 10 hours worth), so we might as well do it for correctness.
Resolves this TODO: