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, 2022 in Blockchain by Soham
• 9,710 points
680 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, 2022 by Aditya
• 7,680 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,370 points
1,473 views
+1 vote
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
6,153 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 1,170 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
997 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,466 views
+1 vote
1 answer

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

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,458 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
1,941 views
0 votes
1 answer

Best database type to store data that will be used with a blockchain?

Storing just the hash on the blockchain ...READ MORE

answered Apr 7, 2022 in Blockchain by Aditya
• 7,680 points
1,171 views
0 votes
1 answer

Transaction in a blockchain

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

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