aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/statedb_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-04-091-5/+5
|
* core, params: polish net gas metering PR a bitPéter Szilágyi2018-09-181-4/+4
|
* all: get rid of error when creating memory database (#16716)gary rong2018-05-091-9/+6
| | | | | | | | * all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
* core/state: fix bug in copy of copy StateMartin Holst Swende2018-04-111-0/+16
|
* core/state: avoid linear overhead on journal dirty listingPéter Szilágyi2018-03-281-2/+2
|
* core/state: rework dirty handling to avoid quadratic overheadMartin Holst Swende2018-03-281-2/+3
|
* core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-061-8/+6
| | | This commit reduces database I/O by not writing every state trie to disk.
* all: switch gas limits from big.Int to uint64Péter Szilágyi2018-01-031-2/+2
|
* core/state: copy trie too, not just contentPéter Szilágyi2017-11-241-0/+51
|
* core/state: access trie through Database interface, track errors (#14589)Felix Lange2017-06-271-20/+20
| | | | | | | | | 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).
* core/state: make TestSnapshotRandom work again (#3816)gary rong2017-04-051-1/+0
| | | | | | In `touch` operation, only `touched` filed has been changed. Therefore in the related undo function, only `touched` field should be reverted. In addition, whether remove this obj from dirty map should depend on prevDirty flag.
* core, core/state, core/vm: remove exported account getters (#3618)Jeffrey Wilcke2017-02-231-4/+3
| | | | Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods.
* core/vm: move Log to core/typesFelix Lange2017-01-061-2/+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/state: fixed consensus issue added touch revertJeffrey Wilcke2016-11-251-0/+20
| | | | | Implemented proper touch revert journal entries and copied a Parity consensus bug in order to remain in sync with the current longest chain.
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-4/+4
| | | | | | | | | | | | | | | 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/state: rename Delete/IsDeleted to Suicide/HasSuicidedFelix Lange2016-10-061-3/+3
| | | | The delete/remove naming has caused endless confusion in the past.
* core/state: implement reverts by journaling all changesFelix Lange2016-10-061-39/+274
| | | | | | | | | | 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 VMPéter Szilágyi2016-10-011-4/+5
|
* all: update license informationFelix Lange2016-04-151-1/+1
|
* core/state, ethdb, trie: test intermediate secure key leak, fix memdb bugPéter Szilágyi2016-01-201-0/+68
|
* core/state, trie: don't leak database writes before commitPéter Szilágyi2016-01-201-0/+52