-
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
Backport: feat: sealing: Switch to calling PreCommitSectorBatch2 #11215
Conversation
requires: | ||
- build | ||
suite: itest-ccupgrade | ||
target: "./itests/ccupgrade_test.go" |
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.
a bit surprised t see t tests being removed 👁️
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.
This is the extremely old replace-sector-with-another-sector CC upgrade, not snapdeals.
It's not even supported in actors anymore
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.
Woah
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.
Oh that right thanks
@@ -107,7 +108,10 @@ func (mgr *SectorCommittedManager) OnDealSectorPreCommitted(ctx context.Context, | |||
|
|||
// Watch for a pre-commit message to the provider. | |||
matchEvent := func(msg *types.Message) (bool, error) { | |||
matched := msg.To == provider && (msg.Method == builtin.MethodsMiner.PreCommitSector || msg.Method == builtin.MethodsMiner.PreCommitSectorBatch || msg.Method == builtin.MethodsMiner.ProveReplicaUpdates) | |||
matched := msg.To == provider && (msg.Method == builtin.MethodsMiner.PreCommitSector || | |||
msg.Method == builtin.MethodsMiner.PreCommitSectorBatch || |
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.
out of curiosity - any reason why we wanna keep PrecommitsectorBatch?
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.
Sectors still can be onboarded with the old precommit, and this helper may still be pulled by e.g. by boost, so we probably want to keep support for the old method at least until the next network version.
I don't think there's much harm in keeping old stuff here, the whole markets/
package will go anyways as we deprecate legacy markets.
Related Issues
This PR backports #11142 to feat/nv21
Related to #11125
Proposed Changes
Additional Info
This is required because nv21 will remove the old Precommit methods. DDO also requires the use of the new methods, so any integration work must be on top of this code
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps