aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core, tests: implement Metropolis EIP 684Péter Szilágyi2017-08-251-1/+0
|
* consensus, core, tests: implement Metropolis EIP 649Péter Szilágyi2017-08-241-0/+4
|
* tests: update tests and implement general state tests (#14734)Felix Lange2017-07-111-115/+14
| | | | | | | | | | | | | | Tests are now included as a submodule. This should make updating easier and removes ~60MB of JSON data from the working copy. State tests are replaced by General State Tests, which run the same test with multiple fork configurations. With the new test runner, consensus tests are run as subtests by walking json files. Many hex issues have been fixed upstream since the last update and most custom parsing code is replaced by existing JSON hex types. Tests can now be marked as 'expected failures', ensuring that fixes for those tests will trigger an update to test configuration. The new test runner also supports parallel execution and the -short flag.
* core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-051-12/+12
| | | | | | | | | | | | | | | 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.
* cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-041-2/+2
| | | | | | | | | | | | | | | | | * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * core/vm: byte code VM moved to jump table instead of switch * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * Byte code VM now shares the same code as the JITVM * Renamed Context to Contract * Changed initialiser of state transition & unexported methods * Removed the Execution object and refactor `Call`, `CallCode` & `Create` in to their own functions instead of being methods. * Removed the hard dep on the state for the VM. The VM now depends on a Database interface returned by the environment. In the process the core now depends less on the statedb by usage of the env * Moved `Log` from package `core/state` to package `core/vm`.
* cmd/evm, core/vm, tests: changed DisableVm to EnableVmJeffrey Wilcke2015-08-121-2/+3
|
* core/vm: reduced big int allocationsJeffrey Wilcke2015-08-071-1/+1
| | | | | | | Reduced big int allocation by making stack items modifiable. Instead of adding items such as `common.Big0` to the stack, `new(big.Int)` is added instead. One must expect that any item that is added to the stack might change.
* core/vm, tests: implemented semi-jit vmJeffrey Wilcke2015-08-071-0/+14
| | | | * changed stack and removed stack ptr. Let go decide on slice reuse.
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* Add --skip option to CLITaylor Gerring2015-06-191-14/+14
| | | | | Disassociates hardcoded tests to skip when running via CLI. Tests still skipped when running `go test`
* Cleanup/reorgTaylor Gerring2015-06-191-2/+0
|
* Return error up stack instead of passing testing var downTaylor Gerring2015-06-191-14/+42
|
* Fix pathsTaylor Gerring2015-06-191-14/+17
|
* Split tests from helper codeTaylor Gerring2015-06-191-310/+1
|
* Flatten vm directoryTaylor Gerring2015-06-191-0/+387