- 08 5月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 06 4月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 28 2月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 27 2月, 2017 1 次提交
-
-
由 Felix Lange 提交于
* 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
-
- 23 2月, 2017 2 次提交
-
-
由 Péter Szilágyi 提交于
-
由 Jeffrey Wilcke 提交于
Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods.
-
- 15 2月, 2017 1 次提交
-
-
由 Felix Lange 提交于
-
- 14 2月, 2017 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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
-
- 13 2月, 2017 1 次提交
-
-
由 Jeffrey Wilcke 提交于
This reverts commit 8b57c494.
-
- 02 2月, 2017 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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
-
- 18 1月, 2017 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Removal of dead code that appeard as if we had a consensus issue. This however is not the case as the proper error catching happens in the vm package instead.
-
- 05 1月, 2017 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 06 12月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 13 11月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
-
由 Jeffrey Wilcke 提交于
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: NJeffrey Wilcke <jeffrey@ethereum.org>
-
- 11 7月, 2016 1 次提交
-
-
由 zsfelfoldi 提交于
-
- 01 4月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
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
-
由 Jeffrey Wilcke 提交于
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.
-
- 24 3月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
The EVM is now initialised with an additional configured object that allows you to turn on debugging options.
-
- 18 2月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
* Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests
-
由 Gustav Simonsson 提交于
* 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
-
- 16 2月, 2016 1 次提交
-
-
由 Bas van Kervel 提交于
-
- 17 10月, 2015 1 次提交
-
-
由 Felix Lange 提交于
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.
-
- 04 10月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
* 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`.
-
- 02 9月, 2015 1 次提交
-
-
由 Felix Lange 提交于
-
- 24 7月, 2015 1 次提交
-
-
由 Felix Lange 提交于
I forgot to update one instance of "go-ethereum" in commit 3f047be5.
-
- 23 7月, 2015 1 次提交
-
-
由 Felix Lange 提交于
All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
-
- 07 7月, 2015 1 次提交
-
-
由 Felix Lange 提交于
-
- 06 7月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Removed VM errors from the consensus errors. They now used for output only.
-
- 04 7月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-
- 02 7月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
-
- 30 6月, 2015 4 次提交
-
-
由 Felix Lange 提交于
With blocks now being immutable, use big.Int values from accessor functions instead of copying their results.
-
由 Felix Lange 提交于
-
由 Felix Lange 提交于
-
由 Felix Lange 提交于
-
- 21 6月, 2015 1 次提交
-
-
由 obscuren 提交于
* BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit
-
- 17 6月, 2015 1 次提交
-
-
由 obscuren 提交于
-
- 11 6月, 2015 1 次提交
-
-
由 obscuren 提交于
-
- 10 6月, 2015 1 次提交
-
-
由 obscuren 提交于
This also reduces the time required spend in the VM
-
- 02 6月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-