1

I have a general question in my mind please do correct me if i am thinking wrong .

Suppose if i deploy the smart contract on the ethereum blockchain having a functionality to pay some tokens at particular timestamp. Then on which node's evm that smart contract get executed how it get decided ? and my node is not any more connected to the network at the same time . Is this node selected by network randomly or their is any other algorithm or paradigm exists for this process.

Thanks

1 Answer 1

1

After you sign your transaction, it is broadcast onto the Ethereum network. Even if you go offline, the transaction is still being bounced around on various nodes. Nodes that are mining may choose to include your transaction in a block; any node wishing to include your transaction in the block must execute it.

Otherwise, your transaction will be executed on all nodes after it is incorporated into a block by a miner. The reason why all nodes execute the transaction even after it's included in a block is so that they can update the blockchain state. Also, it prevents the miner that included the transaction from cheating (e.g., by claiming the transaction consumed twice as much gas as it really did and then paying themselves the higher transaction fee).

2
  • i suppose this is not the answer of my question , i want to understand after the contract deployment a transaction generated by the contract itself not by any external call then the generation of transaction needed a environment for execution so where will be that environment or evm instance Aug 12, 2017 at 6:14
  • A contract can't wake itself up later; it must be executed as part of a new transaction or a message call. A message call is basically a transaction initiated by another contract -- but that contract must have been started, at least indirectly, by a new transaction in the current block.
    – lungj
    Aug 12, 2017 at 14:52

Your Answer

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

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