Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: bellajbadr on October 24, 2016, 01:15:14 PM



Title: Reading the Bitcoin leveldb
Post by: bellajbadr on October 24, 2016, 01:15:14 PM
Hi,
i am trying to read the two bitcoin's levelDbs, i am facing some difficulties to understand the key/value scheme used. i've read the table format doc https://github.com/bitcoin-core/leveldb/blob/bitcoin-fork/doc/table_format.txt
and the https://github.com/bitcoin/bitcoin/blob/master/src/txdb.cpp and other but i didn't succeed to build an idea about how the data is stored in these Dbs, i tried to query the blocks using b+blockshash but without any success, so could you help me to query the data inside a block? any clue is welcome  ;D.


Title: Re: Reading the Bitcoin leveldb
Post by: cr1776 on October 24, 2016, 02:00:51 PM
Did you look at this one?:
https://en.bitcoin.it/wiki/Bitcoin_Core_0.11_(ch_2):_Data_Storage