Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Few comments to protocol #8

Description

@slush0

Hi Mike,

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

Thanks,
Marek

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions