Questions tagged [leveldb]

LevelDB is an embedded key-value storage developed by Google that is used in Bitcoin Core for block index storage and quick access to the UTXO set (unspent transaction outputs).

65 questions
1
vote
0 answers

What can cause the chainstate database to become corrupted?

I have written a tool that accesses the chainstate LevelDB database to get a list of UTXOs. https://github.com/in3rsha/bitcoin-utxo-dump/blob/master/utxodump.go The tool would originally corrupt the database every time I accessed it, forcing me to…
inersha
  • 3,063
  • 1
  • 17
  • 41
1
vote
1 answer

why is bitcoin leveldb separated in so many small pieces?

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?
lzl124631x
  • 121
  • 5
0
votes
1 answer

How can I get the key of blockindex

According to this post: What are the keys used in the blockchain levelDB (ie what are the key:value pairs)? One type of the keys in leveldb of bitcoin is formed in the following way 'b' + 32-byte block hash I wrote the following code in go but I…
lzl124631x
  • 121
  • 5
0
votes
1 answer

Trojans detected in ldb bitcoin database?

I started regular scan and clamscan found lots of trojans in bitcon.lfb blocks. What is it? A mistake? sudo clamscan --infected --recursive --exclude-dir="^/sys" / /root/.bitcoin/data/blocks/index/592744.ldb: Win.Trojan.Jerusalem-47…