Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | consensus, core: drop all the legacy custom core error types | Péter Szilágyi | 2017-04-06 | 1 | -1/+1 |
| | |||||
* | core, consensus: pluggable consensus engines (#3817) | Péter Szilágyi | 2017-04-05 | 1 | -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ágyi | 2017-03-09 | 1 | -2/+2 |
| | |||||
* | all: unify big.Int zero checks, use common/math in more places (#3716) | Felix Lange | 2017-02-28 | 1 | -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 geth | Felix Lange | 2017-02-27 | 1 | -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 Lange | 2017-02-27 | 4 | -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 rework | Péter Szilágyi | 2017-02-23 | 5 | -16/+16 |
| | |||||
* | core, core/state, core/vm: remove exported account getters (#3618) | Jeffrey Wilcke | 2017-02-23 | 3 | -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ágyi | 2017-02-20 | 1 | -0/+1 |
| | |||||
* | params: core, core/vm, miner: 64bit gas instructions | Jeffrey Wilcke | 2017-02-14 | 3 | -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 Wilcke | 2017-02-13 | 4 | -6/+6 |
| | | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757. | ||||
* | params: core, core/vm, miner: 64bit gas instructions (#3514) | Jeffrey Wilcke | 2017-02-02 | 3 | -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 Johnson | 2017-01-17 | 1 | -1/+2 |
| | |||||
* | tests: unskip test | Jeffrey Wilcke | 2017-01-12 | 1 | -1/+1 |
| | |||||
* | all: fix spelling errors | Péter Szilágyi | 2017-01-07 | 4 | -6/+6 |
| | |||||
* | all: fix issues reported by honnef.co/go/simple/cmd/gosimple | Felix Lange | 2017-01-07 | 4 | -10/+4 |
| | |||||
* | core/vm: move Log to core/types | Felix Lange | 2017-01-06 | 3 | -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 Wilcke | 2017-01-05 | 5 | -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 Wilcke | 2016-12-06 | 3 | -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 @ f21c49dc816e | Felix Lange | 2016-11-25 | 31 | -1065/+1799 |
| | |||||
* | core, core/state: fixed consensus issue added touch revert | Jeffrey Wilcke | 2016-11-25 | 3 | -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 messages | Zsolt Felfoldi | 2016-11-14 | 1 | -1/+1 |
| | |||||
* | tests: updated | Jeffrey Wilcke | 2016-11-14 | 155 | -56656/+55466 |
| | |||||
* | core/types, params: EIP#155 | Jeffrey Wilcke | 2016-11-13 | 4 | -34/+12 |
| | |||||
* | tests: added new EIP158 tests | Jeffrey Wilcke | 2016-11-13 | 731 | -1158/+84508 |
| | |||||
* | core, core/state, trie: EIP158, reprice & skip empty account write | Jeffrey Wilcke | 2016-11-13 | 6 | -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 table | Jeffrey Wilcke | 2016-10-15 | 27 | -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-update | Felix Lange | 2016-10-06 | 745 | -65640/+188442 |
|\ | | | | | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1 | ||||
| * | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1 | Felix Lange | 2016-10-06 | 745 | -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 changes | Felix Lange | 2016-10-06 | 3 | -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 VM | Péter Szilágyi | 2016-10-01 | 2 | -3/+5 |
| | |||||
* | core/state: track all accounts in canon state | Felix Lange | 2016-09-26 | 3 | -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 interface | Nick Johnson | 2016-08-22 | 1 | -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 fork | Péter Szilágyi | 2016-07-15 | 2 | -238/+7012 |
| | |||||
* | core, params, tests: add DAO hard-fork balance moves | Péter Szilágyi | 2016-07-15 | 5 | -35/+1870 |
| | |||||
* | core: added CheckNonce() to Message interface | zsfelfoldi | 2016-07-11 | 1 | -0/+1 |
| | |||||
* | Revert "test, cmd/evm, core, core/vm: illegal code hash implementation" | Péter Szilágyi | 2016-06-29 | 1 | -1/+0 |
| | | | | This reverts commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d. | ||||
* | test, cmd/evm, core, core/vm: illegal code hash implementation | Jeffrey Wilcke | 2016-06-22 | 1 | -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 keys | zsfelfoldi | 2016-06-07 | 1 | -2/+2 |
| | |||||
* | eth: enable bad block reports | Felix Lange | 2016-05-25 | 1 | -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 warnings | Felix Lange | 2016-04-15 | 2 | -2/+2 |
| | |||||
* | all: update license information | Felix Lange | 2016-04-15 | 4 | -4/+4 |
| | |||||
* | tests: remove eth, node, accounts dependencies | Felix Lange | 2016-04-12 | 1 | -42/+17 |
| | | | | Unlocking the accounts in the test doesn't help with anything. | ||||
* | core: added basic chain configuration | Jeffrey Wilcke | 2016-04-01 | 7 | -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 options | Jeffrey Wilcke | 2016-03-24 | 2 | -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 EVM | Jeffrey Wilcke | 2016-03-23 | 1 | -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-fixes | Péter Szilágyi | 2016-02-24 | 1 | -0/+1 |
|\ | | | | | Godeps, eth, tests: update ethash, used shared for testing | ||||
| * | Godeps, eth, tests: update ethash, used shared for testing | Péter Szilágyi | 2016-02-24 | 1 | -0/+1 |
| | | |||||
* | | all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() | Ricardo Catalinas Jiménez | 2016-02-22 | 1 | -1/+1 |
|/ | | | | As we aren't really using the standarized SHA-3 | ||||
* | core: Added new TD strategy which mitigate the risk for selfish mining | Jeffrey Wilcke | 2016-02-18 | 1 | -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 homestead | Jeffrey Wilcke | 2016-02-18 | 1 | -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 tests | Jeffrey Wilcke | 2016-02-18 | 800 | -11178/+181716 |
| | |||||
* | parmas, crypto, core, core/vm: homestead consensus protocol changes | Gustav Simonsson | 2016-02-18 | 27 | -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 stacks | Péter Szilágyi | 2015-11-27 | 1 | -15/+8 |
| | |||||
* | Update common test files | Gustav Simonsson | 2015-11-20 | 3 | -39/+865 |
| | |||||
* | tests: fix data race in bad-block-report disabling during tests | Péter Szilágyi | 2015-11-05 | 1 | -2/+5 |
| | |||||
* | cmd/utils, crypto: add --lightkdf flag for lighter KDF | Drake Burroughs | 2015-10-29 | 1 | -1/+1 |
| | |||||
* | tests: update JSON files, add new wrappers | Gustav Simonsson | 2015-10-23 | 26 | -4809/+21810 |
| | |||||
* | core, tests: get_hash fix | Jeffrey Wilcke | 2015-10-21 | 1 | -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/state | Felix Lange | 2015-10-17 | 1 | -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.New | Gustav Simonsson | 2015-10-16 | 3 | -28/+31 |
| | |||||
* | core, core/vm, cmd/evm: remove redundant balance check | Gustav Simonsson | 2015-10-06 | 1 | -3/+3 |
| | |||||
* | cmd/geth, cmd/utils, core, rpc: renamed to blockchain | Jeffrey Wilcke | 2015-10-04 | 1 | -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 core | Jeffrey Wilcke | 2015-10-04 | 4 | -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-trie | Jeffrey Wilcke | 2015-10-01 | 2 | -10/+10 |
|\ | | | | | core, trie: new trie | ||||
| * | core, core/state: batch-based state sync | Felix Lange | 2015-09-23 | 2 | -10/+10 |
| | | |||||
* | | tests: add test for StateTests/stCallCodes.json | Gustav Simonsson | 2015-09-21 | 3 | -1/+6807 |
|/ | |||||
* | tests: use lastblockhash field to validate reorgs and block headers | Gustav Simonsson | 2015-09-18 | 1 | -41/+49 |
| | |||||
* | tests: update common test wrappers and test files | Gustav Simonsson | 2015-09-18 | 7 | -424/+13102 |
| | |||||
* | all: move common.Database to package ethdb | Felix Lange | 2015-09-15 | 2 | -2/+3 |
| | |||||
* | core: split out TD from database and all internals | Péter Szilágyi | 2015-09-11 | 1 | -3/+2 |
| | |||||
* | Add TestBcForkUncleTests and update JSON files | Gustav Simonsson | 2015-08-31 | 750 | -1865/+2305 |
| | |||||
* | Add tests for uncle timestamps and refactor timestamp type | Gustav Simonsson | 2015-08-25 | 4 | -7/+327 |
| | |||||
* | core, tests: Double SUICIDE fix | Jeffrey Wilcke | 2015-08-21 | 2 | -152/+772 |
| | |||||
* | cmd/evm, core/vm, tests: changed DisableVm to EnableVm | Jeffrey Wilcke | 2015-08-12 | 4 | -12/+12 |
| | |||||
* | Merge pull request #1604 from obscuren/db-merge | Jeffrey Wilcke | 2015-08-09 | 1 | -1/+1 |
|\ | | | | | core, eth, trie, xeth: merged state, chain, extra databases in one | ||||
| * | core, eth, trie, xeth: merged state, chain, extra databases in one | Jeffrey Wilcke | 2015-08-08 | 1 | -1/+1 |
| | | |||||
* | | core/vm: reduced big int allocations | Jeffrey Wilcke | 2015-08-07 | 1 | -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 calls | Jeffrey Wilcke | 2015-08-07 | 1 | -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 vm | Jeffrey Wilcke | 2015-08-07 | 4 | -1/+160 |
|/ | | | | * changed stack and removed stack ptr. Let go decide on slice reuse. | ||||
* | core, miner: added difficulty bomb | Jeffrey Wilcke | 2015-08-05 | 1 | -0/+100 |
| | |||||
* | tests: updated | Jeffrey Wilcke | 2015-07-29 | 751 | -8227/+8337 |
| | |||||
* | Merge pull request #1515 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-28 | 12 | -12/+12 |
|\ | | | | | all: fix license headers one more time | ||||
| * | all: fix license headers one more time | Felix Lange | 2015-07-24 | 12 | -12/+12 |
| | | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | | core: 5 ether block reward | Jeffrey Wilcke | 2015-07-25 | 1 | -0/+8 |
|/ | |||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 12 | -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 tests | Felix Lange | 2015-07-17 | 1 | -4/+20 |
| | |||||
* | cmd/ethtest, tests: add support for RLP JSON tests | Felix Lange | 2015-07-17 | 3 | -0/+177 |
| | |||||
* | cmd, core, eth, common: genesis preparation | Jeffrey Wilcke | 2015-07-10 | 1 | -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 validations | Gustav Simonsson | 2015-07-08 | 2 | -14/+33 |
| | |||||
* | Update Ethereum JSON test files and wrappers | Gustav Simonsson | 2015-07-08 | 12 | -1729/+1069 |
| | |||||
* | all: add some godoc synopsis comments | Felix Lange | 2015-07-07 | 1 | -0/+1 |
| | |||||
* | all: update license information | Felix Lange | 2015-07-07 | 10 | -0/+160 |
| | |||||
* | cmd,eth,rpc,tests: default coinbase | Jeffrey Wilcke | 2015-07-07 | 2 | -10/+12 |
| | |||||
* | Add TestBcGasPricer, comments and unskip tests | Gustav Simonsson | 2015-07-06 | 2 | -8/+19 |
| | |||||
* | Merge pull request #1400 from obscuren/badblock-reporting | Jeffrey Wilcke | 2015-07-06 | 1 | -0/+3 |
|\ | | | | | core, miner, tests: added test, implemented bad block reporting | ||||
| * | core, miner, tests: added test, implemented bad block reporting | Jeffrey Wilcke | 2015-07-05 | 1 | -0/+3 |
| | | |||||
* | | Fix core error forwarding, unify OOG VM err | Gustav Simonsson | 2015-07-04 | 1 | -5/+0 |
|/ | |||||
* | core, miner, tests: renamed state methods | Jeffrey Wilcke | 2015-07-04 | 2 | -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 failing | Gustav Simonsson | 2015-07-03 | 20 | -4520/+1935 |
| | |||||
* | Use uint64 for block header timestamp | Gustav Simonsson | 2015-06-30 | 1 | -3/+3 |
| | |||||
* | core/types: make blocks immutable | Felix Lange | 2015-06-30 | 1 | -6/+5 |
| | |||||
* | core/types: make transactions immutable | Felix Lange | 2015-06-30 | 1 | -23/+22 |
| | |||||
* | tests: SetGasLimit | obscuren | 2015-06-21 | 1 | -1/+1 |
| | |||||
* | Add --skip option to CLI | Taylor Gerring | 2015-06-19 | 8 | -75/+82 |
| | | | | | Disassociates hardcoded tests to skip when running via CLI. Tests still skipped when running `go test` | ||||
* | recover test logic | Taylor Gerring | 2015-06-19 | 1 | -1/+1 |
| | |||||
* | Build error fixes | Taylor Gerring | 2015-06-19 | 2 | -6/+5 |
| | |||||
* | Rebase cleanup | Taylor Gerring | 2015-06-19 | 2 | -30/+1 |
| | |||||
* | Add stdin option | Taylor Gerring | 2015-06-19 | 5 | -182/+345 |
| | |||||
* | Add lost rebase changes | Taylor Gerring | 2015-06-19 | 1 | -1/+9 |
| | |||||
* | Cleanup logging | Taylor Gerring | 2015-06-19 | 5 | -11/+13 |
| | |||||
* | Fix geth blocktest command | Taylor Gerring | 2015-06-19 | 1 | -2/+2 |
| | |||||
* | DRY file loading | Taylor Gerring | 2015-06-19 | 5 | -58/+42 |
| | |||||
* | More consistent test interfaces + test skipping | Taylor Gerring | 2015-06-19 | 7 | -78/+108 |
| | |||||
* | Cleanup/reorg | Taylor Gerring | 2015-06-19 | 8 | -273/+265 |
| | |||||
* | Return error up stack instead of passing testing var down | Taylor Gerring | 2015-06-19 | 7 | -84/+159 |
| | |||||
* | DRY log check | Taylor Gerring | 2015-06-19 | 2 | -61/+46 |
| | |||||
* | Separate and identify tests runners | Taylor Gerring | 2015-06-19 | 6 | -283/+387 |
| | |||||
* | Flatten helper directory | Taylor Gerring | 2015-06-19 | 6 | -70/+22 |
| | |||||
* | Fix paths | Taylor Gerring | 2015-06-19 | 4 | -45/+61 |
| | |||||
* | Split tests from helper code | Taylor Gerring | 2015-06-19 | 5 | -555/+170 |
| | |||||
* | Flatten vm directory | Taylor Gerring | 2015-06-19 | 4 | -3/+387 |
| | |||||
* | Merge pull request #1282 from obscuren/state-cleanup | Jeffrey Wilcke | 2015-06-18 | 2 | -6/+6 |
|\ | | | | | core/state: cleanup & optimisations | ||||
| * | xeth, tests: fixed api | obscuren | 2015-06-17 | 1 | -1/+1 |
| | | |||||
| * | core/state, core/vm: reworked storage get / set to use common.Hash | obscuren | 2015-06-17 | 1 | -5/+5 |
| | | |||||
* | | Update Ethereum JSON test files | Gustav Simonsson | 2015-06-16 | 16 | -802/+2539 |
|/ | |||||
* | Merge pull request #1228 from obscuren/vm-optimisations | Jeffrey Wilcke | 2015-06-11 | 1 | -2/+9 |
|\ | | | | | core/vm: optimisations | ||||
| * | core, core/vm: added structure logging | obscuren | 2015-06-10 | 1 | -2/+9 |
| | | | | | | | | This also reduces the time required spend in the VM | ||||
* | | tests: check gas limit error | obscuren | 2015-06-10 | 1 | -1/+1 |
|/ | |||||
* | Skip BlockTests/bcValidBlockTests SimpleTx3 | Gustav Simonsson | 2015-06-09 | 1 | -1/+3 |
| | |||||
* | Skip VMTests RandomTests temporarily until they are fixed | Gustav Simonsson | 2015-06-09 | 1 | -0/+1 |
| | |||||
* | Update Ethereum JSON test files | Gustav Simonsson | 2015-06-09 | 35 | -348/+20667 |
| | |||||
* | tests: use state logs instead own kept logs | obscuren | 2015-06-05 | 1 | -3/+3 |
| | |||||
* | Merge pull request #1150 from fjl/fix-jumpdest | Jeffrey Wilcke | 2015-06-04 | 1 | -0/+124 |
|\ | | | | | core/vm: improve JUMPDEST analysis | ||||
| * | tests/files: update tests to d309b4679a58d2 | Felix Lange | 2015-06-03 | 3 | -912/+1386 |
| | | |||||
| * | Update Ethereum JSON test files | Gustav Simonsson | 2015-05-29 | 7 | -3664/+4028 |
| | | |||||
* | | Add new 0th gen uncle test | Gustav Simonsson | 2015-06-02 | 1 | -0/+1 |
| | | |||||
* | | Use older version of stSpecialTest until JUMPDEST fix is merged | Gustav Simonsson | 2015-06-02 | 1 | -124/+0 |
| | | |||||
* | | Update Ethereum JSON test files | Gustav Simonsson | 2015-06-02 | 2 | -985/+1250 |
| | | |||||
* | | Update Ethereum JSON test files | Gustav Simonsson | 2015-06-02 | 9 | -4574/+5412 |
|/ | |||||
* | tests: removed missing block test | obscuren | 2015-05-26 | 1 | -4/+0 |
| | |||||
* | tests: updated | obscuren | 2015-05-26 | 6 | -4471/+6475 |
| | |||||
* | Add StateTests/RandomTests and VMTests/RandomTests | Gustav Simonsson | 2015-05-22 | 1 | -16/+10 |
| | |||||
* | Add wrapper for BlockTests/bcWalletTest.json | Gustav Simonsson | 2015-05-18 | 1 | -0/+4 |
| | |||||
* | Update Ethereum JSON test files | Gustav Simonsson | 2015-05-18 | 5 | -31/+9199 |
| | |||||
* | tests: added conditional skip on long running VM tests | obscuren | 2015-05-20 | 1 | -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 copy | obscuren | 2015-05-20 | 1 | -4/+4 |
| | |||||
* | tests/vm: updated tests and skipped output for specific tests | obscuren | 2015-05-20 | 1 | -8/+11 |
| | | | | Skipped tests due to large return value | ||||
* | Add StateTests/RandomTests but skip for now | Gustav Simonsson | 2015-05-16 | 1 | -0/+21 |
| | |||||
* | Update StateTests and nil create return on failed code deposit | Gustav Simonsson | 2015-05-16 | 1 | -2/+12 |
| | |||||
* | Update Ethereum JSON tests | Gustav Simonsson | 2015-05-15 | 17 | -2734/+420801 |
| | |||||
* | unskip StateTests/stTransactionTest and use test tx nonce | Gustav Simonsson | 2015-05-15 | 2 | -5/+6 |
| | |||||
* | Change default keystore dir | Gustav Simonsson | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | Update key store to new spec but keep address field for now | Gustav Simonsson | 2015-05-12 | 1 | -1/+1 |
| | | | | * Also fix address types post-rebase | ||||
* | replaced several path.* with filepath.* which is platform independent | Bas van Kervel | 2015-05-12 | 1 | -2/+2 |
| | |||||
* | miner, tests: fixed block test | obscuren | 2015-05-09 | 1 | -1/+1 |
| | |||||
* | Add bcTotalDifficultyTest and unskip now working tx tests | Gustav Simonsson | 2015-05-07 | 3 | -6/+6 |
| | |||||
* | Update JSON test files | Gustav Simonsson | 2015-05-07 | 49 | -4914/+9977 |
| | |||||
* | Unskip now working tests, remove debug print | Gustav Simonsson | 2015-05-07 | 1 | -3/+0 |
| | |||||
* | Unskip working blocktests following ethash cache reusage | Gustav Simonsson | 2015-05-05 | 1 | -10/+4 |
| | |||||
* | core: return the index of the block that failed when inserting a chain | obscuren | 2015-04-29 | 1 | -1/+1 |
| | |||||
* | Add loading of block test privkey if present | Gustav Simonsson | 2015-04-28 | 2 | -8/+21 |
| | |||||
* | Update JSON tests | Gustav Simonsson | 2015-04-28 | 20 | -347/+2744 |
| | |||||
* | Add block header validations for block tests | Gustav Simonsson | 2015-04-23 | 1 | -0/+82 |
| | |||||
* | Include ZeroByteAtTheEnd and RandomByteAtTheEnd tests | Gustav Simonsson | 2015-04-23 | 1 | -8/+1 |
| | |||||
* | Unskip BlockTests/bcInvalidHeaderTest.json wrongUncleHash | Gustav Simonsson | 2015-04-23 | 1 | -4/+1 |
| | |||||
* | Finally, glorious HEX | Gustav Simonsson | 2015-04-23 | 1 | -4/+4 |
| | |||||
* | Add StateTests/stMemoryStressTest.json but skip for now | Gustav Simonsson | 2015-04-23 | 1 | -0/+6 |
| | |||||
* | Exclude TransactionWithSvalue0 as it expects invalid s value to be valid | Gustav Simonsson | 2015-04-23 | 1 | -0/+1 |
| | |||||
* | Update github.com/ethereum/tests files | Gustav Simonsson | 2015-04-23 | 26 | -6304/+5619 |
| | |||||
* | Explicitly skip TransactionTests/tt10mbDataField.json | Gustav Simonsson | 2015-04-23 | 2 | -6/+3 |
| | |||||
* | Add test wrapper for VMTests/vmInputLimits1.json | Gustav Simonsson | 2015-04-23 | 1 | -0/+5 |
| | |||||
* | Further fixes to block test wrapper | Gustav Simonsson | 2015-04-21 | 2 | -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 tests | Gustav Simonsson | 2015-04-20 | 2 | -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 helpers | Felix Lange | 2015-04-19 | 2 | -30/+35 |
| | | | | (cherry picked from commit 035a30acbefb5eeadc1fc8dbd567775d5688f8a9) | ||||
* | cmd/geth, tests: enable running multiple tests from a single file | Felix Lange | 2015-04-19 | 1 | -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 TransactionTests | Gustav Simonsson | 2015-04-16 | 3 | -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 tests | Gustav Simonsson | 2015-04-16 | 38 | -207/+4177 |
| | |||||
* | Enable more tx tests by expecting most common encoding of values | Gustav Simonsson | 2015-04-10 | 2 | -15/+8 |
| | |||||
* | Remove unneeded map assignments for working tx RLP tests | Gustav Simonsson | 2015-04-10 | 1 | -7/+0 |
| | |||||
* | Add TransactionTests wrapped as Go tests | Gustav Simonsson | 2015-04-10 | 3 | -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 files | Gustav Simonsson | 2015-04-10 | 71 | -1165836/+18331 |
| | |||||
* | Fixed tests to reflect log changes | obscuren | 2015-04-09 | 2 | -17/+17 |
| | |||||
* | Block header changed & console miner control | obscuren | 2015-04-06 | 1 | -1/+1 |
| | | | | | | * miner control moved to `admin.miner` * miner option to set extra data * block extra now bytes | ||||
* | basic glog | obscuren | 2015-04-04 | 1 | -7/+8 |
| | |||||
* | Merge commit 'f6bd4b16e38f9cacd57b57befdeeaed789a473c4' into develop | obscuren | 2015-04-03 | 1 | -651/+781 |
| | |||||
* | fixed stack level | obscuren | 2015-04-03 | 1 | -0/+28 |
| | |||||
* | Merge commit '812cbff1a28d89b44a0c8c5a210ac61c7e19da35' into develop | obscuren | 2015-04-03 | 28 | -23/+1939 |
| | |||||
* | Removed old (unused) argument | obscuren | 2015-04-02 | 2 | -2/+2 |
| | |||||
* | Merge commit '4e3ffbcf9bae7e44e45fd1b6e504b3645040d73c' into develop | obscuren | 2015-04-01 | 1 | -0/+71 |
| | |||||
* | Merge commit 'f801183b8bea24ce9988fbd06c2f17fedfc3587f' into develop | obscuren | 2015-04-01 | 5 | -6/+231 |
| | |||||
* | Blocktest fixed, Execution fixed | obscuren | 2015-04-01 | 1 | -7/+6 |
| | | | | | | * Added new CreateAccount method which properly overwrites previous accounts (excluding balance) * Fixed block tests (100% success) | ||||
* | Merge commit 'ec181b308addc30c04973e9058960d579c84eef5' into develop | obscuren | 2015-03-31 | 10 | -91/+701 |
| | |||||
* | Merge commit 'a718515b3d43f00497231f981b5ea757b71d55ff' into develop | obscuren | 2015-03-26 | 1 | -0/+11 |
| | |||||
* | Cleaned up changes | obscuren | 2015-03-24 | 1 | -2/+2 |
| | |||||
* | Modified according to poc 9 changes | obscuren | 2015-03-24 | 2 | -3/+8 |
| | | | | * Refund of value | ||||
* | Merge commit '24066dca4646c8a376aa5dfbceec0a4b3f872c11' into develop | obscuren | 2015-03-24 | 71 | -6350/+3223 |
| | |||||
* | Merge commit '58c6cc8fd7ff8a27004ed62d912e0a61ae1b73bb' into develop | obscuren | 2015-03-24 | 39 | -3403/+5526 |
| | |||||
* | removed legacy code | obscuren | 2015-03-24 | 1 | -2/+1 |
| | |||||
* | fix ethtest logging | zelig | 2015-03-24 | 1 | -1/+1 |
| | |||||
* | moved state and vm to core | obscuren | 2015-03-23 | 3 | -4/+4 |
| | |||||
* | Fix new types for blocktests and comment out non-working log level setter | Gustav Simonsson | 2015-03-23 | 1 | -4/+4 |
| | |||||
* | gofmt | Gustav Simonsson | 2015-03-23 | 1 | -4/+2 |
| | |||||
* | Add validation of post state accounts to block tests | Gustav Simonsson | 2015-03-23 | 1 | -4/+31 |
| | |||||
* | Merge branch 'develop' into conversion | obscuren | 2015-03-20 | 3 | -1253/+4053 |
|\ | |||||
| * | Merge commit 'f144a95940a5df0809bb028eef7b337125423602' into develop | obscuren | 2015-03-20 | 3 | -1253/+4053 |
| | | |||||
* | | Merge branch 'develop' into conversion | obscuren | 2015-03-19 | 399 | -1150/+32143 |
|\| | |||||
| * | Merge commit '85fa3790ac9f67232f0e31e7f861c66ef0e0047e' into develop | obscuren | 2015-03-19 | 399 | -1150/+32143 |
| | | |||||
* | | conversions | obscuren | 2015-03-18 | 1 | -5/+4 |
| | | |||||
* | | Fixed tests and bloom | obscuren | 2015-03-18 | 1 | -8/+18 |
| | | |||||
* | | bloom | obscuren | 2015-03-17 | 1 | -10/+15 |
| | | |||||
* | | Fixed VM & Tests w/ conversion | obscuren | 2015-03-17 | 2 | -8/+2 |
| | | |||||
* | | Merge branch 'develop' into conversion | obscuren | 2015-03-17 | 121 | -960/+12698 |
|\| | | | | | | | | | Conflicts: common/types.go | ||||
| * | Merge commit 'dffaa678f966f87dcd011671a16b554b29a37549' into develop | obscuren | 2015-03-17 | 121 | -960/+12698 |
| | | |||||
* | | fixed to | obscuren | 2015-03-17 | 2 | -50/+65 |
| | | |||||
* | | updated blockpool | obscuren | 2015-03-17 | 1 | -14/+41 |
|/ | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 4 | -39/+39 |
| | |||||
* | merge | obscuren | 2015-03-15 | 1 | -0/+240 |
|\ | |||||
| * | tests: add helper functions for block tests | Felix Lange | 2015-03-14 | 1 | -0/+240 |
| | | |||||
* | | Changed context and ADDMOD, MULMOD | obscuren | 2015-03-13 | 1 | -1/+1 |
| | | | | | | | | | | * Cleaned up VM execution. VM run now takes a context * ADDMOD/MULMOD - removed incorrect cast | ||||
* | | Merge commit '6051345bc9ab8ccf74a49c43342771e0c2cba588' into develop | obscuren | 2015-03-13 | 14 | -0/+1003 |
| | | |||||
* | | Removed some of that gas pre pay magic | obscuren | 2015-03-13 | 1 | -2/+1 |
| | | |||||
* | | Merge commit '3ff7a627d1921be0aeacdd8eb2853ba4537487eb' into develop | obscuren | 2015-03-13 | 1 | -0/+71 |
| | | |||||
* | | run all test | obscuren | 2015-03-13 | 1 | -6/+0 |
| | | |||||
* | | fixed ethtest | obscuren | 2015-03-13 | 1 | -0/+6 |
| | | |||||
* | | Merge commit '412e8b0e377bd89fc8fc858bd09c89deee805c1e' into develop | obscuren | 2015-03-13 | 16 | -3/+932 |
|/ | |||||
* | Merge commit '92c6150199395eea6c9893b631cc990e3ff72a33' into develop | obscuren | 2015-03-12 | 23 | -421/+2568256 |
| | |||||
* | Merge branch origin/develop into accounts-integration | Felix Lange | 2015-03-11 | 1 | -7/+0 |
|\ | | | | | | | | | | | | | Conflicts: cmd/blocktest/main.go cmd/mist/debugger.go cmd/utils/cmd.go | ||||
| * | reworked stack | obscuren | 2015-03-10 | 1 | -6/+0 |
| | | |||||
| * | wip | obscuren | 2015-03-10 | 1 | -7/+6 |
| | | |||||
* | | cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig calls | Felix Lange | 2015-03-10 | 1 | -3/+0 |
|/ | |||||
* | Merge commit '3deb470b2d07d28040a381722022cdf8867a829a' into poc-9 | obscuren | 2015-03-09 | 6 | -1080/+1890 |
| | |||||
* | Updated tests and fixed suicide | obscuren | 2015-03-09 | 1 | -0/+8 |
| | |||||
* | Merge commit 'c1cafb56d5da57a44f1d766c5299f11664b93921' into poc-9 | obscuren | 2015-03-09 | 11 | -1893/+1150 |
| | |||||
* | Merge commit 'e2c75b0fa17394553b93fe7ddd62c0f6a6441119' into poc-9 | obscuren | 2015-03-08 | 3 | -4/+723 |
| | |||||
* | Merge commit '4e8a9a1cd4a10370fc4a888af0fb2def6f1b961b' into poc-9 | obscuren | 2015-03-06 | 35 | -3914/+18363 |
| | |||||
* | merge | obscuren | 2015-03-06 | 1 | -4/+0 |
|\ | |||||
| * | Fix VM tests not checked | Paweł Bylica | 2015-03-05 | 1 | -4/+0 |
| | | |||||
* | | GasLimit check updated | obscuren | 2015-03-04 | 1 | -0/+5 |
| | | |||||
* | | Fixed error for invalid transaction | obscuren | 2015-03-03 | 2 | -5/+5 |
| | | |||||
* | | Merge commit 'a6e04ab05150d1b5aa4adb297f3e5146b1559b02' into poc-9 | obscuren | 2015-03-03 | 13 | -135/+378 |
| | | |||||
* | | Merge commit '42a210b571b9358df16da148d9724c2ef9abbca5' into poc-9 | obscuren | 2015-03-03 | 12 | -289/+457 |
| | | |||||
* | | Merge commit 'd9d40888ce9498b25925ccbf1447b1f62597aa2f' into poc-9 | obscuren | 2015-03-03 | 12 | -459/+291 |
| | | |||||
* | | Merge commit '0867e4fae96c0b0d234f1710119a129f8b0d96f7' into poc-9 | obscuren | 2015-03-03 | 14 | -330/+312 |
| | | |||||
* | | Updated gast costs | obscuren | 2015-03-03 | 1 | -3/+11 |
| | | |||||
* | | Merge commit '4659b51b50394c596f0548eb53390c80ba96e392' into poc-9 | obscuren | 2015-03-03 | 11 | -8233/+168 |
| | | |||||
* | | wup | obscuren | 2015-03-03 | 1 | -7/+10 |
| | | |||||
* | | Merge commit 'b7ec9fbb0e49e345a8a2566226a76d50b48266a7' into poc-9 | obscuren | 2015-03-03 | 7 | -89/+273 |
| | | |||||
* | | Delet => Delete | obscuren | 2015-03-03 | 1 | -8/+15 |
| | | |||||
* | | Fixed test helper | obscuren | 2015-03-03 | 2 | -4/+4 |
| | |