quorum/light
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
..
lightchain.go les: improved header fetcher and server statistics 2016-12-10 09:53:08 +01:00
lightchain_test.go core, core/state, trie: EIP158, reprice & skip empty account write 2016-11-13 10:44:04 +01:00
odr.go les, light: add block availability check for ODR requests 2016-12-10 09:53:25 +01:00
odr_test.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
odr_util.go les, light: add block availability check for ODR requests 2016-12-10 09:53:25 +01:00
state.go core, core/vm: implemented a generic environment (#3348) 2016-12-06 02:16:03 +01:00
state_object.go core, core/vm: implemented a generic environment (#3348) 2016-12-06 02:16:03 +01:00
state_test.go core, core/state, trie: EIP158, reprice & skip empty account write 2016-11-13 10:44:04 +01:00
trie.go light: light chain, VM env and tx pool 2016-11-09 02:12:53 +01:00
txpool.go core, light: allow zero cost txs from inexistent accounts too 2016-12-16 13:30:39 +02:00
txpool_test.go core/types, params: EIP#155 2016-11-13 14:55:30 +01:00
vm_env.go core, core/vm: implemented a generic environment (#3348) 2016-12-06 02:16:03 +01:00