-
Notifications
You must be signed in to change notification settings - Fork 59
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
Feat/configure start epoch buffer #171
Conversation
return p.dealAcceptanceBuffer | ||
} | ||
|
||
func (p *Provider) UniversalRetrievalEnabled() bool { |
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.
What is the value of these functions if they are not added to the StorageProvider interface type? Should they be? I'm not sure they should?
Oh, nm, you're using them for testing. Makes sense. +1
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.
LGTM with minor NB comment and I'd love to talk to you about the providerDealEnvironment question :)
@@ -339,4 +361,8 @@ func (p *providerDealEnvironment) Disconnect(proposalCid cid.Cid) error { | |||
return p.p.conns.Disconnect(proposalCid) | |||
} | |||
|
|||
func (p *providerDealEnvironment) DealAcceptanceBuffer() abi.ChainEpoch { |
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.
So I've gone back and forth a bunch on this, but I wonder if we should throw out the providerDealEnvironment and just make these methods on the Provider, cause we have the same aforementioned feature above -- the methods aren't accessible assuming you just have the storage provider interface. Non-blocking, but what do you think?
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 like implementing the interface on our provider impl; it would remove a bunch of indirection.
2bcf854
to
d510a39
Compare
Summary
Add a configurable
DealAcceptanceBuffer
, which can be used by storage providers to adjust how far in the future a deal'sStartEpoch
must be in order to be accepted. This is to account for time required for data transfer, deal publishing, sealing, committing, etc.Resolves #139