hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support empty blocks

mafintosh opened this issue · comments

Right now the replication protocol is ambiguous, whether a data message is a "only hashes" message vs a "value message" when the value is 0 bytes.

You can solve the ambiguity by looking at the responses you have, but that goes against the self-describing of the protocol so we should probably add a flag to indicate this explicitly