orbitdb-archive / ipfs-log

Append-only log CRDT on IPFS
https://orbitdb.github.io/ipfs-log/
MIT License
398 stars 55 forks source link

Change log.tails and log.heads to both return hashes and add get methods for Entries #218

Open shamb0t opened 5 years ago

shamb0t commented 5 years ago

@satazor has pointed out that currently log.heads return hashes (or cids), log.tails return entries and log.tailHashes (or soon log.tailCids) return hashes/cids while it makes more sense for log.heads and log.tails to return hashes/cids and have log.headEntries and log.tailEntries to return entries. We can track discussion and those changes here.

aphelionz commented 5 years ago

Will we be dropping tails soon since Log.values traverses the log? That might simplify the discussion and decision here.

aphelionz commented 5 years ago

Removing my assignment as I'm not currently working on this.