-
Notifications
You must be signed in to change notification settings - Fork 76
1/ Boost SM 0.1 #11
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
1/ Boost SM 0.1 #11
Conversation
// ... | ||
// | ||
// TransferEvent (Started, Progress, Finished) ? | ||
PercentComplete int |
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'd suggest that instead of percent complete, we have two fields in in this event:
- bytes received
- total bytes
Then the UX can decide how it wants to display that information.
// ProviderDealRejectionInfo is the information sent by the Storage Provider to the Client when it rejects a valid deal. | ||
type ProviderDealRejectionInfo struct { | ||
Reason string | ||
Backoff time.Duration |
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.
Let's leave out the backoff time for now as I think we'll probably follow the askv2 protocol (which has a different mechanism)
// InboundCARPath is the file-path where the storage provider will persist the CAR file sent by the client. | ||
InboundCARPath string | ||
// TransferURL is the URL sent by the client where the Storage Provider can fetch the CAR file from. | ||
TransferURL string |
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 suggest we define a TransferType struct and use it here, something like
TransferType {
id string
data []byte
}
ClientPeerID peer.ID | ||
|
||
// DealDataRoot is the root of the IPLD DAG that the client wants to store. | ||
DealDataRoot cid.Cid |
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.
DealDataRoot would be part of the TransferType struct
* integrate storagemarket.Provider into boost * add SectorBlocks; add DealPublisher; add OnDealSectorCommitted; add ProviderNodeAdapter * boost: add api client for cli interaction (#15)
TODO