aboutsummaryrefslogtreecommitdiffstats
path: root/light/vm_env.go
Commit message (Collapse)AuthorAgeFilesLines
* core/state: access trie through Database interface, track errors (#14589)Felix Lange2017-06-271-194/+0
| | | | | | | | | With this commit, core/state's access to the underlying key/value database is mediated through an interface. Database errors are tracked in StateDB and returned by CommitTo or the new Error method. Motivation for this change: We can remove the light client's duplicated copy of core/state. The light client now supports node iteration, so tracing and storage enumeration can work with the light client (not implemented in this commit).
* all: import "context" instead of "golang.org/x/net/context"Felix Lange2017-03-231-1/+1
| | | | | | | | | | There is no need to depend on the old context package now that the minimum Go version is 1.7. The move to "context" eliminates our weird vendoring setup. Some vendored code still uses golang.org/x/net/context and it is now vendored in the normal way. This change triggered new vet checks around context.WithTimeout which didn't fire with golang.org/x/net/context.
* core, core/state, core/vm: remove exported account getters (#3618)Jeffrey Wilcke2017-02-231-20/+11
| | | | Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods.
* cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-171-0/+2
|
* core/vm: move Log to core/typesFelix Lange2017-01-061-1/+2
| | | | | | | | 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, core/vm: implemented a generic environment (#3348)Jeffrey Wilcke2016-12-061-99/+20
| | | | | | | | 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.
* light: implemented VMState.Empty() (#3357)Felföldi Zsolt2016-11-281-0/+7
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-131-1/+1
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-13/+14
| | | | | | | | | | | | | | | 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>
* all: update license informationFelix Lange2016-11-091-1/+1
|
* core/types: remove header accessorsFelix Lange2016-11-091-1/+1
| | | | | | These accessors were introduced by light client changes, but the only method that is actually used is GetNumberU64. This commit replaces all uses of .GetNumberU64 with .Number.Uint64.
* light: light chain, VM env and tx poolZsolt Felfoldi2016-11-091-0/+271