2

I would like to know whether the execution of a smart contract is done by the miner or by the blockchain system?

0

Each node of the network, not only miners execute the smart contracts. The results of the execution should be exactly the same to add the transactions to the blockchain. The smart contract is executed within the EVM and only those calls which modify some state require to be executed through a transaction. The getters are executed only in the node where it was called.

  • What is the result of the execution? Is it the same result of PoW? – pika May 31 '17 at 20:46
  • The result of the execution is the set of states that the transaction changes, nothing related to PoW or PoS. – Pablo Yabo Jun 1 '17 at 21:07
1

In simple terms, the smart contract is executed by every node on the network, not just the node that mines that specific block.

At a more abstract level, the smart contract is executed by the Ethereum Virtual Machine (EVM). The EVM is the "computer" that is operating in parallel on every node, and is kept in consensus about the state of every program running on ethereum.

0

By miners and by all full nodes in the network.

  • 1
    Please consider to elaborate on your answer. – Badr Bellaj May 31 '17 at 22:41

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.