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

MSevey 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.

we need some sort of unique identifier for the user to submit through the API to know what download to delete, so the unix timestamp seemed like an easy option.

This post was last modified on June 13, 2018, 8:56 pm