aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util.go
Commit message (Collapse)AuthorAgeFilesLines
* core, core/state, trie: Hardfork EIP155, EIP161, EIP170Jeffrey Wilcke2016-11-151-35/+16
| | | | | | | | | | | | | | | This commit implements EIP158 part 1, 2, 3 & 4 1. If an account is empty it's no longer written to the trie. An empty account is defined as (balance=0, nonce=0, storage=0, code=0). 2. Delete an empty account if it's touched 3. An empty account is redefined as either non-existent or empty. 4. Zero value calls and zero value suicides no longer consume the 25k reation costs. params: moved core/config to params Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org>
* [release/1.4.18] core, core/vm: added gas price variance tableJeffrey Wilcke2016-10-151-3/+13
| | | | | | | | | | | | | | | This implements 1b & 1c of EIP150 by adding a new GasTable which must be returned from the RuleSet config method. This table is used to determine the gas prices for the current epoch. Please note that when the CreateBySuicide gas price is set it is assumed that we're in the new epoch phase. In addition this PR will serve as temporary basis while refactorisation in being done in the EVM64 PR, which will substentially overhaul the gas price code. (cherry picked from commit 64af2aafdaf16d0bab4c2b89573324b076602bab)
* [release/1.4.16] core/state: implement reverts by journaling all changesFelix Lange2016-10-061-14/+20
| | | | | | | | | | | | This commit replaces the deep-copy based state revert mechanism with a linear complexity journal. This commit also hides several internal StateDB methods to limit the number of ways in which calling code can use the journal incorrectly. As usual consultation and bug fixes to the initial implementation were provided by @karalabe, @obscuren and @Arachnid. Thank you! (cherry picked from commit 1f1ea18b5414bea22332bb4fce53cc95b5c6a07d)
* [release/1.4.15] cmd, core, internal, light, tests: avoid hashing the code ↵Péter Szilágyi2016-10-031-2/+3
| | | | | | in the VM (cherry picked from commit cb84e3f02953f2df166ae69369d222dcbbd7d78d)
* [release/1.4.13] core/state: track all accounts in canon stateFelix Lange2016-09-261-7/+8
| | | | | | | This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes. (cherry picked from commit a59a93f476434f2805c8fd3e10bf1b2f579b078f)
* [release/1.4.10] core, params, tests: add DAO hard-fork balance movesPéter Szilágyi2016-07-161-0/+2
| | | | (cherry picked from commit 461cdb593b9e5bd9ae9ac35c68809a3a29290dcb)
* [release/1.4.9] Revert "test, cmd/evm, core, core/vm: illegal code hash ↵Péter Szilágyi2016-06-291-1/+0
| | | | | | implementation" This reverts commit a9c94cbf48fefe39104ee3495df139ff374dd219.
* [release/1.4.8] test, cmd/evm, core, core/vm: illegal code hash implementationJeffrey Wilcke2016-06-241-0/+1
| | | | | | | | | | This implements a generic approach to enabling soft forks by allowing anyone to put in hashes of contracts that should not be interacted from. This will help "The DAO" in their endevour to stop any whithdrawals from any DAO contract by convincing the mining community to accept their code hash. (cherry picked from commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d)
* all: update license informationFelix Lange2016-04-151-1/+1
|
* core: added basic chain configurationJeffrey Wilcke2016-04-011-5/+29
| | | | | | | | | Added chain configuration options and write out during genesis database insertion. If no "config" was found, nothing is written to the database. Configurations are written on a per genesis base. This means that any chain (which is identified by it's genesis hash) can have their own chain settings.
* core: Added EVM configuration optionsJeffrey Wilcke2016-03-241-3/+8
| | | | | The EVM is now initialised with an additional configured object that allows you to turn on debugging options.
* core, core/vm, tests: changed the initialisation behaviour of the EVMJeffrey Wilcke2016-03-231-1/+7
| | | | | | | The EVM was previously initialised and created for every CALL, CALLCODE, DELEGATECALL and CREATE. This PR changes this behaviour so that the same EVM can be used through the session and beyond as long as the Environment sticks around.
* all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()Ricardo Catalinas Jiménez2016-02-221-1/+1
| | | | As we aren't really using the standarized SHA-3
* parmas, crypto, core, core/vm: homestead consensus protocol changesGustav Simonsson2016-02-181-8/+18
| | | | | | | | * change gas cost for contract creating txs * invalidate signature with s value greater than secp256k1 N / 2 * OOG contract creation if not enough gas to store code * new difficulty adjustment algorithm * new DELEGATECALL op code
* core, tests: get_hash fixJeffrey Wilcke2015-10-211-7/+5
| | | | | Make sure that we're fetching the hash from the current chain and not the canonical chain.
* core, core/vm, cmd/evm: remove redundant balance checkGustav Simonsson2015-10-061-3/+3
|
* cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-041-26/+21
| | | | | | | | | | | | | | | | | * 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`.
* all: move common.Database to package ethdbFelix Lange2015-09-151-1/+2
|
* Add tests for uncle timestamps and refactor timestamp typeGustav Simonsson2015-08-251-3/+3
|
* core, tests: reduced state copy by N callsJeffrey Wilcke2015-08-071-7/+7
| | | | | Reduced the amount of state copied that are required by N calls by doing a balance check prior to any state modifications.
* 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
|
* Use uint64 for block header timestampGustav Simonsson2015-06-301-3/+3
|
* Add lost rebase changesTaylor Gerring2015-06-191-1/+9
|
* Cleanup/reorgTaylor Gerring2015-06-191-0/+252