aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/state_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand as tangerine-network/go-tangerineWei-Ning Huang2019-09-171-3/+3
|
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-06-121-3/+3
|
* core, params: polish net gas metering PR a bitPéter Szilágyi2018-09-181-22/+36
|
* common: improve documentation comments (#16701)kiel barry2018-05-291-1/+1
| | | | | This commit adds many comments and removes unused code. It also removes the EmptyHash function, which had some uses but was silly.
* all: get rid of error when creating memory database (#16716)gary rong2018-05-091-3/+2
| | | | | | | | * all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
* core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-061-3/+3
| | | This commit reduces database I/O by not writing every state trie to disk.
* core/state: access trie through Database interface, track errors (#14589)Felix Lange2017-06-271-22/+17
| | | | | | | | | 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, core/state, core/vm: remove exported account getters (#3618)Jeffrey Wilcke2017-02-231-6/+6
| | | | 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, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-3/+3
| | | | | | | | | | | | | | | 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-4/+4
| | | | The delete/remove naming has caused endless confusion in the past.
* core/state: implement reverts by journaling all changesFelix Lange2016-10-061-8/+14
| | | | | | | | | | 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!
* core/state: track dirty state entries for each objectPéter Szilágyi2016-10-031-7/+7
|
* cmd, core, internal, light, tests: avoid hashing the code in the VMPéter Szilágyi2016-10-011-3/+4
|
* core/state: track all accounts in canon stateFelix Lange2016-09-261-22/+28
| | | | | This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes.
* core/state, light: remove unused StateObject.initCodeGustav Simonsson2016-09-191-3/+0
|
* core/state: Fix memory expansion bug by not copying clean objectsNick Johnson2016-09-191-2/+4
|
* core/state: fix TestDumpFelix Lange2016-04-151-4/+14
| | | | Lazy "I'll just put return here instead of fixing the test" found by go vet.
* core: various typosLeif Jurvetson2016-03-161-1/+1
|
* core/state, core/types use package rlp for state, receipt serialisationFelix Lange2015-12-181-4/+2
|
* core, core/state: move gas tracking out of core/stateFelix Lange2015-10-171-5/+0
| | | | | | | 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.
* core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-161-3/+3
|
* core, core/state: batch-based state syncFelix Lange2015-09-231-2/+1
|
* core/state: test formatting adhering to Go conventionGustav Simonsson2015-09-091-17/+17
|
* core/state: deleted field in StateObject Copy() and unit testGustav Simonsson2015-09-081-0/+104
|
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-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 informationFelix Lange2015-07-071-0/+16
|
* core, miner, tests: renamed state methodsJeffrey Wilcke2015-07-041-1/+1
| | | | | | | | | | | | * 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.
* core/state: fixed state testsobscuren2015-06-171-13/+10
|
* Removed old (unused) argumentobscuren2015-04-021-1/+1
|
* fixed testsobscuren2015-04-011-1/+1
|
* moved state and vm to coreobscuren2015-03-231-0/+106