I understand that there is some connection/relation between these two, but I’m not sure how they are connected/related.
My initial understanding was that the metadata of “what blocks are locally available” is stored in the leveldb inside
$IPFS_PATH/datastore, and the actual block data is stored in the
But, after digging around a bit, I noticed two things,
1 - Blockstore uses prefix
2 - After adding a bunch of files to my IPFS, I looked at the keys in the leveldb, and could not find a single key containing
"blocks" prefix. I could only see
This leads me to think that, in the default profile, both the leveldb and flatfs datastores are used - leveldb for metadata like pins, provider records etc. and flatfs for actually storing the blocks. And the leveldb does not contain ANY data/metadata about what is stored in the flatfs datastore.