-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: #7869 sealing: Add more deal expiration checks during PRU pipeline #7871
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- i don't know how long
ProveReplicaUpdate1
takes, but it may be rerunning the check before callingProveReplicaUpdate2
? - what we really want is probably to extend
SectorInfo
to have adeadline
epoch set to its latest deal activation (can be updated along the way as precommit and so on happens). then, every state transition can check if the sector is doomed before investing any more time in it.
but that is outside the scope of this pr -- an issue would be nice to have, though.
extern/storage-sealing/checks.go
Outdated
@@ -80,6 +79,24 @@ func checkPieces(ctx context.Context, maddr address.Address, si SectorInfo, api | |||
return nil | |||
} | |||
|
|||
func checkDealExpiration(ctx context.Context, sector SectorInfo, api SealingAPI) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is sufficiently different or faster than checkPieces to warrant its own method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- i don't know how long
ProveReplicaUpdate1
takes, but it may be rerunning the check before callingProveReplicaUpdate2
?
PRU1 computes the vanilia proofs so yah it should take a while, added another check before the PRU2 - so it doesnt take much time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tho i do think it makes sense to check before PRU2 instead of PRU1 - updated
i understand what you are proposing wrt the adding to sector info, but the earliest deal start epoch should stay the same after the snap deal sector is packed, so it wont be updated once set? so i guess we can find that in |
e3cd18b
to
61e1732
Compare
415360c
to
825e2c9
Compare
7382c53
to
d645c5f
Compare
Related Issues
resolves #7869
Proposed Changes
add more deal error handling during PRU pipeline so that we can fail early without wasting too much work
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <#issue number> <area>: <change being made>
fix: #1234 mempool: Introduce a cache for valid signatures
PR type
: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs, misc,perf, refactor, revert, style, testarea
: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet