aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/statedb.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd, core, internal, light, tests: avoid hashing the code in the VMPéter Szilágyi2016-10-011-1/+10
|
* core, eth, trie: reuse trie journals in all our codePéter Szilágyi2016-09-281-9/+42
|
* core, trie: replace state caches with trie journalFelix Lange2016-09-281-40/+68
|
* core/state: track all accounts in canon stateFelix Lange2016-09-261-98/+131
| | | | | 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: Fix memory expansion bug by not copying clean objectsNick Johnson2016-09-191-2/+3
|
* Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"Péter Szilágyi2016-06-291-10/+0
| | | | This reverts commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d.
* Revert "core: update DAO soft-fork number, clean up the code"Péter Szilágyi2016-06-291-0/+2
| | | | This reverts commit ba784bdf36f2daf7827ec1ec864f3393ba8d86a0.
* core: update DAO soft-fork number, clean up the codePéter Szilágyi2016-06-231-2/+0
|
* test, cmd/evm, core, core/vm: illegal code hash implementationJeffrey Wilcke2016-06-221-0/+10
| | | | | | | | This implements a generic approach to enabling soft forks by allowing anyone to put in hashes of contracts that should not be interacted from. This will help "The DAO" in their endevour to stop any whithdrawals from any DAO contract by convincing the mining community to accept their code hash.
* core/state, eth: Updated suicides objects when tracing transactionsJeffrey Wilcke2016-06-131-0/+21
| | | | | | | | | | | | | | | | | | | | | | Consensus rules dictate that objects can only be removed during the finalisation of the transaction (i.e. after all calls have finished). Thus calling a suicided contract twice from the same transaction: A->B(S)->ret(A)->B(S) results in 2 suicides. Calling the suicided object twice from two transactions: A->B(S), A->B, results in only one suicide and a call to an empty object. Our current debug tracing functionality replays all transaction that were executed prior to the targetted transaction in order to provide the user with an accurate trace. As a side effect to calling StateDB.IntermediateRoot it also deletes any suicides objects. Our tracing code never calls this function because it isn't interested in the intermediate root. Becasue of this it caused a bug in the tracing code where transactions that were send to priviously deleted objects resulted in two suicides rather than one suicide and a call to an empty object. Fixes #2542
* Merge pull request #2585 from karalabe/trie-dirty-trackingJeffrey Wilcke2016-05-311-0/+22
|\ | | | | core, core/state, trie: enterprise hand-tuned multi-level caching
| * core, core/state, trie: enterprise hand-tuned multi-level cachingPéter Szilágyi2016-05-261-0/+22
| |
* | core/state: return the starting nonce for non-existent accs (testnet)Péter Szilágyi2016-05-271-1/+1
|/
* core/state, trie: don't leak database writes before commitPéter Szilágyi2016-01-201-3/+7
|
* core/state: always commit in batches, just finish if not needed laterPéter Szilágyi2016-01-131-1/+2
|
* core, eth/downloader: ensure state presence in ancestor lookupPéter Szilágyi2016-01-041-1/+0
|
* core/state, core/types use package rlp for state, receipt serialisationFelix Lange2015-12-181-8/+14
|
* core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-161-5/+5
|
* cmd, core, eth: added official testnetJeffrey Wilcke2015-10-091-0/+5
|
* cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-041-14/+27
| | | | | | | | | | | | | | | | | * 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`.
* core, core/state: batch-based state syncFelix Lange2015-09-231-43/+43
|
* core, trie: new trieFelix Lange2015-09-231-8/+16
|
* all: move common.Database to package ethdbFelix Lange2015-09-151-2/+3
|
* core, core/vm, core/state: remove unused functionsGustav Simonsson2015-09-111-21/+0
|
* core, tests: Double SUICIDE fixJeffrey Wilcke2015-08-211-7/+9
|
* core/state: Set log index. Closes #1226Jeffrey Wilcke2015-07-291-0/+5
|
* 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: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: update license informationFelix Lange2015-07-071-0/+16
|
* core, miner, tests: renamed state methodsJeffrey Wilcke2015-07-041-2/+4
| | | | | | | | | | | | * 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, core/state: only write necessary state. Skip intermediateJeffrey Wilcke2015-07-041-2/+20
|
* core/state: removed trie copyobscuren2015-06-171-1/+1
|
* core/state: removed state from state objectobscuren2015-06-171-10/+2
|
* core/state, core/vm: reworked storage get / set to use common.Hashobscuren2015-06-171-5/+5
|
* core/state, core/vm: cleanup refundsobscuren2015-06-171-14/+8
|
* Improved transaction poolobscuren2015-04-091-8/+4
| | | | | | | | | | The transaction pool will now some easily be able to pre determine the validity of a transaction by checking the following: * Account existst * gas limit higher than the instrinsic gas * enough funds to pay upfront costs * nonce check
* Changed how logs are being recordedobscuren2015-04-081-9/+33
| | | | | | | Logs are now recorded per transactions instead of tossing them out after each transaction. This should also fix an issue with `eth_getFilterLogs` (#629) Also now implemented are the `transactionHash, blockHash, transactionIndex, logIndex` on logs. Closes #654.
* Moved logging to logger.Coreobscuren2015-04-041-1/+1
|
* basic glogobscuren2015-04-041-3/+1
|
* glog wipobscuren2015-04-031-1/+4
|
* Removed old (unused) argumentobscuren2015-04-021-1/+1
|
* Blocktest fixed, Execution fixedobscuren2015-04-011-26/+42
| | | | | | * Added new CreateAccount method which properly overwrites previous accounts (excluding balance) * Fixed block tests (100% success)
* moved state and vm to coreobscuren2015-03-231-0/+325