0

Is there any validation process of smart contract's write operations ?

2
  • Hi, I did not specifically understand your question. You can check out this link github.com/ethereum/wiki/wiki/White-Paper for basics of Ethereum as well as how Ethereum is different from Bitcoin.
    – Sanjay S B
    Commented Jun 18, 2019 at 9:33
  • Thanks for your response @SanjaySB . I will go through that above link and will get clarification.
    – Suria
    Commented Jun 18, 2019 at 10:51

1 Answer 1

2

All smart contracts are replicated across all nodes. And their code is part of a block, and therefore part of the block's hash value. So if you somehow 'hack' a smart contract in one node all other nodes would ignore the changes as they have the right version which produces the right hash value for the block.

Smart contract interactions are validated also in the same way: all transactions are replayed by all nodes so any strangeness in the interaction would be detected and ignored by all other nodes.

3
  • Thanks for your explanation @Lauri Peltonen . Let's say there is a huge traffic to my dapp its around 1cr active nodes in my dapp. How much time it will take to validate by all 1 cr nodes for single transaction. ?
    – Suria
    Commented Jun 18, 2019 at 10:49
  • Your dapp doesn't have nodes. A node is simply used to communicate with the blockchain. A block can currently have about 8 million gas in it, so you can estimate how many blocks (at least) it requires for all the transactions to be processed by the network. Commented Jun 18, 2019 at 10:57
  • Got it and its clear explaition. Thank you @Lauri Peltonen
    – Suria
    Commented Jun 18, 2019 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.