Kevin Atkinson
Kevin Atkinson
After thinking about it a while here is what I think the interface should look like now: ```go type Blockstore interface { Delete(mh.Multihash) error Has(mh.Multihash) (bool, error) Get(*cid.Cid) (blocks.Block, error)...
@whyrusleeping @Stebalien the `go-blockservice` README says (https://github.com/ipfs/go-blockservice): > The interfaces here really would like to be merged with the blockstore interfaces. The 'dagservice' constructor currently takes a blockservice, but it...
> My point was, instead of introducing an unknown multicodec, just use raw. The issue here is the ipfs refs command (and friends). Those need to return CIDs, unfortunately. Yes...
> It is correct. Every piece of data is a valid raw block (it's the Any, interface{}, Object, what have you, type). Maybe it is correct, but I still think...
> Note: The multicodec on a CID is not a type. It tells you how to interpret a binary blob as structured data. From the perspective of IPLD, "unknown" is...
Should we prompt or output a warning and suggest the user rerun with a flag?
#4446 will you allow you to remove the root. I did it a separate command as removing it (even if the hash no longer exists) could lead to data loss....