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).

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
763 views

Querying insight-api to dump all addresses with a positive balance

It's been some time I've been using 'insight-api' (https://github.com/bitpay/insight-api) and I couldn't find any documentation / anything helpful to query leveldb in a way that all addresses with a ...
2
votes
0answers
329 views

How to delete last n blocks / roll back to specific block number in Bitcoin Core? (Like `monero-blockchain-import --pop-blocks n`)

I have Bitcoin Core's bitcoind running and synced in a VM. Now I want to clone the VM and run one of the various hard forks (such as Bitcoin Cash) in the clone. The plan is to roll back my copy of the ...
1
vote
0answers
36 views

why is bitcoind daemon occasionally stuck at `Opening LevelDB in …/.bitcoin/chainstate`despite clean shutdown

My bitcoind daemon sometimes takes an hour to go past Opening LevelDB in .../.bitcoin/chainstate After googling a bit, i thought it was simply an unclean daemon stop causing a leveldb corruption. But ...
1
vote
1answer
50 views

How Does Bitcoin Core Client Keep Track of Longest Chain/Strongest PoW Chains?

Bitcoin Core stores blocks in files in local disk. And it uses LevelDb to form an index on top of block storage to make it faster to retrieve a block (basically a simple key-value pair db). See this ...
1
vote
0answers
589 views

Error While making windows.exe using gitian build?

Actually I'm making a logos windows exe (logosd and logos-qt) following the release process, which is mention on below path on any coin you can find that path, I'm working logos LGS Coin that's why I'...
0
votes
0answers
34 views

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 ...
0
votes
0answers
39 views

`Fatal LevelDB error: Corruption: truncated block read` with txindex

I'm running bitcoind 0.18.0 with txindex. The indexes are stored on an SSD, and raw block data is stored on an external HDD. Out of the blue it crashed with a Fatal LevelDB error: Corruption: ...
0
votes
2answers
128 views

How to get the block hash in the chainstate leveldb?

From this link What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?, to get the block hash I use the obfuscation key and xor it with the result I get from the db. So I ...
0
votes
0answers
212 views

Get value from leveldb bitcoin using node.js?

I request information about the block 100001 using leveldb and node js. Below is my code example. var level = require('level'); var db = level('E:/download/blockchain/block'); var str = '...
-1
votes
1answer
493 views

how to build altcoin in mingw?

OS : Windows 10 Installed Dependencies: -qt4.8.6 gcc 6.3.0 boost 1_55_0 berkeleyDB 4.8.30NC openssl 1.0.2l I tried compiling with the following commands: qmake "USE_UPNP=1" coin-pt.pro mingw32-...