I wish to know about the data storage in blockchain

0 votes
I wish to know how data is stored in blockchain. What happens when a node calls a function in a smart contract and pass a string as a parameter. Where is this string stored?

Does the string stored twice?? Also, does the variables of smart contracts stored as hashes?
Jun 22, 2018 in Blockchain by Shashank
• 10,400 points
633 views

1 answer to this question.

0 votes

That string would be stored in the tranasction that is generated.
However, it depends on the smart contract that you have installed. Maybe, some smart contract wouldn't save it. 

You don't store anything in the contract storage, you only execute the contract. However, Blockchain stores the info twice: 

Ledger: the Ledger stores all the transactions. The ledger is comprised of a blockchain (‘chain’) to store the immutable, sequenced record in blocks. Each node maintains a copy of the ledger. 

State Database: maintains the current state. It represents the latest values for all keys ever included in the chain transaction log. Smart contract invocations execute transactions against the current state data.

answered Jun 22, 2018 by Johnathon
• 9,090 points

Related Questions In Blockchain

+1 vote
3 answers

Is it possible to store data about arbitrary objects on the blockchain using smart contracts?

Basically you implement requested logic on by ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
1,541 views
+5 votes
1 answer

What are the programming languages I should know to become a Blockchain Developer?

Well, what programming language you have to ...READ MORE

answered Sep 25, 2018 in Blockchain by digger
• 26,740 points
911 views
0 votes
0 answers

In R3 Corda I don't know to start the web server port in server?

In R3 Corda all the nodes are ...READ MORE

Jun 26, 2019 in Blockchain by anonymous
1,182 views
+1 vote
1 answer

I would like to create a blockchain network which will stay at the same level of complexity, is it possible?

You can very easily create a cryptocurrency having a ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
848 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,922 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,451 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,427 views
0 votes
1 answer

How to check the data integrity logic in proof of work mining?

The proof of work is actually works ...READ MORE

answered May 8, 2018 in Blockchain by Johnathon
• 9,090 points
802 views
+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

answered Mar 27, 2018 in Blockchain by Johnathon
• 9,090 points
2,838 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