plugeth/les
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
..
flowcontrol les/flowcontrol: fixed locking scheme 2016-11-14 13:22:19 +01:00
api_backend.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
backend.go cmd/utils, eth, les: bubble --fakepow flag into eth/les too 2017-01-04 10:42:41 +02:00
fetcher.go les, light: add block availability check for ODR requests 2016-12-10 09:53:25 +01:00
handler_test.go all: update license information 2016-11-09 02:51:34 +01:00
handler.go Merge pull request #3413 from zsfelfoldi/light-topic4 2016-12-12 20:46:15 +01:00
helper_test.go les: improved header fetcher and server statistics 2016-12-10 09:53:08 +01:00
metrics.go all: update license information 2016-11-09 02:51:34 +01:00
odr_requests.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.go les, light: add block availability check for ODR requests 2016-12-10 09:53:25 +01:00
peer.go les, light: add block availability check for ODR requests 2016-12-10 09:53:25 +01:00
protocol.go all: update license information 2016-11-09 02:51:34 +01:00
randselect_test.go les: implement light server pool 2016-12-08 13:38:15 +01:00
randselect.go les: implement light server pool 2016-12-08 13:38:15 +01:00
request_test.go les: improved header fetcher and server statistics 2016-12-10 09:53:08 +01:00
server.go les, light: add block availability check for ODR requests 2016-12-10 09:53:25 +01:00
serverpool.go les: improved header fetcher and server statistics 2016-12-10 09:53:08 +01:00
sync.go all: update license information 2016-11-09 02:51:34 +01:00
txrelay.go all: update license information 2016-11-09 02:51:34 +01:00