aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* consensus, core: drop all the legacy custom core error typesPéter Szilágyi2017-04-061-1/+1
|
* core, consensus: pluggable consensus engines (#3817)Péter Szilágyi2017-04-051-2/+2
| | | | | This commit adds pluggable consensus engines to go-ethereum. In short, it introduces a generic consensus interface, and refactors the entire codebase to use this interface.
* all: swap out the C++ ethash to the pure Go one (mining todo)Péter Szilágyi2017-03-091-2/+2
|
* all: unify big.Int zero checks, use common/math in more places (#3716)Felix Lange2017-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/math: optimize PaddedBigBytes, use it more name old time/op new time/op delta PaddedBigBytes-8 71.1ns ± 5% 46.1ns ± 1% -35.15% (p=0.000 n=20+19) name old alloc/op new alloc/op delta PaddedBigBytes-8 48.0B ± 0% 32.0B ± 0% -33.33% (p=0.000 n=20+20) * all: unify big.Int zero checks Various checks were in use. This commit replaces them all with Int.Sign, which is cheaper and less code. eg templates: func before(x *big.Int) bool { return x.BitLen() == 0 } func after(x *big.Int) bool { return x.Sign() == 0 } func before(x *big.Int) bool { return x.BitLen() > 0 } func after(x *big.Int) bool { return x.Sign() != 0 } func before(x *big.Int) int { return x.Cmp(common.Big0) } func after(x *big.Int) int { return x.Sign() } * common/math, crypto/secp256k1: make ReadBits public in package math
* all: disable log message colors outside of gethFelix Lange2017-02-271-1/+1
| | | | Also tweak behaviour so colors are only enabled when stderr is a terminal.
* common: move big integer math to common/math (#3699)Felix Lange2017-02-274-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: remove CurrencyToString Move denomination values to params instead. * common: delete dead code * common: move big integer operations to common/math This commit consolidates all big integer operations into common/math and adds tests and documentation. There should be no change in semantics for BigPow, BigMin, BigMax, S256, U256, Exp and their behaviour is now locked in by tests. The BigD, BytesToBig and Bytes2Big functions don't provide additional value, all uses are replaced by new(big.Int).SetBytes(). BigToBytes is now called PaddedBigBytes, its minimum output size parameter is now specified as the number of bytes instead of bits. The single use of this function is in the EVM's MSTORE instruction. Big and String2Big are replaced by ParseBig, which is slightly stricter. It previously accepted leading zeros for hexadecimal inputs but treated decimal inputs as octal if a leading zero digit was present. ParseUint64 is used in places where String2Big was used to decode a uint64. The new functions MustParseBig and MustParseUint64 are now used in many places where parsing errors were previously ignored. * common: delete unused big integer variables * accounts/abi: replace uses of BytesToBig with use of encoding/binary * common: remove BytesToBig * common: remove Bytes2Big * common: remove BigTrue * cmd/utils: add BigFlag and use it for error-checked integer flags While here, remove environment variable processing for DirectoryFlag because we don't use it. * core: add missing error checks in genesis block parser * common: remove String2Big * cmd/evm: use utils.BigFlag * common/math: check for 256 bit overflow in ParseBig This is supposed to prevent silent overflow/truncation of values in the genesis block JSON. Without this check, a genesis block that set a balance larger than 256 bits would lead to weird behaviour in the VM. * cmd/utils: fixup import
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-235-16/+16
|
* core, core/state, core/vm: remove exported account getters (#3618)Jeffrey Wilcke2017-02-233-18/+19
| | | | Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods.
* tests: cleanup tester blockchain after test run (#3692)Péter Szilágyi2017-02-201-0/+1
|
* params: core, core/vm, miner: 64bit gas instructionsJeffrey Wilcke2017-02-143-5/+5
| | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"Jeffrey Wilcke2017-02-134-6/+6
| | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757.
* params: core, core/vm, miner: 64bit gas instructions (#3514)Jeffrey Wilcke2017-02-023-5/+5
| | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-171-1/+2
|
* tests: unskip testJeffrey Wilcke2017-01-121-1/+1
|
* all: fix spelling errorsPéter Szilágyi2017-01-074-6/+6
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-074-10/+4
|
* core/vm: move Log to core/typesFelix Lange2017-01-063-7/+8
| | | | | | | | This significantly reduces the dependency closure of ethclient, which no longer depends on core/vm as of this change. All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too, the constructor simply returned a literal.
* core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-055-20/+19
| | | | | | | | | | | | | | | 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.
* core, core/vm: implemented a generic environment (#3348)Jeffrey Wilcke2016-12-063-164/+63
| | | | | | | | Environment is now a struct (not an interface). This reduces a lot of tech-debt throughout the codebase where a virtual machine environment had to be implemented in order to test or run it. The new environment is suitable to be used en the json tests, core consensus and light client.
* tests: update from github.com/ethereum/tests @ f21c49dc816eFelix Lange2016-11-2531-1065/+1799
|
* core, core/state: fixed consensus issue added touch revertJeffrey Wilcke2016-11-253-29/+119
| | | | | Implemented proper touch revert journal entries and copied a Parity consensus bug in order to remain in sync with the current longest chain.
* core/types: turn off nonce checking for Call messagesZsolt Felfoldi2016-11-141-1/+1
|
* tests: updatedJeffrey Wilcke2016-11-14155-56656/+55466
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-134-34/+12
|
* tests: added new EIP158 testsJeffrey Wilcke2016-11-13731-1158/+84508
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-136-204/+215
| | | | | | | | | | | | | | | 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>
* core, core/vm: added gas price variance tableJeffrey Wilcke2016-10-1527-42/+76970
| | | | | | | | | | | | | 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.
* Merge pull request #3094 from fjl/tests-updateFelix Lange2016-10-06745-65640/+188442
|\ | | | | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1
| * tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1Felix Lange2016-10-06745-65640/+188442
| | | | | | | | | | | | Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'.
* | core/state: implement reverts by journaling all changesFelix Lange2016-10-063-48/+26
|/ | | | | | | | | | 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!
* cmd, core, internal, light, tests: avoid hashing the code in the VMPéter Szilágyi2016-10-012-3/+5
|
* core/state: track all accounts in canon stateFelix Lange2016-09-263-15/+14
| | | | | This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes.
* core/vm: Refactor tracing to make Tracer the main interfaceNick Johnson2016-08-221-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes several refactors: - Define a Tracer interface, implementing the `CaptureState` method - Add the VM environment as the first argument of `Tracer.CaptureState` - Rename existing functionality `StructLogger` an make it an implementation of `Tracer` - Delete `StructLogCollector` and make `StructLogger` collect the logs directly - Change all callers to use the new `StructLogger` where necessary and extract logs from that. - Deletes the apparently obsolete and likely nonfunctional 'TraceCall' from the eth API. Callers that only wish accumulated logs can use the `StructLogger` implementation straightforwardly. Callers that wish to efficiently capture VM traces and operate on them without excessive copying can now implement the `Tracer` interface to receive VM state at each step and do with it as they wish. This CL also removes the accumulation of logs from the vm.Environment; this was necessary as part of the refactor, but also simplifies it by removing a responsibility that doesn't directly belong to the Environment.
* cmd, core, eth, miner, params, tests: finalize the DAO forkPéter Szilágyi2016-07-152-238/+7012
|
* core, params, tests: add DAO hard-fork balance movesPéter Szilágyi2016-07-155-35/+1870
|
* core: added CheckNonce() to Message interfacezsfelfoldi2016-07-111-0/+1
|
* Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"Péter Szilágyi2016-06-291-1/+0
| | | | This reverts commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d.
* test, cmd/evm, core, core/vm: illegal code hash implementationJeffrey Wilcke2016-06-221-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.
* core: improved chainDb using sequential keyszsfelfoldi2016-06-071-2/+2
|
* eth: enable bad block reportsFelix Lange2016-05-251-7/+0
| | | | | | | | | | | | We used to have reporting of bad blocks, but it was disabled before the Frontier release. We need it back because users are usually unable to provide the full RLP data of a bad block when it occurs. A shortcoming of this particular implementation is that the origin peer is not tracked for blocks received during eth/63 sync. No origin peer info is still better than no report at all though.
* all: fix go vet warningsFelix Lange2016-04-152-2/+2
|
* all: update license informationFelix Lange2016-04-154-4/+4
|
* tests: remove eth, node, accounts dependenciesFelix Lange2016-04-121-42/+17
| | | | Unlocking the accounts in the test doesn't help with anything.
* core: added basic chain configurationJeffrey Wilcke2016-04-017-189/+221
| | | | | | | | | 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-242-4/+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.
* Merge pull request #2260 from karalabe/ethash-cache-fixesPéter Szilágyi2016-02-241-0/+1
|\ | | | | Godeps, eth, tests: update ethash, used shared for testing
| * Godeps, eth, tests: update ethash, used shared for testingPéter Szilágyi2016-02-241-0/+1
| |
* | 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
* core: Added new TD strategy which mitigate the risk for selfish miningJeffrey Wilcke2016-02-181-0/+3
| | | | | | | | | | | | | | | | Assuming the following scenario where a miner has 15% of all hashing power and the ability to exert a moderate control over the network to the point where if the attacker sees a message A, it can't stop A from propagating, but what it **can** do is send a message B and ensure that most nodes see B before A. The attacker can then selfish mine and augment selfish mining strategy by giving his own blocks an advantage. This change makes the time at which a block is received less relevant and so the level of control an attacker has over the network no longer makes a difference. This change changes the current td algorithm `B_td > C_td` to the new algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
* core, core/vm, crypto: fixes for homesteadJeffrey Wilcke2016-02-181-0/+9
| | | | | | * Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests
* tests: updated homestead testsJeffrey Wilcke2016-02-18800-11178/+181716
|
* parmas, crypto, core, core/vm: homestead consensus protocol changesGustav Simonsson2016-02-1827-9136/+23458
| | | | | | | | * 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
* cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-271-15/+8
|
* Update common test filesGustav Simonsson2015-11-203-39/+865
|
* tests: fix data race in bad-block-report disabling during testsPéter Szilágyi2015-11-051-2/+5
|
* cmd/utils, crypto: add --lightkdf flag for lighter KDFDrake Burroughs2015-10-291-1/+1
|
* tests: update JSON files, add new wrappersGustav Simonsson2015-10-2326-4809/+21810
|
* 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/state: move gas tracking out of core/stateFelix Lange2015-10-171-5/+3
| | | | | | | The amount of gas available for tx execution was tracked in the StateObject representing the coinbase account. This commit makes the gas counter a separate type in package core, which avoids unintended consequences of intertwining the counter with state logic.
* core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-163-28/+31
|
* core, core/vm, cmd/evm: remove redundant balance checkGustav Simonsson2015-10-061-3/+3
|
* cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-041-4/+4
| | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-044-32/+27
| | | | | | | | | | | | | | | | | * 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`.
* Merge pull request #1405 from fjl/lean-trieJeffrey Wilcke2015-10-012-10/+10
|\ | | | | core, trie: new trie
| * core, core/state: batch-based state syncFelix Lange2015-09-232-10/+10
| |
* | tests: add test for StateTests/stCallCodes.jsonGustav Simonsson2015-09-213-1/+6807
|/
* tests: use lastblockhash field to validate reorgs and block headersGustav Simonsson2015-09-181-41/+49
|
* tests: update common test wrappers and test filesGustav Simonsson2015-09-187-424/+13102
|
* all: move common.Database to package ethdbFelix Lange2015-09-152-2/+3
|
* core: split out TD from database and all internalsPéter Szilágyi2015-09-111-3/+2
|
* Add TestBcForkUncleTests and update JSON filesGustav Simonsson2015-08-31750-1865/+2305
|
* Add tests for uncle timestamps and refactor timestamp typeGustav Simonsson2015-08-254-7/+327
|
* core, tests: Double SUICIDE fixJeffrey Wilcke2015-08-212-152/+772
|
* cmd/evm, core/vm, tests: changed DisableVm to EnableVmJeffrey Wilcke2015-08-124-12/+12
|
* Merge pull request #1604 from obscuren/db-mergeJeffrey Wilcke2015-08-091-1/+1
|\ | | | | core, eth, trie, xeth: merged state, chain, extra databases in one
| * core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-1/+1
| |
* | 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, 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.
* | core/vm, tests: implemented semi-jit vmJeffrey Wilcke2015-08-074-1/+160
|/ | | | * changed stack and removed stack ptr. Let go decide on slice reuse.
* core, miner: added difficulty bombJeffrey Wilcke2015-08-051-0/+100
|
* tests: updatedJeffrey Wilcke2015-07-29751-8227/+8337
|
* Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-2812-12/+12
|\ | | | | all: fix license headers one more time
| * all: fix license headers one more timeFelix Lange2015-07-2412-12/+12
| | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* | core: 5 ether block rewardJeffrey Wilcke2015-07-251-0/+8
|/
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-2312-40/+72
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* tests: document RLP testsFelix Lange2015-07-171-4/+20
|
* cmd/ethtest, tests: add support for RLP JSON testsFelix Lange2015-07-173-0/+177
|
* cmd, core, eth, common: genesis preparationJeffrey Wilcke2015-07-101-3/+2
| | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
* Unskip SimpleTx3, check err in pre/post state validationsGustav Simonsson2015-07-082-14/+33
|
* Update Ethereum JSON test files and wrappersGustav Simonsson2015-07-0812-1729/+1069
|
* all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: update license informationFelix Lange2015-07-0710-0/+160
|
* cmd,eth,rpc,tests: default coinbaseJeffrey Wilcke2015-07-072-10/+12
|
* Add TestBcGasPricer, comments and unskip testsGustav Simonsson2015-07-062-8/+19
|
* Merge pull request #1400 from obscuren/badblock-reportingJeffrey Wilcke2015-07-061-0/+3
|\ | | | | core, miner, tests: added test, implemented bad block reporting
| * core, miner, tests: added test, implemented bad block reportingJeffrey Wilcke2015-07-051-0/+3
| |
* | Fix core error forwarding, unify OOG VM errGustav Simonsson2015-07-041-5/+0
|/
* core, miner, tests: renamed state methodsJeffrey Wilcke2015-07-042-2/+2
| | | | | | | | | | | | * Update => SyncIntermediate * Added SyncObjects SyncIntermediate only updates whatever has changed, but, as a side effect, requires much more disk space. SyncObjects will only sync whatever is required for a block and will not save intermediate state to disk. As drawback this requires more time when more txs come in.
* Update Ethereum JSON tests, skip failingGustav Simonsson2015-07-0320-4520/+1935
|
* Use uint64 for block header timestampGustav Simonsson2015-06-301-3/+3
|
* core/types: make blocks immutableFelix Lange2015-06-301-6/+5
|
* core/types: make transactions immutableFelix Lange2015-06-301-23/+22
|
* tests: SetGasLimitobscuren2015-06-211-1/+1
|
* Add --skip option to CLITaylor Gerring2015-06-198-75/+82
| | | | | Disassociates hardcoded tests to skip when running via CLI. Tests still skipped when running `go test`
* recover test logicTaylor Gerring2015-06-191-1/+1
|
* Build error fixesTaylor Gerring2015-06-192-6/+5
|
* Rebase cleanupTaylor Gerring2015-06-192-30/+1
|
* Add stdin optionTaylor Gerring2015-06-195-182/+345
|
* Add lost rebase changesTaylor Gerring2015-06-191-1/+9
|
* Cleanup loggingTaylor Gerring2015-06-195-11/+13
|
* Fix geth blocktest commandTaylor Gerring2015-06-191-2/+2
|
* DRY file loadingTaylor Gerring2015-06-195-58/+42
|
* More consistent test interfaces + test skippingTaylor Gerring2015-06-197-78/+108
|
* Cleanup/reorgTaylor Gerring2015-06-198-273/+265
|
* Return error up stack instead of passing testing var downTaylor Gerring2015-06-197-84/+159
|
* DRY log checkTaylor Gerring2015-06-192-61/+46
|
* Separate and identify tests runnersTaylor Gerring2015-06-196-283/+387
|
* Flatten helper directoryTaylor Gerring2015-06-196-70/+22
|
* Fix pathsTaylor Gerring2015-06-194-45/+61
|
* Split tests from helper codeTaylor Gerring2015-06-195-555/+170
|
* Flatten vm directoryTaylor Gerring2015-06-194-3/+387
|
* Merge pull request #1282 from obscuren/state-cleanupJeffrey Wilcke2015-06-182-6/+6
|\ | | | | core/state: cleanup & optimisations
| * xeth, tests: fixed apiobscuren2015-06-171-1/+1
| |
| * core/state, core/vm: reworked storage get / set to use common.Hashobscuren2015-06-171-5/+5
| |
* | Update Ethereum JSON test filesGustav Simonsson2015-06-1616-802/+2539
|/
* Merge pull request #1228 from obscuren/vm-optimisationsJeffrey Wilcke2015-06-111-2/+9
|\ | | | | core/vm: optimisations
| * core, core/vm: added structure loggingobscuren2015-06-101-2/+9
| | | | | | | | This also reduces the time required spend in the VM
* | tests: check gas limit errorobscuren2015-06-101-1/+1
|/
* Skip BlockTests/bcValidBlockTests SimpleTx3Gustav Simonsson2015-06-091-1/+3
|
* Skip VMTests RandomTests temporarily until they are fixedGustav Simonsson2015-06-091-0/+1
|
* Update Ethereum JSON test filesGustav Simonsson2015-06-0935-348/+20667
|
* tests: use state logs instead own kept logsobscuren2015-06-051-3/+3
|
* Merge pull request #1150 from fjl/fix-jumpdestJeffrey Wilcke2015-06-041-0/+124
|\ | | | | core/vm: improve JUMPDEST analysis
| * tests/files: update tests to d309b4679a58d2Felix Lange2015-06-033-912/+1386
| |
| * Update Ethereum JSON test filesGustav Simonsson2015-05-297-3664/+4028
| |
* | Add new 0th gen uncle testGustav Simonsson2015-06-021-0/+1
| |
* | Use older version of stSpecialTest until JUMPDEST fix is mergedGustav Simonsson2015-06-021-124/+0
| |
* | Update Ethereum JSON test filesGustav Simonsson2015-06-022-985/+1250
| |
* | Update Ethereum JSON test filesGustav Simonsson2015-06-029-4574/+5412
|/
* tests: removed missing block testobscuren2015-05-261-4/+0
|
* tests: updatedobscuren2015-05-266-4471/+6475
|
* Add StateTests/RandomTests and VMTests/RandomTestsGustav Simonsson2015-05-221-16/+10
|
* Add wrapper for BlockTests/bcWalletTest.jsonGustav Simonsson2015-05-181-0/+4
|
* Update Ethereum JSON test filesGustav Simonsson2015-05-185-31/+9199
|
* tests: added conditional skip on long running VM testsobscuren2015-05-201-0/+7
| | | | | Set the TEST_VM_COMPLEX env var to test complex vm tests which require a lot of ram and quite some time.
* core/vm: RETURN op code returns pointer to memory rather than copyobscuren2015-05-201-4/+4
|
* tests/vm: updated tests and skipped output for specific testsobscuren2015-05-201-8/+11
| | | | Skipped tests due to large return value
* Add StateTests/RandomTests but skip for nowGustav Simonsson2015-05-161-0/+21
|
* Update StateTests and nil create return on failed code depositGustav Simonsson2015-05-161-2/+12
|
* Update Ethereum JSON testsGustav Simonsson2015-05-1517-2734/+420801
|
* unskip StateTests/stTransactionTest and use test tx nonceGustav Simonsson2015-05-152-5/+6
|
* Change default keystore dirGustav Simonsson2015-05-131-1/+1
|
* Update key store to new spec but keep address field for nowGustav Simonsson2015-05-121-1/+1
| | | | * Also fix address types post-rebase
* replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-121-2/+2
|
* miner, tests: fixed block testobscuren2015-05-091-1/+1
|
* Add bcTotalDifficultyTest and unskip now working tx testsGustav Simonsson2015-05-073-6/+6
|
* Update JSON test filesGustav Simonsson2015-05-0749-4914/+9977
|
* Unskip now working tests, remove debug printGustav Simonsson2015-05-071-3/+0
|
* Unskip working blocktests following ethash cache reusageGustav Simonsson2015-05-051-10/+4
|
* core: return the index of the block that failed when inserting a chainobscuren2015-04-291-1/+1
|
* Add loading of block test privkey if presentGustav Simonsson2015-04-282-8/+21
|
* Update JSON testsGustav Simonsson2015-04-2820-347/+2744
|
* Add block header validations for block testsGustav Simonsson2015-04-231-0/+82
|
* Include ZeroByteAtTheEnd and RandomByteAtTheEnd testsGustav Simonsson2015-04-231-8/+1
|
* Unskip BlockTests/bcInvalidHeaderTest.json wrongUncleHashGustav Simonsson2015-04-231-4/+1
|
* Finally, glorious HEXGustav Simonsson2015-04-231-4/+4
|
* Add StateTests/stMemoryStressTest.json but skip for nowGustav Simonsson2015-04-231-0/+6
|
* Exclude TransactionWithSvalue0 as it expects invalid s value to be validGustav Simonsson2015-04-231-0/+1
|
* Update github.com/ethereum/tests filesGustav Simonsson2015-04-2326-6304/+5619
|
* Explicitly skip TransactionTests/tt10mbDataField.jsonGustav Simonsson2015-04-232-6/+3
|
* Add test wrapper for VMTests/vmInputLimits1.jsonGustav Simonsson2015-04-231-0/+5
|
* Further fixes to block test wrapperGustav Simonsson2015-04-212-47/+182
| | | | | | | | | | | | * Move go test wrapper for block tests from cmd/geth to tests * Fix logic for when tests are valid or not, by adding correct validations for expected valid/invalid blocks * Change block insertion helper to work on single blocks * Add one test case for each file in BlockTests and comment out the tests which are currently failing * Add Skip call in all block tests in lieu of performance fixes around ethash cache which are needed before it will be fast enough to start / stop the node between each test
* Add block tests wrapper and fixes for tx testsGustav Simonsson2015-04-202-65/+90
| | | | | | | | | * Add fixes to parsing and converting of fields in tx tests * Correct logic in tx tests; validation of fields and correct logic for when RLP decoding works/fails and when this is expected or not * Rename files for consistency * Add block tests wrapper to run block tests with go test
* tests: hopefully improve test conversion helpersFelix Lange2015-04-192-30/+35
| | | | (cherry picked from commit 035a30acbefb5eeadc1fc8dbd567775d5688f8a9)
* cmd/geth, tests: enable running multiple tests from a single fileFelix Lange2015-04-191-9/+40
| | | | | | | | This commit also changes the block test loading so tests containing invalid RLP blocks can be loaded and return an error only when they are run. (cherry picked from commit 898ba87984791249586b97c9ce340dd087b79d67)
* Fixes for TransactionTestsGustav Simonsson2015-04-163-41/+53
| | | | | | | | | * Include tests which now has consistent HEX encodings * Comment out two failing tests: " "TransactionWithHihghNonce" due to wrong nonce size "TransactionWithSvalueHigh" due to wrong ECDSA s range * Cleanup conversion functions and fix expected encodings for tests validation fields
* Update JSON testsGustav Simonsson2015-04-1638-207/+4177
|
* Enable more tx tests by expecting most common encoding of valuesGustav Simonsson2015-04-102-15/+8
|
* Remove unneeded map assignments for working tx RLP testsGustav Simonsson2015-04-101-7/+0
|
* Add TransactionTests wrapped as Go testsGustav Simonsson2015-04-103-3/+211
| | | | | | | | | * Add initial go wrapping for TransactionTests with some tests disabled in lieu of consistent HEX encodings and a few other pending bugfixes * TODO: Consider better way of perhaps modelling each test in the JSON files as a single Go test, instead of one Go test per JSON file
* Update JSON test filesGustav Simonsson2015-04-1071-1165836/+18331
|
* Fixed tests to reflect log changesobscuren2015-04-092-17/+17
|
* Block header changed & console miner controlobscuren2015-04-061-1/+1
| | | | | | * miner control moved to `admin.miner` * miner option to set extra data * block extra now bytes
* basic glogobscuren2015-04-041-7/+8
|
* Merge commit 'f6bd4b16e38f9cacd57b57befdeeaed789a473c4' into developobscuren2015-04-031-651/+781
|
* fixed stack levelobscuren2015-04-031-0/+28
|
* Merge commit '812cbff1a28d89b44a0c8c5a210ac61c7e19da35' into developobscuren2015-04-0328-23/+1939
|
* Removed old (unused) argumentobscuren2015-04-022-2/+2
|
* Merge commit '4e3ffbcf9bae7e44e45fd1b6e504b3645040d73c' into developobscuren2015-04-011-0/+71
|
* Merge commit 'f801183b8bea24ce9988fbd06c2f17fedfc3587f' into developobscuren2015-04-015-6/+231
|
* Blocktest fixed, Execution fixedobscuren2015-04-011-7/+6
| | | | | | * Added new CreateAccount method which properly overwrites previous accounts (excluding balance) * Fixed block tests (100% success)
* Merge commit 'ec181b308addc30c04973e9058960d579c84eef5' into developobscuren2015-03-3110-91/+701
|
* Merge commit 'a718515b3d43f00497231f981b5ea757b71d55ff' into developobscuren2015-03-261-0/+11
|
* Cleaned up changesobscuren2015-03-241-2/+2
|
* Modified according to poc 9 changesobscuren2015-03-242-3/+8
| | | | * Refund of value
* Merge commit '24066dca4646c8a376aa5dfbceec0a4b3f872c11' into developobscuren2015-03-2471-6350/+3223
|
* Merge commit '58c6cc8fd7ff8a27004ed62d912e0a61ae1b73bb' into developobscuren2015-03-2439-3403/+5526
|
* removed legacy codeobscuren2015-03-241-2/+1
|
* fix ethtest loggingzelig2015-03-241-1/+1
|
* moved state and vm to coreobscuren2015-03-233-4/+4
|
* Fix new types for blocktests and comment out non-working log level setterGustav Simonsson2015-03-231-4/+4
|
* gofmtGustav Simonsson2015-03-231-4/+2
|
* Add validation of post state accounts to block testsGustav Simonsson2015-03-231-4/+31
|
* Merge branch 'develop' into conversionobscuren2015-03-203-1253/+4053
|\
| * Merge commit 'f144a95940a5df0809bb028eef7b337125423602' into developobscuren2015-03-203-1253/+4053
| |
* | Merge branch 'develop' into conversionobscuren2015-03-19399-1150/+32143
|\|
| * Merge commit '85fa3790ac9f67232f0e31e7f861c66ef0e0047e' into developobscuren2015-03-19399-1150/+32143
| |
* | conversionsobscuren2015-03-181-5/+4
| |
* | Fixed tests and bloomobscuren2015-03-181-8/+18
| |
* | bloomobscuren2015-03-171-10/+15
| |
* | Fixed VM & Tests w/ conversionobscuren2015-03-172-8/+2
| |
* | Merge branch 'develop' into conversionobscuren2015-03-17121-960/+12698
|\| | | | | | | | | Conflicts: common/types.go
| * Merge commit 'dffaa678f966f87dcd011671a16b554b29a37549' into developobscuren2015-03-17121-960/+12698
| |
* | fixed toobscuren2015-03-172-50/+65
| |
* | updated blockpoolobscuren2015-03-171-14/+41
|/
* Moved ethutil => commonobscuren2015-03-164-39/+39
|
* mergeobscuren2015-03-151-0/+240
|\
| * tests: add helper functions for block testsFelix Lange2015-03-141-0/+240
| |
* | Changed context and ADDMOD, MULMODobscuren2015-03-131-1/+1
| | | | | | | | | | * Cleaned up VM execution. VM run now takes a context * ADDMOD/MULMOD - removed incorrect cast
* | Merge commit '6051345bc9ab8ccf74a49c43342771e0c2cba588' into developobscuren2015-03-1314-0/+1003
| |
* | Removed some of that gas pre pay magicobscuren2015-03-131-2/+1
| |
* | Merge commit '3ff7a627d1921be0aeacdd8eb2853ba4537487eb' into developobscuren2015-03-131-0/+71
| |
* | run all testobscuren2015-03-131-6/+0
| |
* | fixed ethtestobscuren2015-03-131-0/+6
| |
* | Merge commit '412e8b0e377bd89fc8fc858bd09c89deee805c1e' into developobscuren2015-03-1316-3/+932
|/
* Merge commit '92c6150199395eea6c9893b631cc990e3ff72a33' into developobscuren2015-03-1223-421/+2568256
|
* Merge branch origin/develop into accounts-integrationFelix Lange2015-03-111-7/+0
|\ | | | | | | | | | | | | Conflicts: cmd/blocktest/main.go cmd/mist/debugger.go cmd/utils/cmd.go
| * reworked stackobscuren2015-03-101-6/+0
| |
| * wipobscuren2015-03-101-7/+6
| |
* | cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig callsFelix Lange2015-03-101-3/+0
|/
* Merge commit '3deb470b2d07d28040a381722022cdf8867a829a' into poc-9obscuren2015-03-096-1080/+1890
|
* Updated tests and fixed suicideobscuren2015-03-091-0/+8
|
* Merge commit 'c1cafb56d5da57a44f1d766c5299f11664b93921' into poc-9obscuren2015-03-0911-1893/+1150
|
* Merge commit 'e2c75b0fa17394553b93fe7ddd62c0f6a6441119' into poc-9obscuren2015-03-083-4/+723
|
* Merge commit '4e8a9a1cd4a10370fc4a888af0fb2def6f1b961b' into poc-9obscuren2015-03-0635-3914/+18363
|
* mergeobscuren2015-03-061-4/+0
|\
| * Fix VM tests not checkedPaweł Bylica2015-03-051-4/+0
| |
* | GasLimit check updatedobscuren2015-03-041-0/+5
| |
* | Fixed error for invalid transactionobscuren2015-03-032-5/+5
| |
* | Merge commit 'a6e04ab05150d1b5aa4adb297f3e5146b1559b02' into poc-9obscuren2015-03-0313-135/+378
| |
* | Merge commit '42a210b571b9358df16da148d9724c2ef9abbca5' into poc-9obscuren2015-03-0312-289/+457
| |
* | Merge commit 'd9d40888ce9498b25925ccbf1447b1f62597aa2f' into poc-9obscuren2015-03-0312-459/+291
| |
* | Merge commit '0867e4fae96c0b0d234f1710119a129f8b0d96f7' into poc-9obscuren2015-03-0314-330/+312
| |
* | Updated gast costsobscuren2015-03-031-3/+11
| |
* | Merge commit '4659b51b50394c596f0548eb53390c80ba96e392' into poc-9obscuren2015-03-0311-8233/+168
| |
* | wupobscuren2015-03-031-7/+10
| |
* | Merge commit 'b7ec9fbb0e49e345a8a2566226a76d50b48266a7' into poc-9obscuren2015-03-037-89/+273
| |
* | Delet => Deleteobscuren2015-03-031-8/+15
| |
* | Fixed test helperobscuren2015-03-032-4/+4
| |