[NebulousLabs/Sia] Add clear download history methods and endpoints (#3084)

lukechampine commented on this pull request.

> @@ -80,7 +80,7 @@ type DownloadInfo struct {
EndTime time.Time `json:»endtime»` // The time when the download fully completed.
Error string `json:»error»` // Will be the empty string unless there was an error.
Received uint64 `json:»received»` // Amount of data confirmed and decoded.
— StartTime time.Time `json:»starttime»` // The time when the download was started.
+ StartTime int64 `json:»starttime»` // The time when the download was started.

why do we need to provide a timestamp in the API in the first place? Seems easier to me to let the client do the parsing.

Добавить комментарий