You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2020. It is now read-only.
I just found this project, it seems interesting. After I read payfile.proto, I have following comments/suggestions:
a) I suppose the protocol should work like request/response; single client->server message should trigger one server->client response. It seems that DownloadChunk(num_chunks=3) will trigger three Data() messages coming out of the server, which breaks the request/response "rule". I suggest to change "optional Data data = 6;" to "repeated Data data = 6;" so one DownloadChunk message will trigger exactly one Data response.
b) "chunk_size" should me a property of File message, not Manifest. Chunk size may be relevant to File itself (it is probably a function of file size), server may also store given File parsed in chunks on filesystem, to prevent disk seeks on client request.
c) price per chunk is currently "int32", Although 24 BTC per chunk seems to be enough now, I would prefer "uint32" or even better "uint64". Not all altcoins costs hundreds of USD each...