Where actual blockchain state data stored in memory in file or in database

0 votes

Where blockchain data is saved in every node? After a long search in google, StackOverflow, and some blogs, like got many answers: like it is saved in a database like level-DB or rocks-DB, some said it saves in memory in a variable, some said it saved in a file (from hyperledger-fabric).

I want to know, is there a particular method of storing blocks that are followed by most blockchain frameworks?

Or all those frameworks choose different methods (like file, memory, or DB).

I know there is a current state/world state of blockchain which is saved in a database. This current state/world state is totally different from the actual blockchain. In the current state or world state, the data can be modified, but in actual blockchain block/data is immutable.

My question is:

How is the data (immutable blocks) stored on the ledger of every full node in a Blockchain ? is it in Memory, in a file (like JSON, CSV file ), or in DB

Apr 5 in Blockchain by Soham
• 8,730 points
58 views

1 answer to this question.

0 votes
Bitcoin nodes keep the raw block data on disk in files .bitcoin/blocks/blk*.dat. The size of each blknnnnnn.dat is 128MB, with the total size of data as of today being 300GB. Metadata about all known blocks is kept in Level DB files in .bitcoin/blocks/index/nnnnnn.ldb files.
answered Apr 7 by Aditya
• 7,280 points

Related Questions In Blockchain

0 votes
1 answer

Where is the data stored in blockchain?

The smart contract is just the business ...READ MORE

answered Jun 29, 2018 in Blockchain by slayer
• 29,310 points
866 views
0 votes
1 answer

How can I modify stored data in blockchain??

One of the important feature of a ...READ MORE

answered Apr 18, 2018 in Blockchain by Christine
• 15,790 points
2,980 views
+1 vote
1 answer

Is it possible to store blockchain in a sql or no-sql database?

Currently, following are the options to store ...READ MORE

answered Apr 21, 2018 in Blockchain by Perry
• 17,100 points

edited Aug 9, 2018 by Omkar 421 views
+1 vote
1 answer

How to store state data in Ethereum blockchain?

You won't have to overwrite the whole ...READ MORE

answered Apr 25, 2018 in Blockchain by Shashank
• 10,400 points
379 views
0 votes
1 answer
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
622 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
960 views
0 votes
1 answer
0 votes
1 answer

Transaction in a blockchain

I assume you should take it as ...READ MORE

answered Apr 6 in Blockchain by Aditya
• 7,280 points
21 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP