hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

support empty blocks #18

Open mafintosh opened 3 years ago

mafintosh commented 3 years ago

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