- 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
-
- 12 1月, 2017 1 次提交
-
-
由 Jeffrey Wilcke 提交于
-
- 07 1月, 2017 1 次提交
-
-
由 Felix Lange 提交于
-
- 06 1月, 2017 1 次提交
-
-
由 Felix Lange 提交于
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.
-
- 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.
-
- 25 11月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Implemented proper touch revert journal entries and copied a Parity consensus bug in order to remain in sync with the current longest chain.
-
- 14 11月, 2016 1 次提交
-
-
由 Zsolt Felfoldi 提交于
-
- 13 11月, 2016 3 次提交
-
-
由 Jeffrey Wilcke 提交于
-
由 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>
-
- 06 10月, 2016 2 次提交
-
-
由 Felix Lange 提交于
Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'.
-
由 Felix Lange 提交于
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!
-
- 26 9月, 2016 1 次提交
-
-
由 Felix Lange 提交于
This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes.
-
- 15 4月, 2016 1 次提交
-
-
由 Felix Lange 提交于
-
- 01 4月, 2016 1 次提交
-
-
由 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 提交于
-
由 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
-
- 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.
-
- 16 10月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-
- 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`.
-
- 23 9月, 2015 1 次提交
-
-
由 Felix Lange 提交于
-
- 21 9月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-
- 18 9月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-
- 12 8月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
-
- 07 8月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
* changed stack and removed stack ptr. Let go decide on slice reuse.
-
- 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 2 次提交
-
-
由 Felix Lange 提交于
-
由 Jeffrey Wilcke 提交于
-
- 04 7月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
* 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.
-
- 21 6月, 2015 1 次提交
-
-
由 obscuren 提交于
-
- 19 6月, 2015 6 次提交
-
-
由 Taylor Gerring 提交于
Disassociates hardcoded tests to skip when running via CLI. Tests still skipped when running `go test`
-
由 Taylor Gerring 提交于
-
由 Taylor Gerring 提交于
-
由 Taylor Gerring 提交于
-
由 Taylor Gerring 提交于
-
由 Taylor Gerring 提交于
-