1

Now I understand that miners will run smart contracts in Ethereum and other nodes in the network will be checking the validity of the contract execution from How is a node selected to run Smart Contract in Ethereum

In this case all these nodes are re-running the smart contract and then see whether the result is the same from the miner's execution? I guess not and I wonder how this smart contract validation is done exactly?

migrated from bitcoin.stackexchange.com Jul 5 '18 at 1:53

This question came from our site for Bitcoin crypto-currency enthusiasts.

2

All the local nodes (not light nodes, full nodes only to be exact) do indeed execute all mined transactions. It is mainly because of this that an Ethereum full node is increasingly difficult to run, on the other hand it is needed for decentralization. A Medium article, Life Cycle of an Ethereum Transaction, has quite exact introductory information about Ethereum transactions.

  • I see. In this case the validating nodes don't get any GAS, right? – kee Jul 5 '18 at 15:26
  • Correct, all gas from a transaction is received by the miner of the block containing the transaction. – comodoro Jul 5 '18 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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