Post
Topic
Board Development & Technical Discussion
Re: What is the format data in LevelDB that is for blocks?
by
SamReomo
on 22/05/2023, 15:40:33 UTC
so the receiver can save the file with the got number and we don't need a database?

The LevelDB database is mostly used in blockchains to store block related data like block height and block hash as keys and it stores the block data as values. The structure of the data is customizable and any blockchain systems could easily customize it according to their needs.

The main reason for implementing LevelDB database in blockchain is to provide fast and highly efficient way for the retrieval of the block related data. This makes it far easier to perform operations related to block data and for transactions. It also helps in data integrity and consistency of the data. The database is capable of doing consistent reads and writes.

To learn further about the LevelDB use in blockchain you can visit the following links.

https://www.quora.com/Why-do-cryptocurrencies-use-LevelDB
https://neo-ngd.github.io/NEO-Tutorial/en/6-persistence/README2.html#:~:text=The%20current%20implementation%20of%20NEO,also%20for%20smart%20contract%20data.

You should also visit the following thread:

https://bitcointalk.org/index.php?topic=5409332.0