All Questions
Tagged with leveldb blockchain
10 questions
1
vote
1
answer
67
views
levelDB : How does the key/values pairs work for datadir/blocks/index/
I'm trying to understand the format of key/value pairs in LevelDB for Bitcoin data storage.
Given the following raw key and value:
Raw Key: ...
0
votes
1
answer
82
views
Regarding the chainstate level db (UXTO)
Already found many useful information regarding the chainstats db.
such as:
What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?
But what is the meanning of the last ...
2
votes
0
answers
557
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 ...
2
votes
1
answer
346
views
What will happen when the blockchain size will reach 1 Tb? Or 10 Tb?
My question is more about bitcoin client (bitcoind). Will it still be working fine or maybe something will go wrong? I mean, maybe LevelDB can't handle this amount of data correctly?
1
vote
1
answer
309
views
How does the wallet know which outputs are available with LevelDB
So, I found that in the original Bitcoin client there was a member variable vSpent in the class CWalletTX, however it appears that this is no longer the case in the new version. I know that the new ...
25
votes
1
answer
12k
views
How does Bitcoin read from/write to LevelDB
I know that Bitcoin Core uses LevelDB since 0.8 version. However, I couldn't find detailed explanation about how Bitcoin stores and retrieves from LevelDB. E.g. If B transaction uses an output from ...
3
votes
1
answer
492
views
Bitcoin Chainstate Leveldb sst
I'm trying to read the chainstate, and wrote a small Leveldb client to do so. When I run leveldb, it tells me Corruption: 960 missing files; e.g.: /opt/bitcoin/chainstate/890787.sst. Googling shows ...
3
votes
0
answers
844
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 ...
41
votes
5
answers
17k
views
What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?
I am wondering if I can use node.js and levelup to access a copy of the blockchain database directly.
But from what I can see, I need to know the name of the key(s) before I can get any data, as this ...
8
votes
3
answers
12k
views
How to access Bitcoin's transaction database?
I want to process the Bitcoin network's transactions. As I understand it, the Bitcoin-Qt client downloads and stores all that information locally.
Since version 0.8 LevelDB has been used to access ...