Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core/vm: Ignore EnableJit ChainConfig setting (#3166) | Hao Bryan Cheng | 2016-10-21 | 1 | -1/+3 |
| | |||||
* | cmd/geth, code, eth/downloader: tune import logs and mem stats | Péter Szilágyi | 2016-10-21 | 2 | -3/+16 |
| | |||||
* | cmd/geth, trie: report on trie cache unloads, also add debug log | Péter Szilágyi | 2016-10-19 | 1 | -0/+2 |
| | |||||
* | cmd, core/state: allow configurable trie cache generations | Péter Szilágyi | 2016-10-19 | 1 | -5/+5 |
| | |||||
* | Merge pull request #3168 from benjaminbrent/develop | Jeffrey Wilcke | 2016-10-19 | 1 | -1/+1 |
|\ | | | | | core/vm: fix GASPRICE string (resolves #2553) | ||||
| * | core/vm: fix GASPRICE string (resolves #2553) | Benjamin Brent | 2016-10-19 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #3153 from fjl/trie-unload-fix | Jeffrey Wilcke | 2016-10-19 | 1 | -4/+4 |
|\ \ | |/ |/| | trie: improve cache unloading mechanism | ||||
| * | core/state: bump trie cache values slightly | Felix Lange | 2016-10-18 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #3156 from holiman/metrics-blocks | Jeffrey Wilcke | 2016-10-18 | 1 | -0/+2 |
|\ \ | | | | | | | core: Add block processing time metric collection | ||||
| * | | core: Add block processing time metric collection | Martin Holst Swende | 2016-10-18 | 1 | -0/+2 |
| |/ | |||||
* / | common, core, eth/downloader: adjust import log formatting | Péter Szilágyi | 2016-10-18 | 2 | -18/+30 |
|/ | |||||
* | Merge pull request #3111 from obscuren/gas-price-fork | Péter Szilágyi | 2016-10-15 | 7 | -20/+129 |
|\ | | | | | core, core/vm: added gas price variance table (EIP #150) | ||||
| * | core, core/vm: added gas price variance table | Jeffrey Wilcke | 2016-10-15 | 7 | -20/+129 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This implements 1b & 1c of EIP150 by adding a new GasTable which must be returned from the RuleSet config method. This table is used to determine the gas prices for the current epoch. Please note that when the CreateBySuicide gas price is set it is assumed that we're in the new epoch phase. In addition this PR will serve as temporary basis while refactorisation in being done in the EVM64 PR, which will substentially overhaul the gas price code. | ||||
* | | Merge pull request #3138 from karalabe/txpool-pending-limits | Péter Szilágyi | 2016-10-15 | 2 | -5/+150 |
|\ \ | | | | | | | core: add global (soft) limits on the pending transactions | ||||
| * | | core: add global (soft) limits on the pending transactions | Péter Szilágyi | 2016-10-14 | 2 | -5/+150 |
| | | | |||||
* | | | trie, core/state: improve memory usage and performance (#3135) | Felix Lange | 2016-10-15 | 3 | -7/+10 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * trie: store nodes as pointers This avoids memory copies when unwrapping node interface values. name old time/op new time/op delta Get 388ns ± 8% 215ns ± 2% -44.56% (p=0.000 n=15+15) GetDB 363ns ± 3% 202ns ± 2% -44.21% (p=0.000 n=15+15) UpdateBE 1.57µs ± 2% 1.29µs ± 3% -17.80% (p=0.000 n=13+15) UpdateLE 1.92µs ± 2% 1.61µs ± 2% -16.25% (p=0.000 n=14+14) HashBE 2.16µs ± 6% 2.18µs ± 6% ~ (p=0.436 n=15+15) HashLE 7.43µs ± 3% 7.21µs ± 3% -2.96% (p=0.000 n=15+13) * trie: close temporary databases in GetDB benchmark * trie: don't keep []byte from DB load around Nodes decoded from a DB load kept hashes and values as sub-slices of the DB value. This can be a problem because loading from leveldb often returns []byte with a cap that's larger than necessary, increasing memory usage. * trie: unload old cached nodes * trie, core/state: use cache unloading for account trie * trie: use explicit private flags (fixes Go 1.5 reflection issue). * trie: fixup cachegen overflow at request of nick * core/state: rename journal size constant | ||||
* | | core: fixed import reporter | Jeffrey Wilcke | 2016-10-11 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #3104 from fjl/core-import-log | Felix Lange | 2016-10-11 | 1 | -11/+42 |
|\ \ | | | | | | | core: print import stats more often | ||||
| * | | core: print import stats more often | Felix Lange | 2016-10-08 | 1 | -11/+42 |
| | | | | | | | | | | | | | | | | | | If geth is busy importing 2048 heavy blocks it can take a while before it prints anything. This change ensures that a message gets printed every 8s. | ||||
* | | | core: lower transaction pool max queue limit | Felix Lange | 2016-10-10 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #3088 from bas-vk/rpc-block-output | Felix Lange | 2016-10-07 | 2 | -5/+5 |
|\ \ | |/ |/| | core/types: renamed receiptRoot to receiptsRoot | ||||
| * | core/types: renamed receiptRoot to receiptsRoot | Bas van Kervel | 2016-10-05 | 2 | -5/+5 |
| | | |||||
* | | Merge pull request #3094 from fjl/tests-update | Felix Lange | 2016-10-06 | 1 | -2/+3 |
|\ \ | | | | | | | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1 | ||||
| * | | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1 | Felix Lange | 2016-10-06 | 1 | -2/+3 |
| |/ | | | | | | | | | | | Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'. | ||||
* | | core/state: optimize GetState | Felix Lange | 2016-10-06 | 1 | -5/+7 |
| | | | | | | | | There is no need to use the reflection-based decoder to decode []byte. | ||||
* | | core/state: rename Delete/IsDeleted to Suicide/HasSuicided | Felix Lange | 2016-10-06 | 9 | -32/+35 |
| | | | | | | | | The delete/remove naming has caused endless confusion in the past. | ||||
* | | core/state: implement reverts by journaling all changes | Felix Lange | 2016-10-06 | 15 | -161/+602 |
|/ | | | | | | | | | | 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 object | Péter Szilágyi | 2016-10-03 | 2 | -18/+24 |
| | |||||
* | cmd, core, internal, light, tests: avoid hashing the code in the VM | Péter Szilágyi | 2016-10-01 | 12 | -31/+47 |
| | |||||
* | core, eth, trie: reuse trie journals in all our code | Péter Szilágyi | 2016-09-28 | 2 | -10/+48 |
| | |||||
* | core, trie: replace state caches with trie journal | Felix Lange | 2016-09-28 | 4 | -63/+69 |
| | |||||
* | core/state: track all accounts in canon state | Felix Lange | 2016-09-26 | 10 | -310/+392 |
| | | | | | 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: short-circuit balance change if zero value | Gustav Simonsson | 2016-09-26 | 1 | -0/+6 |
| | |||||
* | core/state, light: remove unused StateObject.initCode | Gustav Simonsson | 2016-09-19 | 2 | -6/+0 |
| | |||||
* | Merge pull request #3006 from Arachnid/patch | Péter Szilágyi | 2016-09-19 | 3 | -5/+8 |
|\ | | | | | core/state: Fix memory expansion bug by not copying clean objects | ||||
| * | core/state: Fix memory expansion bug by not copying clean objects | Nick Johnson | 2016-09-19 | 3 | -5/+8 |
| | | |||||
* | | core/types: add core type marshal methods too | Péter Szilágyi | 2016-09-08 | 4 | -0/+131 |
| | | |||||
* | | core: abstract out a sorted transaction hash map | Péter Szilágyi | 2016-09-02 | 4 | -222/+229 |
| | | |||||
* | | core: add upper bound on the queued transctions | Péter Szilágyi | 2016-09-02 | 3 | -33/+203 |
| | | |||||
* | | core/types, miner: switch over to the grouped tx sets | Péter Szilágyi | 2016-09-02 | 2 | -32/+58 |
| | | |||||
* | | core, eth, internal, miner: optimize txpool for quick ops | Péter Szilágyi | 2016-09-02 | 6 | -401/+751 |
| | | |||||
* | | core, eth, miner: only retain 1 tx/nonce, remove bad ones | Péter Szilágyi | 2016-09-02 | 2 | -164/+251 |
| | | |||||
* | | core/types, core/vm: improve docs, add JSON marshaling methods | Felix Lange | 2016-08-04 | 8 | -99/+589 |
| | | | | | | | | | | | | | | | | In this commit, core/types's types learn how to encode and decode themselves as JSON. The encoding is very similar to what the RPC API uses. The RPC API is missing some output fields (e.g. transaction signature values) which will be added to the API in a later commit. Some fields that the API generates are ignored by the decoder methods here. | ||||
* | | core/vm, eth: Add support for javascript trace functions | Nick Johnson | 2016-08-23 | 2 | -9/+6 |
| | | |||||
* | | core/vm: Refactor tracing to make Tracer the main interface | Nick Johnson | 2016-08-22 | 12 | -176/+136 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes several refactors: - Define a Tracer interface, implementing the `CaptureState` method - Add the VM environment as the first argument of `Tracer.CaptureState` - Rename existing functionality `StructLogger` an make it an implementation of `Tracer` - Delete `StructLogCollector` and make `StructLogger` collect the logs directly - Change all callers to use the new `StructLogger` where necessary and extract logs from that. - Deletes the apparently obsolete and likely nonfunctional 'TraceCall' from the eth API. Callers that only wish accumulated logs can use the `StructLogger` implementation straightforwardly. Callers that wish to efficiently capture VM traces and operate on them without excessive copying can now implement the `Tracer` interface to receive VM state at each step and do with it as they wish. This CL also removes the accumulation of logs from the vm.Environment; this was necessary as part of the refactor, but also simplifies it by removing a responsibility that doesn't directly belong to the Environment. | ||||
* | | Merge pull request #2909 from fjl/account-manager-cleanup | Felix Lange | 2016-08-18 | 1 | -16/+0 |
|\ \ | | | | | | | all: clean up tech debt left behind by the API split | ||||
| * | | core, miner: move Backend to miner | Felix Lange | 2016-08-17 | 1 | -15/+0 |
| | | | | | | | | | | | | | | | This ensures that package core doesn't depend on package accounts and resolves an age-old TODO. | ||||
| * | | eth: remove dapp database remains | Felix Lange | 2016-08-17 | 1 | -1/+0 |
| | | | |||||
* | | | rpc: refactor subscriptions and filters | Bas van Kervel | 2016-08-17 | 1 | -0/+22 |
| | | | |||||
* | | | core: ensure the canonical block is written before the canonical hash is set | Bas van Kervel | 2016-08-16 | 4 | -17/+63 |
|/ / | |||||
* | | core/vm: hide ecrecover error message | Felix Lange | 2016-08-06 | 1 | -2/+2 |
| | | | | | | | | Fixes #2825 | ||||
* | | cmd, core, eth, miner, params, tests: finalize the DAO fork | Péter Szilágyi | 2016-07-15 | 3 | -45/+75 |
| | | |||||
* | | accounts, core, eth: pass chain config for chain maker to test DAO | Péter Szilágyi | 2016-07-15 | 9 | -123/+172 |
| | | |||||
* | | core, params, tests: add DAO hard-fork balance moves | Péter Szilágyi | 2016-07-15 | 1 | -1/+22 |
| | | |||||
* | | core, eth: enforce network split post DAO hard-fork | Péter Szilágyi | 2016-07-15 | 1 | -0/+7 |
| | | |||||
* | | cmd, core, miner: add extradata validation to consensus rules | Péter Szilágyi | 2016-07-15 | 3 | -2/+129 |
| | | |||||
* | | core: gracefully handle missing homestead block config | Péter Szilágyi | 2016-07-15 | 1 | -1/+1 |
| | | |||||
* | | cmd, core, eth, params: implement flags to control dao fork blocks | Péter Szilágyi | 2016-07-15 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #2724 from pirapira/fix_reset_fees | Péter Szilágyi | 2016-07-15 | 2 | -2/+2 |
|\ \ | |/ |/| | vm: Replace some SstoreClearGas with SstoreResetGas | ||||
| * | vm: Replace some SstoreClearGas with SstoreResetGas | Yoichi Hirai | 2016-06-22 | 2 | -2/+2 |
| | | |||||
* | | Merge pull request #2799 from zsfelfoldi/api-nonce-fix2 | Péter Szilágyi | 2016-07-12 | 2 | -2/+6 |
|\ \ | | | | | | | core: added CheckNonce() to Message interface | ||||
| * | | core: added CheckNonce() to Message interface | zsfelfoldi | 2016-07-11 | 2 | -2/+6 |
| | | | |||||
* | | | core: solve a remote-import/local-mine data race | Péter Szilágyi | 2016-07-08 | 1 | -4/+3 |
|/ / | |||||
* | | Merge pull request #2159 from zsfelfoldi/light-backend | Péter Szilágyi | 2016-06-30 | 1 | -0/+2 |
|\ \ | | | | | | | eth: separate common and full node-specific API and backend service | ||||
| * | | eth: separate common and full node-specific API and backend service | zsfelfoldi | 2016-06-16 | 1 | -0/+2 |
| | | | |||||
* | | | Revert "test, cmd/evm, core, core/vm: illegal code hash implementation" | Péter Szilágyi | 2016-06-29 | 8 | -77/+29 |
| | | | | | | | | | | | | This reverts commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d. | ||||
* | | | Revert "core: add voting and result tracking for the dao soft-fork" | Péter Szilágyi | 2016-06-29 | 4 | -429/+13 |
| | | | | | | | | | | | | This reverts commit c4de28938ff8c688c4444c8b3e8e28a52cbc62ff. | ||||
* | | | Revert "core: update DAO soft-fork number, clean up the code" | Péter Szilágyi | 2016-06-29 | 7 | -40/+51 |
| | | | | | | | | | | | | This reverts commit ba784bdf36f2daf7827ec1ec864f3393ba8d86a0. | ||||
* | | | Revert "core: update the DAO soft fork proposal to the final block" | Péter Szilágyi | 2016-06-29 | 1 | -1/+1 |
| | | | | | | | | | | | | This reverts commit 1e3a7d4fab36df9382d023519ef10e3c34bafa3b. | ||||
* | | | core: update the DAO soft fork proposal to the final block | Péter Szilágyi | 2016-06-24 | 1 | -1/+1 |
| | | | |||||
* | | | core: update DAO soft-fork number, clean up the code | Péter Szilágyi | 2016-06-23 | 7 | -51/+40 |
| | | | |||||
* | | | core: add voting and result tracking for the dao soft-fork | Péter Szilágyi | 2016-06-23 | 4 | -13/+429 |
| | | | |||||
* | | | test, cmd/evm, core, core/vm: illegal code hash implementation | Jeffrey Wilcke | 2016-06-22 | 8 | -29/+77 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | README, core, rpc: fix various typos | Fabio Berger | 2016-06-22 | 1 | -3/+3 |
| |/ |/| | |||||
* | | Merge pull request #2686 from obscuren/issue-2542 | Péter Szilágyi | 2016-06-14 | 1 | -0/+21 |
|\ \ | |/ |/| | core/state, eth: Updated suicides objects when tracing transactions | ||||
| * | core/state, eth: Updated suicides objects when tracing transactions | Jeffrey Wilcke | 2016-06-13 | 1 | -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 | ||||
* | | core: improved chainDb using sequential keys | zsfelfoldi | 2016-06-07 | 9 | -210/+320 |
| | | |||||
* | | core: chain read/write speed benchmarks | zsfelfoldi | 2016-06-06 | 1 | -0/+119 |
|/ | |||||
* | core: add missing lock in TxPool.{GetTransaction,RemoveTx} | Felix Lange | 2016-06-03 | 1 | -1/+10 |
| | | | | Fixes #2650 | ||||
* | Merge pull request #2585 from karalabe/trie-dirty-tracking | Jeffrey Wilcke | 2016-05-31 | 2 | -1/+28 |
|\ | | | | | core, core/state, trie: enterprise hand-tuned multi-level caching | ||||
| * | core, core/state, trie: enterprise hand-tuned multi-level caching | Péter Szilágyi | 2016-05-26 | 2 | -1/+28 |
| | | |||||
* | | core/state: return the starting nonce for non-existent accs (testnet) | Péter Szilágyi | 2016-05-27 | 1 | -1/+1 |
|/ | |||||
* | eth: enable bad block reports | Felix Lange | 2016-05-25 | 3 | -78/+5 |
| | | | | | | | | | | | | We used to have reporting of bad blocks, but it was disabled before the Frontier release. We need it back because users are usually unable to provide the full RLP data of a bad block when it occurs. A shortcoming of this particular implementation is that the origin peer is not tracked for blocks received during eth/63 sync. No origin peer info is still better than no report at all though. | ||||
* | core: Simplify bloom9 tests with available convenience method `TestBytes` | Fabio Berger | 2016-05-23 | 1 | -2/+2 |
| | |||||
* | core: fixed pointer assignment | Jeffrey Wilcke | 2016-05-13 | 1 | -2/+2 |
| | | | | | | This fixes an issue where it's theoretical possible to cause a consensus failure when hitting the lower end of the difficulty, though pratically impossible it's worth a fix. | ||||
* | core, eth, miner: improve shutdown synchronisation | Felix Lange | 2016-05-09 | 1 | -4/+7 |
| | | | | | | | | | | | | | | | | | | | | Shutting down geth prints hundreds of annoying error messages in some cases. The errors appear because the Stop method of eth.ProtocolManager, miner.Miner and core.TxPool is asynchronous. Left over peer sessions generate events which are processed after Stop even though the database has already been closed. The fix is to make Stop synchronous using sync.WaitGroup. For eth.ProtocolManager, in order to make use of WaitGroup safe, we need a way to stop new peer sessions from being added while waiting on the WaitGroup. The eth protocol Run function now selects on a signaling channel and adds to the WaitGroup only if ProtocolManager is not shutting down. For miner.worker and core.TxPool the number of goroutines is static, WaitGroup can be used in the usual way without additional synchronisation. | ||||
* | core: Provide a public accessor for ChainConfig | Nicholas Johnson | 2016-04-29 | 1 | -0/+3 |
| | | | | This is necessary for external users of the go-ethereum code who want to, for instance, build a custom node that plays back transactions, as core.ApplyTransaction requires a ChainConfig as a parameter. | ||||
* | core, eth: added json tag field for proper unmarshalling | Jeffrey Wilcke | 2016-04-25 | 1 | -1/+1 |
| | | | | | | | | | According to our own instructions the genesis config attribute should be "config". The genesis definition in the go code, however, has a field called `ChainConfig`. This field now has a `json:"config"` struct tag so that the json is properly unmarshalled. This fixes #2482 | ||||
* | all: fix go vet warnings | Felix Lange | 2016-04-15 | 5 | -12/+8 |
| | |||||
* | core/state: fix TestDump | Felix Lange | 2016-04-15 | 3 | -9/+27 |
| | | | | Lazy "I'll just put return here instead of fixing the test" found by go vet. | ||||
* | core, core/types, eth: add and use Block.Body | Felix Lange | 2016-04-15 | 4 | -5/+8 |
| | | | | | This fixes a few uses of unkeyed Body literals which go vet was complaining about. | ||||
* | all: update license information | Felix Lange | 2016-04-15 | 22 | -15/+113 |
| | |||||
* | core, miner: remove Frontier canary | Péter Szilágyi | 2016-04-04 | 1 | -51/+0 |
| | |||||
* | core: transition db now also returns the required gas amount | Jeffrey Wilcke | 2016-04-01 | 1 | -7/+24 |
| | | | | | | | | | Exposes some core methods to transition and compute new state information and adds an additional return value to the transition db method to fetch required gas for that particular message (excluding gas refunds from any SSTORE[X] = 0 and SUICIDE. Fixes #2395 | ||||
* | accounts/a/b/backends, core: chain maker homestead block set to 0 | Jeffrey Wilcke | 2016-04-01 | 4 | -24/+12 |
| | | | | | | | The chain maker and the simulated backend now run with a homestead phase beginning at block 0 (i.e. there's no frontier). This commit also fixes up #2388 | ||||
* | core: added basic chain configuration | Jeffrey Wilcke | 2016-04-01 | 31 | -159/+295 |
| | | | | | | | | | 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. | ||||
* | core, eth, cmd: temporary work around for enabling the jit | Jeffrey Wilcke | 2016-03-24 | 1 | -1/+6 |
| | | | | | This commit serves as a temporary workaround for enabling the jit until the block customisation PR is merged in. | ||||
* | core: Added EVM configuration options | Jeffrey Wilcke | 2016-03-24 | 20 | -194/+385 |
| | | | | | The EVM is now initialised with an additional configured object that allows you to turn on debugging options. | ||||
* | core, core/vm, tests: changed the initialisation behaviour of the EVM | Jeffrey Wilcke | 2016-03-23 | 11 | -42/+34 |
| | | | | | | | The EVM was previously initialised and created for every CALL, CALLCODE, DELEGATECALL and CREATE. This PR changes this behaviour so that the same EVM can be used through the session and beyond as long as the Environment sticks around. | ||||
* | Merge pull request #2341 from leijurv/patch-2 | Péter Szilágyi | 2016-03-16 | 1 | -3/+3 |
|\ | | | | | core: fixed various typos | ||||
| * | core: fixed various typos | Leif Jurvetson | 2016-03-16 | 1 | -3/+3 |
| | | |||||
* | | core, eth: replace reorganiz with reorganis | Leif Jurvetson | 2016-03-16 | 3 | -6/+6 |
| | | |||||
* | | core: various typos | Leif Jurvetson | 2016-03-16 | 21 | -39/+39 |
|/ | |||||
* | Merge pull request #2311 from obscuren/future-proc-fix | Jeffrey Wilcke | 2016-03-12 | 1 | -14/+15 |
|\ | | | | | core: added future proc mutex lock | ||||
| * | core: added future proc mutex lock | Jeffrey Wilcke | 2016-03-11 | 1 | -14/+15 |
| | | | | | | | | | | | | | | | | | | | | Added a future lock which prevents the anything being added or removed from or to the set when looping over the set of blocks. This fixes a nil pointer in the range loop when trying to retrieve a block from the set which was previously available but removed due to regular chain processing. Fixes #2305 | ||||
* | | core: cache fresh headers and tds to avoid db trashing | Péter Szilágyi | 2016-03-11 | 2 | -20/+52 |
|/ | |||||
* | core: create a header chain structure shared by core.BlockChain and ↵ | zsfelfoldi | 2016-03-10 | 4 | -345/+575 |
| | | | | light.LightChain | ||||
* | Merge pull request #2301 from obscuren/uncle-fix | Jeffrey Wilcke | 2016-03-10 | 2 | -6/+101 |
|\ | | | | | core: announce ChainSideEvent during reorg | ||||
| * | core: announce ChainSideEvent during reorg | Jeffrey Wilcke | 2016-03-08 | 2 | -6/+101 |
| | | | | | | | | | | | | | | | | | | | | | | Previously all blocks that were already in our chain were never re announced as potential uncle block (e.g. ChainSideEvent). This is problematic during mining where you want to gather as much possible uncles as possible increasing the profit. This is now addressed in this PR where during reorganisations of chains the old chain is regarded as uncles. Fixed #2298 | ||||
* | | cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache | Péter Szilágyi | 2016-03-09 | 2 | -2/+2 |
|/ | |||||
* | Merge pull request #2267 from karalabe/pending-state-events | Péter Szilágyi | 2016-03-02 | 1 | -0/+3 |
|\ | | | | | core, miner: add PendingStateEvent to track non-log updates. | ||||
| * | core, miner: add PendingStateEvent to track non-log updates | Péter Szilágyi | 2016-02-29 | 1 | -0/+3 |
| | | |||||
* | | Merge pull request #2215 from bas-vk/estimategas | Péter Szilágyi | 2016-03-01 | 1 | -1/+1 |
|\ \ | |/ |/| | core: improved check for contract creation | ||||
| * | core: improved check for contract creation | Bas van Kervel | 2016-02-16 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #2242 from jimenezrick/upstream-crypto | Jeffrey Wilcke | 2016-02-24 | 11 | -13/+13 |
|\ \ | | | | | | | Closes #2241: Use Keccak-256 from golang.org/x/crypto/sha3 and mention explicitly | ||||
| * | | all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() | Ricardo Catalinas Jiménez | 2016-02-22 | 11 | -13/+13 |
| | | | | | | | | | | | | As we aren't really using the standarized SHA-3 | ||||
* | | | Merge pull request #2095 from karalabe/trie-node-iterator | Péter Szilágyi | 2016-02-23 | 3 | -3/+314 |
|\ \ \ | |/ / |/| | | core/state, trie: add node iterator, test state/trie sync consistency | ||||
| * | | core/state, trie: switch iterator panics to error fields | Péter Szilágyi | 2016-02-16 | 2 | -26/+37 |
| | | | |||||
| * | | core/state, trie: node iterator reports parent hashes too | Péter Szilágyi | 2016-02-16 | 1 | -7/+13 |
| | | | |||||
| * | | core/state, trie: surface iterator entry hashes | Péter Szilágyi | 2016-02-16 | 3 | -7/+67 |
| | | | |||||
| * | | core/state, trie: add node iterator, test state/trie sync consistency | Péter Szilágyi | 2016-02-16 | 2 | -3/+237 |
| |/ | |||||
* | | core: Added new TD strategy which mitigate the risk for selfish mining | Jeffrey Wilcke | 2016-02-18 | 1 | -6/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assuming the following scenario where a miner has 15% of all hashing power and the ability to exert a moderate control over the network to the point where if the attacker sees a message A, it can't stop A from propagating, but what it **can** do is send a message B and ensure that most nodes see B before A. The attacker can then selfish mine and augment selfish mining strategy by giving his own blocks an advantage. This change makes the time at which a block is received less relevant and so the level of control an attacker has over the network no longer makes a difference. This change changes the current td algorithm `B_td > C_td` to the new algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`. | ||||
* | | core, core/vm, crypto: fixes for homestead | Jeffrey Wilcke | 2016-02-18 | 20 | -191/+210 |
| | | | | | | | | | | | | * Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests | ||||
* | | parmas, crypto, core, core/vm: homestead consensus protocol changes | Gustav Simonsson | 2016-02-18 | 21 | -130/+407 |
|/ | | | | | | | | * 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 | ||||
* | eth/filters: ✨ pending logs ✨ | Jeffrey Wilcke | 2016-02-13 | 3 | -4/+9 |
| | | | | | | Pending logs are now filterable through the Go API. Filter API changed such that each filter type has it's own bucket and adding filter explicitly requires you specify the bucket to put it in. | ||||
* | core/vm/runtime: simplified runtime calling mechanism | Jeffrey Wilcke | 2016-02-11 | 3 | -18/+117 |
| | | | | | | Implemented `runtime.Call` which uses - unlike Execute - the given state for the execution and the address of the contract you wish to execute. Unlike `Execute`, `Call` requires a config. | ||||
* | Merge pull request #2134 from karalabe/save-state-writes | Péter Szilágyi | 2016-02-03 | 2 | -3/+127 |
|\ | | | | | core/state, trie: don't leak database writes before commit | ||||
| * | core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug | Péter Szilágyi | 2016-01-20 | 1 | -0/+68 |
| | | |||||
| * | core/state, trie: don't leak database writes before commit | Péter Szilágyi | 2016-01-20 | 2 | -3/+59 |
| | | |||||
* | | Merge pull request #2156 from ppratscher/add_replay_tx | Péter Szilágyi | 2016-02-03 | 2 | -1/+3 |
|\ \ | | | | | | | core/vm, rpc/api: added debug_replayTransaction RPC call | ||||
| * | | core/vm, rpc/api: renamed to debug.replayTransaction, migrated to new RPC, ↵ | Peter Pratscher | 2016-02-02 | 2 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | integrated feedback Integrated code review suggestions Integrated last review comments | ||||
* | | | core, eth, rpc/api: rpc method to inspect the txpool queue | Péter Szilágyi | 2016-02-01 | 1 | -0/+30 |
|/ / | |||||
* | | core, core/types, miner: fix transaction nonce-price combo sort | Péter Szilágyi | 2016-01-22 | 3 | -17/+127 |
| | | |||||
* | | Merge pull request #2115 from karalabe/vm-debug-storage | Jeffrey Wilcke | 2016-01-21 | 4 | -14/+20 |
|\ \ | |/ |/| | core/vm: resolve circular dependency to debug vm storage | ||||
| * | core/vm: resolve circular dependency to debug vm storage | Péter Szilágyi | 2016-01-12 | 4 | -14/+20 |
| | | |||||
* | | core/state: always commit in batches, just finish if not needed later | Péter Szilágyi | 2016-01-13 | 1 | -1/+2 |
|/ | |||||
* | core: fix invalid state reuse in chain maker based tests | Péter Szilágyi | 2016-01-11 | 1 | -12/+7 |
| | |||||
* | Merge pull request #2097 from karalabe/block-state-checks | Jeffrey Wilcke | 2016-01-05 | 2 | -1/+13 |
|\ | | | | | core, eth/downloader: ensure state presence in ancestor lookup | ||||
| * | core, eth/downloader: ensure state presence in ancestor lookup | Péter Szilágyi | 2016-01-04 | 2 | -1/+13 |
| | | |||||
* | | core: fix transaction reorg issues within the tx pool | Péter Szilágyi | 2016-01-05 | 2 | -44/+344 |
|/ | |||||
* | common: remove old RLP implementation, Value and ExtPackage | Felix Lange | 2015-12-18 | 1 | -0/+14 |
| | | | | | In order to make this happen, kill all remaining trivial uses of common/{rlp,value}.go. The non-trivial ones have been updated earlier. | ||||
* | core/state, core/types use package rlp for state, receipt serialisation | Felix Lange | 2015-12-18 | 5 | -71/+67 |
| | |||||
* | eth/downloader: fix negative balance issue in tests | Felix Lange | 2015-12-18 | 1 | -0/+5 |
| | | | | | | | | | | The test chain generated by makeChainFork included invalid uncle headers, crashing the generator during the state commit. The headers were invalid because they used the iteration counter as the block number, even though makeChainFork uses a block with number > 0 as the parent. Fix this by introducing BlockGen.Number, which allows accessing the actual number of the block being generated. | ||||
* | core: tx pool skip price validation for "owned" transactions | zsfelfoldi | 2015-12-16 | 2 | -5/+73 |
| | |||||
* | Merge pull request #2035 from bas-vk/rcp-v2-rebase | Felix Lange | 2015-12-15 | 3 | -0/+24 |
|\ | | | | | rpc: new RPC implementation with pub/sub support | ||||
| * | rpc: new RPC implementation with pub/sub support | Bas van Kervel | 2015-12-14 | 3 | -0/+24 |
| | | |||||
* | | core: write individual transactions and receipts too on fast sync | Péter Szilágyi | 2015-12-04 | 1 | -0/+12 |
| | | |||||
* | | core: added a new RemovedLogEvent | Jeffrey Wilcke | 2015-12-01 | 4 | -4/+68 |
|/ | | | | | | When a chain reorganisation occurs we collect the logs that were deleted during the chain reorganisation. The removed logs are posted to the event mux indicating that those were deleted during the reorg. | ||||
* | cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks | Péter Szilágyi | 2015-11-27 | 6 | -61/+84 |
| | |||||
* | core, eth, miner, xeth: clean up tx/receipt db accessors | Péter Szilágyi | 2015-11-19 | 7 | -189/+346 |
| | |||||
* | Merge pull request #1917 from obscuren/validator-interface | Jeffrey Wilcke | 2015-11-19 | 12 | -599/+646 |
|\ | | | | | core, eth, rpc: split out block validator and state processor | ||||
| * | core, eth, rpc: split out block validator and state processor | Jeffrey Wilcke | 2015-11-18 | 12 | -599/+646 |
| | | | | | | | | | | | | | | | | | | | | | | | | This removes the burden on a single object to take care of all validation and state processing. Now instead the validation is done by the `core.BlockValidator` (`types.Validator`) that takes care of both header and uncle validation through the `ValidateBlock` method and state validation through the `ValidateState` method. The state processing is done by a new object `core.StateProcessor` (`types.Processor`) and accepts a new state as input and uses that to process the given block's transactions (and uncles for rewords) to calculate the state root for the next block (P_n + 1). | ||||
* | | core/vm/runtime: added simple execution runtime | Jeffrey Wilcke | 2015-11-18 | 5 | -0/+399 |
|/ | | | | | | The runtime environment can be used for simple basic execution of contract code without the requirement of setting up a full stack and operates fully in memory. | ||||
* | core: only reset head header/fastblock if stale | Péter Szilágyi | 2015-10-28 | 1 | -11/+18 |
| | |||||
* | core: fix #1921, decode all receipt field, not just consensus | Péter Szilágyi | 2015-10-22 | 1 | -3/+2 |
| | |||||
* | Merge pull request #1883 from obscuren/jit-vm-optimisations | Jeffrey Wilcke | 2015-10-22 | 10 | -83/+469 |
|\ | | | | | core/vm: JIT segmentation | ||||
| * | core/vm: added parsing utilities | Jeffrey Wilcke | 2015-10-17 | 4 | -3/+180 |
| | | |||||
| * | core/vm: added JIT segmenting / optimisations | Jeffrey Wilcke | 2015-10-17 | 8 | -5/+202 |
| | | | | | | | | | | * multi-push segments * static jumps segments | ||||
| * | core/vm: abstracted instruction execution away from JIT | Jeffrey Wilcke | 2015-10-17 | 2 | -76/+88 |
| | | | | | | | | | | | | Moved the execution of instructions to the instruction it self. This will allow for specialised instructions (e.g. segments) to be execution in the same manner as regular instructions. | ||||
* | | Merge pull request #1889 from karalabe/fast-sync-rebase | Jeffrey Wilcke | 2015-10-22 | 20 | -504/+1670 |
|\ \ | | | | | | | eth/63 fast synchronization algorithm | ||||
| * | | core, eth, trie: fix data races and merge/review issues | Péter Szilágyi | 2015-10-21 | 9 | -61/+75 |
| | | | |||||
| * | | core, eth: roll back uncertain headers in failed fast syncs | Péter Szilágyi | 2015-10-19 | 2 | -3/+49 |
| | | | |||||
| * | | eth/downloader: concurrent receipt and state processing | Péter Szilágyi | 2015-10-19 | 8 | -167/+254 |
| | | | |||||
| * | | core, eth, trie: direct state trie synchronization | Péter Szilágyi | 2015-10-19 | 3 | -4/+357 |
| | | | |||||
| * | | core, eth: receipt chain reconstruction | Péter Szilágyi | 2015-10-19 | 14 | -87/+406 |
| | | | |||||
| * | | core: differentiate receipt concensus and storage decoding | Péter Szilágyi | 2015-10-19 | 7 | -74/+107 |
| | | | |||||
| * | | core: fix block canonical mark / content write race | Péter Szilágyi | 2015-10-19 | 1 | -20/+11 |
| | | | |||||
| * | | eth/downloader: add fast and light sync strategies | Péter Szilágyi | 2015-10-19 | 2 | -11/+10 |
| | | | |||||
| * | | core: support inserting pure header chains | Péter Szilágyi | 2015-10-19 | 5 | -321/+645 |
| |/ | |||||
* | | core, tests: get_hash fix | Jeffrey Wilcke | 2015-10-21 | 2 | -3/+5 |
| | | | | | | | | | | Make sure that we're fetching the hash from the current chain and not the canonical chain. | ||||
* | | core, core/state: move gas tracking out of core/state | Felix Lange | 2015-10-17 | 7 | -121/+75 |
|/ | | | | | | | 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. | ||||
* | Merge pull request #1899 from obscuren/mipmap-bloom | Jeffrey Wilcke | 2015-10-17 | 8 | -60/+274 |
|\ | | | | | core, eth/filters, miner, xeth: Optimised log filtering | ||||
| * | core, eth/filters, miner, xeth: Optimised log filtering | Jeffrey Wilcke | 2015-10-17 | 8 | -61/+271 |
| | | | | | | | | | | | | | | Log filtering is now using a MIPmap like approach where addresses of logs are added to a mapped bloom bin. The current levels for the MIP are in ranges of 1.000.000, 500.000, 100.000, 50.000, 1.000. Logs are therefor filtered in batches of 1.000. | ||||
| * | eth/filters: added benchmark | Jeffrey Wilcke | 2015-10-16 | 1 | -0/+4 |
| | | |||||
* | | Merge pull request #1869 from Gustav-Simonsson/gpu_miner | Jeffrey Wilcke | 2015-10-16 | 2 | -3/+3 |
|\ \ | | | | | | | all: Add GPU mining, disabled by default | ||||
| * | | all: Add GPU mining, disabled by default | Gustav Simonsson | 2015-10-07 | 2 | -3/+3 |
| | | | |||||
* | | | core/state, core, miner: handle missing root error from state.New | Gustav Simonsson | 2015-10-16 | 11 | -48/+97 |
| |/ |/| | |||||
* | | Merge pull request #1898 from karalabe/eventmux-post-race | Jeffrey Wilcke | 2015-10-16 | 2 | -39/+28 |
|\ \ | | | | | | | core, eth, event, miner, xeth: fix event post / subscription race | ||||
| * | | core, eth, event, miner, xeth: fix event post / subscription race | Péter Szilágyi | 2015-10-12 | 2 | -39/+28 |
| | | | |||||
* | | | core/vm: copy stack element to prevent overwrites | Péter Szilágyi | 2015-10-12 | 1 | -3/+4 |
|/ / | |||||
* | | Merge pull request #1888 from obscuren/testnet | Jeffrey Wilcke | 2015-10-09 | 2 | -0/+26 |
|\ \ | | | | | | | cmd, core, eth: added official testnet | ||||
| * | | cmd, core, eth: added official testnet | Jeffrey Wilcke | 2015-10-09 | 2 | -0/+26 |
| | | | |||||
* | | | Merge pull request #1880 from Gustav-Simonsson/core_transfer | Jeffrey Wilcke | 2015-10-09 | 4 | -14/+5 |
|\ \ \ | | | | | | | | | core, core/vm, cmd/evm: remove redundant balance check | ||||
| * | | | core, core/vm, cmd/evm: remove redundant balance check | Gustav Simonsson | 2015-10-06 | 4 | -14/+5 |
| |/ / | |||||
* | | | Merge pull request #1850 from karalabe/genesis-block-receipts | Jeffrey Wilcke | 2015-10-07 | 1 | -0/+3 |
|\ \ \ | |/ / |/| | | core: fix #1848, block receipts db entry for the genesis too | ||||
| * | | core: fix #1848, block receipts db entry for the genesis too | Péter Szilágyi | 2015-09-25 | 1 | -0/+3 |
| | | | |||||
* | | | core: fixed head write on block insertion | Jeffrey Wilcke | 2015-10-05 | 2 | -0/+16 |
| | | | | | | | | | | | | | | | Due to a rebase this probably got overlooked / ignored. This fixes the issue of a block insertion never writing the last block. | ||||
* | | | cmd/geth, cmd/utils, core, rpc: renamed to blockchain | Jeffrey Wilcke | 2015-10-04 | 15 | -126/+86 |
| | | | | | | | | | | | | | | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted. | ||||
* | | | cmd/evm, core/vm, test: refactored VM and core | Jeffrey Wilcke | 2015-10-04 | 29 | -974/+863 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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, event/filter, xeth: refactored filter system | Jeffrey Wilcke | 2015-10-03 | 1 | -212/+0 |
| |/ |/| | | | | | | | | | | | Moved the filtering system from `event` to `eth/filters` package and removed the `core.Filter` object. The `filters.Filter` object now requires a `common.Database` rather than a `eth.Backend` and invokes the `core.GetBlockByX` directly rather than thru a "manager". | ||||
* | | core: deadlock in chainmanager after posting RemovedTransactionEvent | Jeffrey Wilcke | 2015-10-02 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | This PR solves an issue with the chain manager posting a `RemovedTransactionEvent`, the tx pool will try to acquire the chainmanager lock which has previously been locked prior to posting `RemovedTransactionEvent`. This results in a deadlock in the core. | ||||
* | | Merge pull request #1405 from fjl/lean-trie | Jeffrey Wilcke | 2015-10-01 | 8 | -95/+108 |
|\ \ | | | | | | | core, trie: new trie | ||||
| * | | core, core/state: batch-based state sync | Felix Lange | 2015-09-23 | 7 | -77/+78 |
| | | | |||||
| * | | core, trie: new trie | Felix Lange | 2015-09-23 | 3 | -21/+33 |
| | | | |||||
* | | | core: fix a formatting loop in BadHashError | Péter Szilágyi | 2015-09-29 | 1 | -1/+1 |
| |/ |/| | |||||
* | | core: Add BadHashErr and test for BadHashes handling | Gustav Simonsson | 2015-09-23 | 3 | -2/+66 |
| | | |||||
* | | cmd/geth, core: make "geth blocktest" work again | Felix Lange | 2015-09-23 | 1 | -0/+1 |
|/ | | | | | | | | | The test genesis block was not written properly, block insertion failed immediately. While here, fix the panic when shutting down "geth blocktest" with Ctrl+C. The signal handler is now installed automatically, causing ethereum.Stop to crash because everything is already stopped. | ||||
* | core, core/types: readd transactions after chain re-org | Jeffrey Wilcke | 2015-09-22 | 10 | -54/+228 |
| | | | | | | | | | | | | | | Added a `Difference` method to `types.Transactions` which sets the receiver to the difference of a to b (NOTE: not a **and** b). Transaction pool subscribes to RemovedTransactionEvent adding back to those potential missing from the chain. When a chain re-org occurs remove any transactions that were removed from the canonical chain during the re-org as well as the receipts that were generated in the process. Closes #1746 | ||||
* | core: separate and contain POW verifier, extensive tests | Péter Szilágyi | 2015-09-21 | 4 | -62/+327 |
| | |||||
* | Merge pull request #1817 from obscuren/nonce-fix | Jeffrey Wilcke | 2015-09-19 | 2 | -2/+21 |
|\ | | | | | core: transaction nonce recovery | ||||
| * | core: transaction nonce recovery fix | Jeffrey Wilcke | 2015-09-18 | 2 | -2/+21 |
| | | | | | | | | | | | | | | | | When the transaction state recovery kicked in it assigned the last (incorrect) nonce to the pending state which caused transactions with the same nonce to occur. Added test for nonce recovery | ||||
* | | core: allow modifying test-chain block times | Péter Szilágyi | 2015-09-17 | 1 | -0/+11 |
| | | |||||
* | | Merge pull request #1810 from karalabe/pure-header-verifications-2 | Jeffrey Wilcke | 2015-09-17 | 2 | -26/+24 |
|\ \ | |/ |/| | core, eth, miner: use pure header validation | ||||
| * | core, eth, miner: use pure header validation | Péter Szilágyi | 2015-09-16 | 2 | -26/+24 |
| | | |||||
* | | all: move common.Database to package ethdb | Felix Lange | 2015-09-15 | 12 | -52/+59 |
|/ | |||||
* | Merge pull request #1789 from Gustav-Simonsson/core_remove_unused_functions | Jeffrey Wilcke | 2015-09-12 | 6 | -281/+0 |
|\ | | | | | core, core/vm, core/state: remove unused functions | ||||
| * | core, core/vm, core/state: remove unused functions | Gustav Simonsson | 2015-09-11 | 6 | -281/+0 |
| | | |||||
* | | core: split out TD from database and all internals | Péter Szilágyi | 2015-09-11 | 7 | -197/+478 |
| | | |||||
* | | core, eth: split the db blocks into headers and bodies | Péter Szilágyi | 2015-09-11 | 5 | -142/+341 |
|/ | |||||
* | core/state: test formatting adhering to Go convention | Gustav Simonsson | 2015-09-09 | 1 | -17/+17 |
| | |||||
* | core/state: deleted field in StateObject Copy() and unit test | Gustav Simonsson | 2015-09-08 | 2 | -0/+105 |
| | |||||
* | core: improve block gas tracking | Felix Lange | 2015-09-02 | 2 | -24/+27 |
| | |||||
* | Filter on addresses should work as an OR not an AND. | Maran | 2015-09-01 | 1 | -3/+3 |
| | |||||
* | Merge pull request #1701 from karalabe/eth62-sync-rebase | Felix Lange | 2015-08-27 | 1 | -0/+14 |
|\ | | | | | eth: implement eth/62 synchronization logic | ||||
| * | eth: port the synchronisation algo to eth/62 | Péter Szilágyi | 2015-08-25 | 1 | -0/+14 |
| | | |||||
* | | Add tests for uncle timestamps and refactor timestamp type | Gustav Simonsson | 2015-08-25 | 13 | -26/+42 |
|/ | |||||
* | remove 0x | Jeffrey Wilcke | 2015-08-21 | 1 | -1/+1 |
| | |||||
* | canary update | Jeffrey Wilcke | 2015-08-21 | 1 | -4/+4 |
| | |||||
* | core, tests: Double SUICIDE fix | Jeffrey Wilcke | 2015-08-21 | 3 | -13/+13 |
| | |||||
* | core, miner: write miner receipts | Jeffrey Wilcke | 2015-08-19 | 3 | -7/+9 |
| | |||||
* | cmd/evm, core/vm, tests: changed DisableVm to EnableVm | Jeffrey Wilcke | 2015-08-12 | 4 | -16/+6 |
| | |||||
* | core/vm: fixed jit error & added inline docs | Jeffrey Wilcke | 2015-08-11 | 2 | -11/+14 |
| | | | | | opNumber did not create a new big int which could lead to the block's number being modified. | ||||
* | Merge pull request #1604 from obscuren/db-merge | Jeffrey Wilcke | 2015-08-09 | 9 | -67/+60 |
|\ | | | | | core, eth, trie, xeth: merged state, chain, extra databases in one | ||||
| * | core, eth, trie, xeth: merged state, chain, extra databases in one | Jeffrey Wilcke | 2015-08-08 | 9 | -67/+60 |
| | | |||||
* | | Merge pull request #1611 from obscuren/expdiff-olympic-fix | Jeffrey Wilcke | 2015-08-09 | 1 | -2/+2 |
|\ \ | | | | | | | cmd/utils, core: disable exp diff for olympic net | ||||
| * | | cmd/utils, core: disable exp diff for olympic net | Jeffrey Wilcke | 2015-08-06 | 1 | -2/+2 |
| |/ | |||||
* | | cmd/geth, core/vm: setup vm settings and defaulted JIT disabled | Jeffrey Wilcke | 2015-08-09 | 1 | -3/+3 |
| | | |||||
* | | core/vm: reduced big int allocations | Jeffrey Wilcke | 2015-08-07 | 3 | -122/+77 |
| | | | | | | | | | | | | | | Reduced big int allocation by making stack items modifiable. Instead of adding items such as `common.Big0` to the stack, `new(big.Int)` is added instead. One must expect that any item that is added to the stack might change. | ||||
* | | core, tests: reduced state copy by N calls | Jeffrey Wilcke | 2015-08-07 | 7 | -11/+29 |
| | | | | | | | | | | Reduced the amount of state copied that are required by N calls by doing a balance check prior to any state modifications. | ||||
* | | core/vm, tests: implemented semi-jit vm | Jeffrey Wilcke | 2015-08-07 | 11 | -67/+1357 |
|/ | | | | * changed stack and removed stack ptr. Let go decide on slice reuse. | ||||
* | miner, core: sort txs by price, nonce | Jeffrey Wilcke | 2015-08-05 | 1 | -0/+19 |
| | |||||
* | core, miner: added difficulty bomb | Jeffrey Wilcke | 2015-08-05 | 4 | -6/+95 |
| | |||||
* | miner: gas limit strategy, target 3141592 & def gas price 50 Shannon | Gustav Simonsson | 2015-08-04 | 1 | -2/+15 |
| | |||||
* | Merge pull request #1568 from obscuren/issue-1559 | Jeffrey Wilcke | 2015-08-03 | 1 | -1/+5 |
|\ | | | | | core: added a running flag to prevent panics in the chainmanager | ||||
| * | core: added a running flag to prevent panics in the chainmanager | Jeffrey Wilcke | 2015-08-01 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | The running flag will determine whether the chain manager is still running or not. This will prevent the quit channel from being closed twice resulting in a panic. This PR should fix this issue. Closes #1559 | ||||
* | | Merge pull request #1569 from obscuren/default-genesis | Jeffrey Wilcke | 2015-08-03 | 3 | -2/+40 |
|\ \ | | | | | | | core: added default genesis block | ||||
| * | | core: added default genesis block | Jeffrey Wilcke | 2015-08-02 | 3 | -2/+40 |
| |/ | | | | | | | | | When a user runs a freshly setup geth w/o a database initialised the default genesis block is decoded and inserted in to the database. | ||||
* | | Merge pull request #1461 from bas-vk/eth_resend | Jeffrey Wilcke | 2015-08-02 | 2 | -3/+4 |
|\ \ | | | | | | | Old transaction after resend was not removed from pool | ||||
| * | | bugfix, pending transaction was resend with new gas price/limit but not ↵ | Bas van Kervel | 2015-07-28 | 2 | -3/+4 |
| | | | | | | | | | | | | removed from transaction pool | ||||
* | | | Merge pull request #1541 from bas-vk/issue1518 | Jeffrey Wilcke | 2015-08-01 | 1 | -9/+0 |
|\ \ \ | | | | | | | | | Improved error handling for NewTransactionFromBytes | ||||
| * | | | improved error detection and handling for NewTransactionFromBytes | Bas van Kervel | 2015-07-29 | 1 | -9/+0 |
| | |/ | |/| | | | | | | | integrated review comments | ||||
* / | | core/state: Set log index. Closes #1226 | Jeffrey Wilcke | 2015-07-29 | 1 | -0/+5 |
|/ / | |||||
* | | Merge pull request #1515 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-28 | 63 | -63/+63 |
|\ \ | | | | | | | all: fix license headers one more time | ||||
| * | | all: fix license headers one more time | Felix Lange | 2015-07-24 | 63 | -63/+63 |
| | | | | | | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | | | core: genesis extra data field fix | Jeffrey Wilcke | 2015-07-26 | 1 | -1/+1 |
| | | | |||||
* | | | core: fixed genesis write out to write only canon number | Jeffrey Wilcke | 2015-07-26 | 2 | -3/+19 |
| | | | |||||
* | | | Merge pull request #1520 from obscuren/reward-5eth | Jeffrey Wilcke | 2015-07-25 | 2 | -2/+2 |
|\ \ \ | | | | | | | | | core: 5 ether block reward | ||||
| * | | | core: 5 ether block reward | Jeffrey Wilcke | 2015-07-25 | 2 | -2/+2 |
| | | | | |||||
* | | | | Merge pull request #1521 from obscuren/client-update | Jeffrey Wilcke | 2015-07-25 | 2 | -7/+4 |
|\ \ \ \ | | | | | | | | | | | cmd/geth, core, eth: Version 1.0.0 | ||||
| * | | | | cmd/geth, core, eth: Version 1.0.0 | Jeffrey Wilcke | 2015-07-25 | 2 | -7/+4 |
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Genesis release. Closes #1402 Conflicts: cmd/geth/main.go |