1

Currently I could see 1418 ldb files on my box, from 210040.ldb to 215423.ldb (some missing).

  • Why are they separated in this way?
  • I want to read the leveldb using golang, but I don't know which one should I use.
  • Can I load them altogether?
1

At the moment I try out creating my own leveldb I understand.. The chainstate folder itself is the entry point of the database; all the files within it are just the data.

This is what the data looks like after I put some dummy data

enter image description here

  • If you want to add more information, please edit the question rather than posting an answer :) – MeshCollider Oct 20 '18 at 11:18
  • Apologies if this was intended as an answer, it didn't seem to fully address all the points of the question :) – MeshCollider Oct 21 '18 at 8:02
  • @MeshCollider np. :) Actually the 3 questions can be answered by this one. The separation of .ldb files has nothing to do with bitcoin, it's just the way leveldb stores the data. I hope this learning can help save others' time. – lzl124631x Oct 21 '18 at 9:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.