Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.01 KB

Halting Problem.md

File metadata and controls

21 lines (17 loc) · 1.01 KB

Ethereum’s ability to execute a stored program, in a state machine called the Ethereum Virtual Machine, while reading and writing data to memory makes it a Turing-complete system.

Turing-complete systems face the challenge of the halting problem i.e. given an arbitrary program and its input, it is not solvable to determine whether the program will eventually stop running.

Ethereum cannot predict if a smart contract will terminate, or how long it will run. Therefore, to constrain the resources used by a smart contract, Ethereum introduces a metering mechanism called gas.


Slide Screenshot

010.jpg


Slide Text

  • Turing Complete -> Halting Problem
  • Arbitrary Program/Input Predict -> Stop?
  • Smart Contracts Predict -> How Long? Stop?
  • Constrain Resources
    • Metering -> Gas

References