-
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
Allow miners to set expiration duration for (deal) sectors #4760
Comments
Seems like the two potential ways to design this are to either allow miners to explicitly pass a duration to override the default when sealing a new sector - or expose the default in something like the config for miners to configure within the accepted min/max bounds. Note, choosing a shorter duration than the default/max means that miners will have to reseal the sector to maintain power (expending work that could have gone toward sealing a new sector) - so the long-term expectation for rewards for unit effort is worse the shorter you configure your expiration duration. |
Roughly what needs to be done:
|
Naming things is hard. Here's what I'm going with for now. Welcoming your suggestions (or if there's nomenclature that is already familiar within the community that is more apt).
/cc @magik6k @jennijuju |
@magik6k @Kubuxu Within the context of (edited for simplicity) |
MinDealDurationInSector is a bit confusing imho. AFAIK Sector expiration is not bounded by the longest deal duration, but the latest end epoch of the deals in the sector. |
For CommittedCapacityDefaultLifetime, I will add |
Yes, correct. This is what I'm trying to capture in the name. This value intends to represent the "minimum deal duration that we would expect in the sector before it is sealed" and not the "longest deal duration possible by the protocol".
What about this:
|
Names seem alright to me. I'm not sure what to do about
|
I'm still not sure what to do to proceed with Note that @magik6k has also asked for validation of these values to be handled on lazy-load within the Policy, which is only instantiated from within Looking for some clarity on handling these rough edges before proceeding (and I believe this is context that only @magik6k can provide at the moment?). |
The way I see this:
|
@magik6k parameter being introduced here affects the scheduling of sealing of the sector with deals. So it cannot be handled in PreCommitPolicy. |
The scenario we're trying to handle more gracefully is the following: A worker has /cc @jennijuju |
I believe this was closed prematurely. The PR only allows configurable CC sector expiration. This issue still has configurable non-CC sector expiration as outstanding scope. |
I'd like to throw in the suggestion that it'd be nice to allow miners to set a minimum/maximum seal duration they'll accept for deals as well. Right now with lotus-miner storage-deals set-ask you can set prices and min/max piece size, but you can't set Expiry. Maybe some miners only want to hold short term deals, while others want longer term deals. This could be especially useful if say a miner knew that in '3 months' they were going to move their farm or need to take it down or something, if they could set it so, "I won't take any deals that need hosting out longer than this date", that'd be good. |
@Meatball13 FYI, this appears to already be possible: #7076 (comment) |
The sectors expiration duration can be any time from 180 days - 540 days. Currently, all the cc sectors' expiration duration is set to 540 days by default, and we do not expose any cli for miners to customize it. Sectors with deals are expired when the last deal is ended.
Ideally, we should allow miners to set the below values in the configuration:
default expiration duration for cc sectors #6836
minimum expiration duration for deal sectors before sealing
The text was updated successfully, but these errors were encountered: