Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: transition db now also returns the required gas amount | Jeffrey Wilcke | 2016-04-01 | 1 | -7/+24 |
| | | | | | | | | | Exposes some core methods to transition and compute new state information and adds an additional return value to the transition db method to fetch required gas for that particular message (excluding gas refunds from any SSTORE[X] = 0 and SUICIDE. Fixes #2395 | ||||
* | core: added basic chain configuration | Jeffrey Wilcke | 2016-04-01 | 1 | -2/+2 |
| | | | | | | | | | 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 | 1 | -5/+1 |
| | | | | | The EVM is now initialised with an additional configured object that allows you to turn on debugging options. | ||||
* | Merge pull request #2215 from bas-vk/estimategas | Péter Szilágyi | 2016-03-01 | 1 | -1/+1 |
|\ | | | | | core: improved check for contract creation | ||||
| * | core: improved check for contract creation | Bas van Kervel | 2016-02-16 | 1 | -1/+1 |
| | | |||||
* | | core, core/vm, crypto: fixes for homestead | Jeffrey Wilcke | 2016-02-18 | 1 | -27/+12 |
| | | | | | | | | | | | | * Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests | ||||
* | | parmas, crypto, core, core/vm: homestead consensus protocol changes | Gustav Simonsson | 2016-02-18 | 1 | -6/+39 |
|/ | | | | | | | | * 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, core/state: move gas tracking out of core/state | Felix Lange | 2015-10-17 | 1 | -23/+27 |
| | | | | | | | 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. | ||||
* | cmd/evm, core/vm, test: refactored VM and core | Jeffrey Wilcke | 2015-10-04 | 1 | -31/+36 |
| | | | | | | | | | | | | | | | | | * 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`. | ||||
* | core: improve block gas tracking | Felix Lange | 2015-09-02 | 1 | -15/+8 |
| | |||||
* | all: fix license headers one more time | Felix Lange | 2015-07-24 | 1 | -1/+1 |
| | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 1 | -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 information | Felix Lange | 2015-07-07 | 1 | -0/+16 |
| | |||||
* | core, miner: removed vm errors from consensus err checking | Jeffrey Wilcke | 2015-07-06 | 1 | -0/+7 |
| | | | | | Removed VM errors from the consensus errors. They now used for output only. | ||||
* | Fix core error forwarding, unify OOG VM err | Gustav Simonsson | 2015-07-04 | 1 | -1/+1 |
| | |||||
* | core, xeth: core.AddressFromMessage removed => crypto.CreateAddress | Jeffrey Wilcke | 2015-07-02 | 1 | -6/+0 |
| | |||||
* | core: remove superfluous big.Int allocations | Felix Lange | 2015-06-30 | 1 | -25/+13 |
| | | | | | With blocks now being immutable, use big.Int values from accessor functions instead of copying their results. | ||||
* | core: avoid duplicate calls to Transaction.Data | Felix Lange | 2015-06-30 | 1 | -3/+3 |
| | |||||
* | core: optimize IntrinsicGas | Felix Lange | 2015-06-30 | 1 | -5/+12 |
| | |||||
* | core/types: make blocks immutable | Felix Lange | 2015-06-30 | 1 | -4/+5 |
| | |||||
* | core, miner, xeth: renamed gas methods | obscuren | 2015-06-21 | 1 | -13/+2 |
| | | | | | | * BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit | ||||
* | core/state, core/vm: cleanup refunds | obscuren | 2015-06-17 | 1 | -5/+3 |
| | |||||
* | core, core/vm: moved logger and added gas cost to struct logging | obscuren | 2015-06-11 | 1 | -1/+1 |
| | |||||
* | core, core/vm: added structure logging | obscuren | 2015-06-10 | 1 | -0/+4 |
| | | | | This also reduces the time required spend in the VM | ||||
* | Add missing err checks on From() (skip RPC for now) | Gustav Simonsson | 2015-06-02 | 1 | -15/+20 |
| | |||||
* | Update StateTests and nil create return on failed code deposit | Gustav Simonsson | 2015-05-16 | 1 | -0/+1 |
| | |||||
* | Improved transaction pool | obscuren | 2015-04-09 | 1 | -16/+15 |
| | | | | | | | | | | The transaction pool will now some easily be able to pre determine the validity of a transaction by checking the following: * Account existst * gas limit higher than the instrinsic gas * enough funds to pay upfront costs * nonce check | ||||
* | Moved logging to logger.Core | obscuren | 2015-04-04 | 1 | -4/+3 |
| | |||||
* | Read most protocol params from common/params.json | Gustav Simonsson | 2015-04-02 | 1 | -4/+5 |
| | | | | | | | | | * Add params package with exported variables generated from github.com/ethereum/common/blob/master/params.json * Use params package variables in applicable places * Add check for minimum gas limit in validation of block's gas limit * Remove common/params.json from go-ethereum to avoid outdated version of it | ||||
* | Blocktest fixed, Execution fixed | obscuren | 2015-04-01 | 1 | -4/+5 |
| | | | | | | * Added new CreateAccount method which properly overwrites previous accounts (excluding balance) * Fixed block tests (100% success) | ||||
* | Cleaned up changes | obscuren | 2015-03-24 | 1 | -5/+2 |
| | |||||
* | Modified according to poc 9 changes | obscuren | 2015-03-24 | 1 | -1/+1 |
| | | | | * Refund of value | ||||
* | Updated for PV59 | obscuren | 2015-03-24 | 1 | -8/+7 |
| | | | | * Value XFER are refunded back to the sender if the execution fails | ||||
* | moved state and vm to core | obscuren | 2015-03-23 | 1 | -2/+2 |
| | |||||
* | conversions. -compilable- | obscuren | 2015-03-18 | 1 | -0/+6 |
| | |||||
* | Fixed VM & Tests w/ conversion | obscuren | 2015-03-17 | 1 | -10/+9 |
| | |||||
* | core: actually convert transaction pool | Felix Lange | 2015-03-17 | 1 | -10/+9 |
| | |||||
* | Merge remote-tracking branch 'ethereum/conversion' into conversion | Felix Lange | 2015-03-17 | 1 | -9/+13 |
|\ | |||||
| * | converted vm | obscuren | 2015-03-17 | 1 | -9/+13 |
| | | |||||
* | | core: adapt Message for new Transaction.From signature | Felix Lange | 2015-03-17 | 1 | -2/+3 |
|/ | |||||
* | updated vm env | obscuren | 2015-03-17 | 1 | -3/+3 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 1 | -4/+4 |
| | |||||
* | Return proper error | obscuren | 2015-03-14 | 1 | -0/+3 |
| | |||||
* | Removed some of that gas pre pay magic | obscuren | 2015-03-13 | 1 | -22/+25 |
| | |||||
* | Lowered default gas price and increased default gas limit | obscuren | 2015-03-12 | 1 | -0/+2 |
| | |||||
* | Improved error reporting and removed commented code | obscuren | 2015-03-11 | 1 | -32/+1 |
| | |||||
* | Merge ethereum/poc-9 into accounts-integration | Felix Lange | 2015-03-10 | 1 | -3/+9 |
|\ | | | | | | | | | | | | | | | | | | | Conflicts: cmd/utils/cmd.go cmd/utils/flags.go core/manager.go eth/backend.go rpc/http/server.go xeth/xeth.go | ||||
| * | Spec changes. | obscuren | 2015-03-06 | 1 | -3/+10 |
| | | | | | | | | * All errors during state transition result in an invalid tx | ||||
* | | core: remove Hash method from Message interface | Felix Lange | 2015-03-10 | 1 | -3/+2 |
|/ | | | | This will simplify the next commmit. Hash was only used for logging. | ||||
* | Fixed error for invalid transaction | obscuren | 2015-03-03 | 1 | -7/+6 |
| | |||||
* | Updated gast costs | obscuren | 2015-03-03 | 1 | -8/+4 |
| | |||||
* | New gas prices model | obscuren | 2015-03-02 | 1 | -3/+9 |
| | |||||
* | Bump | obscuren | 2015-02-27 | 1 | -4/+1 |
| | |||||
* | Fixed consensus issue for refunding | obscuren | 2015-02-27 | 1 | -3/+6 |
| | | | | * Refund should _always_ go to the origin | ||||
* | Removed exported fields from state object and added proper set/getters | obscuren | 2015-02-20 | 1 | -4/+4 |
| | |||||
* | Optimisations and fixed a couple of DDOS issues in the miner | obscuren | 2015-02-20 | 1 | -1/+2 |
| | |||||
* | Docs & old code removed | obscuren | 2015-02-03 | 1 | -21/+25 |
| | |||||
* | Added (disabled) Jit validation | obscuren | 2015-02-01 | 1 | -0/+25 |
| | |||||
* | Fixed consensus issue | obscuren | 2015-01-13 | 1 | -2/+1 |
| | |||||
* | Changed prev_hash to block_hash, state transition now uses vm env | obscuren | 2015-01-04 | 1 | -20/+21 |
| | | | | | | | * PREVHASH => BLOCKHASH( N ) * State transition object uses VMEnv as it's query interface * Updated vm.Enviroment has GetHash( n ) for BLOCKHASH instruction * Added GetHash to xeth, core, utils & test environments | ||||
* | Closure => Context | obscuren | 2015-01-02 | 1 | -1/+1 |
| | |||||
* | Minor updates on gas and removed/refactored old code. | obscuren | 2014-12-20 | 1 | -11/+10 |
| | |||||
* | Removed OOG check. Revert should always happen. | obscuren | 2014-12-19 | 1 | -2/+9 |
| | |||||
* | Transaction was generating incorrect hash because of var changes | obscuren | 2014-12-19 | 1 | -1/+1 |
| | |||||
* | Fixed refund model | obscuren | 2014-12-19 | 1 | -6/+4 |
| | |||||
* | Gas corrections and vm fixes | obscuren | 2014-12-19 | 1 | -36/+37 |
| | |||||
* | Moved methods to messages | obscuren | 2014-12-18 | 1 | -4/+6 |
| | |||||
* | Created generic message (easy for testing) | obscuren | 2014-12-18 | 1 | -32/+66 |
| | |||||
* | null ptr fix | obscuren | 2014-12-04 | 1 | -4/+3 |
| | |||||
* | Renamed State => StateDB | obscuren | 2014-12-04 | 1 | -3/+3 |
| | |||||
* | Renamed `chain` => `core` | obscuren | 2014-12-04 | 1 | -0/+198 |