op-geth/miner
Jeffrey Wilcke bbc4ea4ae8 core/vm: improved EVM run loop & instruction calling (#3378)
The run loop, which previously contained custom opcode executes have been
removed and has been simplified to a few checks.

Each operation consists of 4 elements: execution function, gas cost function,
stack validation function and memory size function. The execution function
implements the operation's runtime behaviour, the gas cost function implements
the operation gas costs function and greatly depends on the memory and stack,
the stack validation function validates the stack and makes sure that enough
items can be popped off and pushed on and the memory size function calculates
the memory required for the operation and returns it.

This commit also allows the EVM to go unmetered. This is helpful for offline
operations such as contract calls.
2017-01-05 11:52:10 +01:00
..
agent.go miner: Move CpuAgent channel creation from Start() to initialization (fixes #2948) 2016-08-26 00:12:17 +10:00
miner.go miner: fix data race on setting etherbase/extradata 2016-12-13 14:04:05 +02:00
remote_agent.go eth, miner: verify PoW in the remote agent to notify submitter (#3438) 2016-12-20 02:14:36 +01:00
unconfirmed.go miner: rename pending to unconformed, add bounds and ops tests 2016-12-13 15:10:52 +02:00
unconfirmed_test.go miner: rename pending to unconformed, add bounds and ops tests 2016-12-13 15:10:52 +02:00
worker.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00