Jeffrey Wilcke
80f26086ee
core, tests: get_hash fix
...
Make sure that we're fetching the hash from the current chain and not
the canonical chain.
9 years ago
Gustav Simonsson
e1616f77c7
core, core/vm, cmd/evm: remove redundant balance check
9 years ago
Jeffrey Wilcke
361082ec4b
cmd/evm, core/vm, test: refactored VM and core
...
* 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`.
9 years ago
Felix Lange
8c4dab77ba
all: move common.Database to package ethdb
9 years ago
Gustav Simonsson
7324176f70
Add tests for uncle timestamps and refactor timestamp type
9 years ago
Jeffrey Wilcke
184e9ae9a8
core, tests: reduced state copy by N calls
...
Reduced the amount of state copied that are required by N calls by doing
a balance check prior to any state modifications.
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Gustav Simonsson
4c490db6af
Use uint64 for block header timestamp
10 years ago
Taylor Gerring
30444db020
Add lost rebase changes
10 years ago
Taylor Gerring
b6d40a9312
Cleanup/reorg
10 years ago
Taylor Gerring
c5d6fcbaba
Return error up stack instead of passing testing var down
10 years ago
Taylor Gerring
24554629b1
DRY log check
10 years ago
Taylor Gerring
7c6ef0ddac
Separate and identify tests runners
10 years ago
Taylor Gerring
1b26d4f220
Flatten helper directory
10 years ago
Taylor Gerring
a67a15528a
Split tests from helper code
10 years ago
Taylor Gerring
7b9fbb088a
Flatten vm directory
10 years ago
obscuren
787a61bb27
core/state, core/vm: reworked storage get / set to use common.Hash
10 years ago
Gustav Simonsson
d8e55a5cc3
Skip VMTests RandomTests temporarily until they are fixed
10 years ago
Gustav Simonsson
6ad817e17b
Add StateTests/RandomTests and VMTests/RandomTests
10 years ago
obscuren
9617aa8e19
tests: added conditional skip on long running VM tests
...
Set the TEST_VM_COMPLEX env var to test complex vm tests which require a
lot of ram and quite some time.
10 years ago
obscuren
f5af1fdca8
core/vm: RETURN op code returns pointer to memory rather than copy
10 years ago
obscuren
648b352424
tests/vm: updated tests and skipped output for specific tests
...
Skipped tests due to large return value
10 years ago
Gustav Simonsson
619e8a4f03
Add StateTests/RandomTests but skip for now
10 years ago
Gustav Simonsson
32276e8b01
Update StateTests and nil create return on failed code deposit
10 years ago
Gustav Simonsson
dadf01de60
unskip StateTests/stTransactionTest and use test tx nonce
10 years ago
Gustav Simonsson
24de35ef09
Add StateTests/stMemoryStressTest.json but skip for now
10 years ago
Gustav Simonsson
7254278c09
Add test wrapper for VMTests/vmInputLimits1.json
10 years ago
obscuren
a7750c929b
Fixed tests to reflect log changes
10 years ago
obscuren
a0e44e3281
basic glog
10 years ago
obscuren
c59c826ab4
fixed stack level
10 years ago
obscuren
23bccbbc58
Modified according to poc 9 changes
...
* Refund of value
10 years ago
obscuren
0330077d76
moved state and vm to core
10 years ago
obscuren
86661de077
Fixed tests and bloom
10 years ago
obscuren
c21293cd91
bloom
10 years ago
obscuren
0fa7859b94
Fixed VM & Tests w/ conversion
10 years ago
obscuren
b0ebccb31e
fixed to
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
obscuren
f76cc6699e
Changed context and ADDMOD, MULMOD
...
* Cleaned up VM execution. VM run now takes a context
* ADDMOD/MULMOD - removed incorrect cast
10 years ago
obscuren
11390a986a
run all test
10 years ago
obscuren
347cb272be
fixed ethtest
10 years ago
obscuren
9007f2bbdc
reworked stack
10 years ago
obscuren
0795fd2701
wip
10 years ago
obscuren
19efebe91e
Updated tests and fixed suicide
10 years ago
Paweł Bylica
0af08eca1f
Fix VM tests not checked
10 years ago
obscuren
ee0a1bec6c
GasLimit check updated
10 years ago
obscuren
c74c07eed1
Fixed error for invalid transaction
10 years ago
obscuren
fa831206c6
Updated gast costs
10 years ago
obscuren
524bf9e858
wup
10 years ago