Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* / / / | core: check genesis block before writeout | Jeffrey Wilcke | 2015-07-25 | 1 | -0/+4 |
|/ / / | |||||
* | | | cmd/core,xeth: removed unneeded states & added batch writes | Jeffrey Wilcke | 2015-07-23 | 3 | -27/+38 |
| | | | |||||
* | | | Merge pull request #1510 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-23 | 63 | -252/+252 |
|\| | | | | | | | | all: license fixes | ||||
| * | | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 63 | -252/+252 |
| | | | | | | | | | | | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library". | ||||
* | | | Merge pull request #1508 from karalabe/database-caching | Jeffrey Wilcke | 2015-07-23 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | cmd, core, eth, ethdb: cache flag to allocate memory for db internal use | ||||
| * | | | cmd, core, eth, ethdb: cache flag to allocate memory for db internal use | Péter Szilágyi | 2015-07-22 | 1 | -1/+1 |
| |/ / | |||||
* / / | core: fix an RLP encoding data race due to deep struct copy | Péter Szilágyi | 2015-07-23 | 1 | -2/+2 |
|/ / | |||||
* | | Fixed canary to require 2+ nonzero, not sum 2+ | Vitalik Buterin | 2015-07-20 | 1 | -7/+14 |
| | | |||||
* | | core: during chain reorg rewrite receipts and transactions | Jeffrey Wilcke | 2015-07-15 | 3 | -13/+46 |
| | | | | | | | | | | | | | | | | | | Added PutBlockReceipts; storing receipts by blocks. Eventually this will require pruning during some cleanup cycle. During forks the receipts by block are used to get the new canonical receipts and transactions. This PR fixes #1473 by rewriting transactions and receipts from the point of where the fork occured. | ||||
* | | cmd, core, eth, common: genesis preparation | Jeffrey Wilcke | 2015-07-10 | 8 | -110/+196 |
|/ | | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block. | ||||
* | core/vm: added str to op | Jeffrey Wilcke | 2015-07-09 | 1 | -0/+136 |
| | |||||
* | Merge pull request #1441 from obscuren/logs-return-fix | Jeffrey Wilcke | 2015-07-09 | 1 | -1/+1 |
|\ | | | | | miner, xeth: fire log event during mining. Fix return raw tx | ||||
| * | miner, xeth: fire log event during mining. Fix return raw tx | Jeffrey Wilcke | 2015-07-08 | 1 | -1/+1 |
| | | |||||
* | | Use uint64 on ts in chain_manager, block_processor | Gustav Simonsson | 2015-07-08 | 4 | -5/+11 |
|/ | |||||
* | all: goimports -w | Felix Lange | 2015-07-07 | 1 | -2/+4 |
| | |||||
* | all: add some godoc synopsis comments | Felix Lange | 2015-07-07 | 4 | -0/+4 |
| | |||||
* | all: update license information | Felix Lange | 2015-07-07 | 63 | -0/+1008 |
| | |||||
* | core, eth, rpc: proper gas used. Closes #1417 | Jeffrey Wilcke | 2015-07-07 | 3 | -3/+6 |
| | | | | Added some additional backward compatibility code for old receipts | ||||
* | core, miner: removed vm errors from consensus err checking | Jeffrey Wilcke | 2015-07-06 | 4 | -5/+13 |
| | | | | | Removed VM errors from the consensus errors. They now used for output only. | ||||
* | Merge pull request #1400 from obscuren/badblock-reporting | Jeffrey Wilcke | 2015-07-06 | 2 | -0/+58 |
|\ | | | | | core, miner, tests: added test, implemented bad block reporting | ||||
| * | core, miner, tests: added test, implemented bad block reporting | Jeffrey Wilcke | 2015-07-05 | 2 | -0/+58 |
| | | |||||
* | | Merge pull request #1409 from fjl/fix-tx-hash | Jeffrey Wilcke | 2015-07-06 | 2 | -8/+16 |
|\ \ | | | | | | | core/types, xeth: separate tx hash and tx signature hash | ||||
| * | | core/types, xeth: separate tx hash and tx signature hash | Felix Lange | 2015-07-06 | 2 | -8/+16 |
| |/ | |||||
* / | Fix core error forwarding, unify OOG VM err | Gustav Simonsson | 2015-07-04 | 6 | -49/+10 |
|/ | |||||
* | core, miner, tests: renamed state methods | Jeffrey Wilcke | 2015-07-04 | 5 | -8/+10 |
| | | | | | | | | | | | | * 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 intermediate | Jeffrey Wilcke | 2015-07-04 | 3 | -11/+21 |
| | |||||
* | core, eth, miner, xeth: receipt storage fix | Jeffrey Wilcke | 2015-07-04 | 5 | -37/+68 |
| | | | | | * Added GetReceiptsFromBlock, GetReceipt, PutReceipts * Added ContractAddress to receipt. See #1042 | ||||
* | Merge pull request #1389 from obscuren/txpool-issues | Jeffrey Wilcke | 2015-07-03 | 10 | -81/+92 |
|\ | | | | | core, miner: miner header validation, transaction & receipt writing | ||||
| * | core, miner: miner header validation, transaction & receipt writing | Jeffrey Wilcke | 2015-07-03 | 10 | -81/+92 |
| | | | | | | | | | | | | | | | | * Miners do now verify their own header, not their state. * Changed old putTx and putReceipts to be exported * Moved writing of transactions and receipts out of the block processer in to the chain manager. Closes #1386 * Miner post ChainHeadEvent & ChainEvent. Closes #1388 | ||||
* | | Prevent debug value from printing on console | Taylor Gerring | 2015-07-03 | 1 | -2/+0 |
|/ | |||||
* | Merge branch 'develop' of github.com:ethereum/go-ethereum into develop | Vitalik Buterin | 2015-07-02 | 1 | -6/+0 |
|\ | |||||
| * | Merge pull request #1378 from obscuren/issue1367 | Jeffrey Wilcke | 2015-07-02 | 1 | -6/+0 |
| |\ | | | | | | | core, xeth: core.AddressFromMessage removed => crypto.CreateAddress | ||||
| | * | core, xeth: core.AddressFromMessage removed => crypto.CreateAddress | Jeffrey Wilcke | 2015-07-02 | 1 | -6/+0 |
| | | | |||||
* | | | Switched canary addresses | Vitalik Buterin | 2015-07-02 | 1 | -4/+4 |
|/ / | |||||
* / | core, cmd/geth: improved recover functionality | Jeffrey Wilcke | 2015-07-01 | 2 | -80/+104 |
|/ | | | | | `geth recover` now accepts both hashes and numbers using "#" and no longer requires the ethereum instance. | ||||
* | Merge pull request #1370 from obscuren/force-checkpoint | Jeffrey Wilcke | 2015-07-01 | 1 | -2/+10 |
|\ | | | | | core, cmd/geth: recover by number | ||||
| * | core, cmd/geth: recover by number | Jeffrey Wilcke | 2015-07-01 | 1 | -2/+10 |
| | | |||||
* | | Use uint64 for block header timestamp | Gustav Simonsson | 2015-06-30 | 8 | -15/+14 |
|/ | |||||
* | core: txpool listen for ChainHeadEvent instead of ChainEvent | Jeffrey Wilcke | 2015-06-30 | 1 | -2/+2 |
| | | | | | | | Changed the transaction pool to listen for ChainHeadEvent when resetting the state instead of ChainEvent. It makes very little sense to burst through transactions while we are catching up (e.g., have more than one block to process) | ||||
* | core: added checkpoint for last block | Jeffrey Wilcke | 2015-06-30 | 2 | -58/+42 |
| | | | | | * Add a checkpoint every X blocks * Removed queued write | ||||
* | core: reduce CPU load by reducing calls to checkQueue | Jeffrey Wilcke | 2015-06-30 | 2 | -26/+51 |
| | | | | | | | | | | | | | | | | * Reduced maxQueue count * Added proper deletion past maxQueue limit * Added cheap stats method to txpool queueCheck was called for **every** transaction instead of: 1. add all txs 2. check queue previously 1. add txs[i] 2. check queue 3. if i < len(txs) goto 1. | ||||
* | core, miner: added queued write to WriteBlock | Jeffrey Wilcke | 2015-06-30 | 1 | -15/+18 |
| | | | | | | | | This fixes an issue with the lru cache not being available when calling WriteBlock. WriteBlock previously always assumed to be called from the InsertChain where the lru cache was always created prior to calling WriteBlock. When being called from the worker this could lead in to a nil pointer exception being thrown and causing database corruption. | ||||
* | cmd/geth: decent error message if metrics are disabled | Péter Szilágyi | 2015-06-30 | 1 | -1/+0 |
| | |||||
* | cmd, core, eth, metrics, p2p: require enabling metrics | Péter Szilágyi | 2015-06-30 | 1 | -1/+2 |
| | |||||
* | core: replaced BlockCache with lru.Cache | Jeffrey Wilcke | 2015-06-30 | 2 | -20/+25 |
| | |||||
* | Merge branch 'miner-broadcast' into core-optimisations-2 | Jeffrey Wilcke | 2015-06-30 | 2 | -43/+95 |
|\ | | | | | | | | | | | Conflicts: core/chain_manager.go miner/worker.go | ||||
| * | core, miner: implemented canary | Jeffrey Wilcke | 2015-06-29 | 1 | -0/+28 |
| | | |||||
| * | core, miner: added write block method & changed mining propagation | Jeffrey Wilcke | 2015-06-29 | 1 | -45/+67 |
| | | |||||
* | | core: fixed tests | Jeffrey Wilcke | 2015-06-30 | 3 | -2/+2 |
| | | |||||
* | | core: removed write's go routine | Jeffrey Wilcke | 2015-06-30 | 2 | -8/+3 |
| | | |||||
* | | core: renamed next to pending & fixed tests | obscuren | 2015-06-30 | 2 | -17/+14 |
| | | |||||
* | | core: reduced cache limit to 256 | obscuren | 2015-06-30 | 1 | -1/+1 |
| | | |||||
* | | core: switched to proper LRU | obscuren | 2015-06-30 | 1 | -9/+6 |
| | | |||||
* | | core: added LRU caching and added batch writing when LDB is used | obscuren | 2015-06-30 | 1 | -21/+81 |
| | | |||||
* | | core, eth, rpc: avoid unnecessary block header copying | Felix Lange | 2015-06-30 | 3 | -25/+27 |
| | | |||||
* | | core: remove superfluous big.Int allocations | Felix Lange | 2015-06-30 | 3 | -61/+32 |
| | | | | | | | | | | With blocks now being immutable, use big.Int values from accessor functions instead of copying their results. | ||||
* | | core: generate benchmark keys only once | Felix Lange | 2015-06-30 | 1 | -9/+23 |
| | | |||||
* | | core: avoid duplicate calls to Transaction.Data | Felix Lange | 2015-06-30 | 1 | -3/+3 |
| | | |||||
* | | core: optimize IntrinsicGas | Felix Lange | 2015-06-30 | 1 | -5/+12 |
| | | |||||
* | | core/types: cache computed block values | Felix Lange | 2015-06-30 | 1 | -3/+22 |
| | | |||||
* | | core/types: cache computed transaction values | Felix Lange | 2015-06-30 | 1 | -5/+28 |
| | | |||||
* | | core: add InsertChain benchmarks | Felix Lange | 2015-06-30 | 1 | -0/+149 |
| | | |||||
* | | core: add GenerateChain, GenesisBlockForTesting | Felix Lange | 2015-06-30 | 5 | -80/+230 |
| | | |||||
* | | core/types: make blocks immutable | Felix Lange | 2015-06-30 | 11 | -459/+343 |
| | | |||||
* | | core/types: make transactions immutable | Felix Lange | 2015-06-30 | 5 | -230/+177 |
|/ | |||||
* | core, eth, eth/fetcher, ethdb: polish metrics gathering a bit | Péter Szilágyi | 2015-06-24 | 1 | -14/+0 |
| | |||||
* | core, ethdb: instrument the block and state db | Péter Szilágyi | 2015-06-24 | 1 | -1/+14 |
| | | | | | Conflicts: ethdb/database.go | ||||
* | cmd/geth, core: impl. percentile reporting, instrument insertions | Péter Szilágyi | 2015-06-24 | 1 | -1/+4 |
| | |||||
* | removed old rpc structure and added new inproc api client | Bas van Kervel | 2015-06-22 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1304 from obscuren/state-renames | Jeffrey Wilcke | 2015-06-22 | 4 | -31/+7 |
|\ | | | | | core, miner, xeth: renamed gas methods | ||||
| * | core, miner, xeth: renamed gas methods | obscuren | 2015-06-21 | 4 | -31/+7 |
| | | | | | | | | | | | | * BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit | ||||
* | | core, ethdb, trie: validate database errors | obscuren | 2015-06-21 | 1 | -3/+13 |
|/ | |||||
* | core/vm: clarified SSTORE | obscuren | 2015-06-18 | 1 | -7/+5 |
| | |||||
* | core: ValidatedHeader (method => function) | obscuren | 2015-06-18 | 2 | -66/+68 |
| | | | | | Changed header validation method to function in preparation of @karalabe's PR. | ||||
* | core, core/vm: state improvements and tx pool speed up | obscuren | 2015-06-17 | 3 | -32/+25 |
| | | | | Removed full tx validation during state transitions | ||||
* | core: TMP testing code | obscuren | 2015-06-17 | 2 | -21/+23 |
| | |||||
* | core/state: removed trie copy | obscuren | 2015-06-17 | 1 | -1/+1 |
| | |||||
* | core/state: removed state from state object | obscuren | 2015-06-17 | 3 | -31/+20 |
| | |||||
* | core/state: fixed state tests | obscuren | 2015-06-17 | 1 | -13/+10 |
| | |||||
* | core/state: remove the need for common.Value | obscuren | 2015-06-17 | 1 | -2/+4 |
| | |||||
* | core/state, core/vm: reworked storage get / set to use common.Hash | obscuren | 2015-06-17 | 3 | -36/+36 |
| | |||||
* | core/state, core/vm: cleanup refunds | obscuren | 2015-06-17 | 3 | -21/+13 |
| | |||||
* | Merge pull request #1260 from obscuren/tx-drop-low-tx | Jeffrey Wilcke | 2015-06-16 | 2 | -14/+32 |
|\ | | | | | core: drop low gas tx | ||||
| * | core: moved check for max queue to checkQueue | obscuren | 2015-06-15 | 2 | -26/+12 |
| | | | | | | | | | | Moved the queue to check to the checkQueue method so no undeeded loops need to be initiated or sorting needs to happen twice. | ||||
| * | core: reduce max allowed queued txs per address | obscuren | 2015-06-15 | 1 | -0/+19 |
| | | | | | | | | | | Transactions in the queue are now capped to a maximum of 200 transactions. This number is completely arbitrary. | ||||
| * | core, miner: tx pool drops txs below ask price | obscuren | 2015-06-15 | 1 | -3/+16 |
| | | |||||
* | | removed duplicate function after rebase | zsfelfoldi | 2015-06-15 | 1 | -16/+2 |
| | | |||||
* | | fixed saving receipts | zsfelfoldi | 2015-06-15 | 1 | -0/+22 |
|/ | |||||
* | Merge pull request #1255 from obscuren/chain-proc-interupt | Jeffrey Wilcke | 2015-06-12 | 1 | -1/+10 |
|\ | | | | | eth, core: interrupt the chain processing on stop | ||||
| * | core: changed interrupt strategy | obscuren | 2015-06-12 | 1 | -102/+101 |
| | | | | | | | | | | | | Removed chain manager's select/channel approach when checking for interrupts. Now using an atomic int32 instead which checked for every block processed. | ||||
| * | eth, core: interupt the chain processing on stop | obscuren | 2015-06-12 | 1 | -94/+104 |
| | | | | | | | | | | Added an additional channel which is used to interupt the chain manager when it's processing blocks. | ||||
* | | core/vm: Improved error reporting for trace logging | obscuren | 2015-06-12 | 4 | -46/+45 |
| | | |||||
* | | core/vm: fixed printable characters using unicode instead | obscuren | 2015-06-12 | 2 | -6/+2 |
|/ | |||||
* | Merge pull request #1228 from obscuren/vm-optimisations | Jeffrey Wilcke | 2015-06-11 | 12 | -154/+174 |
|\ | | | | | core/vm: optimisations | ||||
| * | core: retry block now also parellise nonce checks | obscuren | 2015-06-11 | 1 | -2/+8 |
| | | |||||
| * | core/vm: added a comment regarding the uint64 vs *big.Int | obscuren | 2015-06-11 | 1 | -1/+3 |
| | | |||||
| * | core/vm: reverse loop stack | obscuren | 2015-06-11 | 1 | -2/+3 |
| | | |||||
| * | core/vm: fixed a bug where `Data` ignored the stack ptr | obscuren | 2015-06-11 | 1 | -1/+1 |
| | | |||||
| * | core, core/vm: moved logger and added gas cost to struct logging | obscuren | 2015-06-11 | 4 | -10/+10 |
| | | |||||
| * | core/vm: unexported stack again. No longer required | obscuren | 2015-06-10 | 3 | -16/+16 |
| | | |||||
| * | core/vm: documentation and name changes | obscuren | 2015-06-10 | 2 | -18/+34 |
| | | |||||
| * | core: log tx count for each set of blocks we're importing | obscuren | 2015-06-10 | 1 | -1/+4 |
| | | |||||
| * | core/vm, core/state: added storage to structured vm logging | obscuren | 2015-06-10 | 4 | -9/+39 |
| | | |||||
| * | core, core/vm: added structure logging | obscuren | 2015-06-10 | 8 | -147/+95 |
| | | | | | | | | This also reduces the time required spend in the VM | ||||
| * | core/vm: added structured logging | obscuren | 2015-06-10 | 2 | -8/+22 |
| | | |||||
| * | core/vm: changed program counter to uint64 | obscuren | 2015-06-10 | 2 | -13/+13 |
| | | |||||
* | | core: fixed race condition for subscriptions | obscuren | 2015-06-10 | 1 | -2/+1 |
| | | |||||
* | | core: fixed test | obscuren | 2015-06-10 | 1 | -4/+1 |
| | | |||||
* | | core: fixed race condition in the transaction pool | obscuren | 2015-06-10 | 1 | -30/+30 |
|/ | | | | Removed `Stop/Start` mechanism from the transaction pool. | ||||
* | core, xeth: moved nonce management burden from xeth to txpool | obscuren | 2015-06-10 | 3 | -22/+43 |
| | |||||
* | core: fix a race condition accessing the gas limit | Péter Szilágyi | 2015-06-10 | 1 | -3/+5 |
| | |||||
* | core: fix a lock annoyance and potential deadlock | Péter Szilágyi | 2015-06-10 | 1 | -4/+9 |
| | |||||
* | core, eth: document that result of GetTransactions is modifiable | Felix Lange | 2015-06-09 | 1 | -0/+1 |
| | |||||
* | core/types: add Transaction.Size | Felix Lange | 2015-06-09 | 1 | -0/+7 |
| | |||||
* | Merge pull request #1219 from Gustav-Simonsson/precompiled_ec_recover_padding | Jeffrey Wilcke | 2015-06-09 | 1 | -8/+12 |
|\ | | | | | Precompiled ec recover padding | ||||
| * | Remove unneeded if check on EC recover padding | Gustav Simonsson | 2015-06-09 | 1 | -3/+1 |
| | | |||||
| * | Pad precompiled EC recover input and add validations | Gustav Simonsson | 2015-06-09 | 1 | -8/+14 |
| | | |||||
* | | Merge pull request #1216 from karalabe/fix-eth-dataraces | Jeffrey Wilcke | 2015-06-09 | 1 | -9/+8 |
|\ \ | |/ |/| | Fix various data races in eth and core | ||||
| * | core: fix up a deadlock caused by double locking | Péter Szilágyi | 2015-06-09 | 1 | -8/+5 |
| | | |||||
| * | core: fix data race accessing ChainManager.currentBlock | Péter Szilágyi | 2015-06-09 | 1 | -1/+4 |
| | | |||||
| * | core: fix data race in accessing ChainManager.td | Péter Szilágyi | 2015-06-09 | 1 | -9/+8 |
| | | |||||
* | | core: skip genesis block for reprocess. Closes #1202 | obscuren | 2015-06-09 | 1 | -5/+10 |
|/ | |||||
* | core: write accounts to statedb. Closes #1210 | obscuren | 2015-06-09 | 1 | -6/+7 |
| | |||||
* | Merge pull request #1193 from tgerring/hotbackup | Jeffrey Wilcke | 2015-06-09 | 1 | -3/+14 |
|\ | | | | | Improve export command | ||||
| * | Export should start with block 0 | Taylor Gerring | 2015-06-06 | 1 | -1/+1 |
| | | |||||
| * | Cleanup | Taylor Gerring | 2015-06-06 | 1 | -2/+1 |
| | | |||||
| * | Allow exporting subset of chain | Taylor Gerring | 2015-06-06 | 1 | -2/+14 |
| | | |||||
* | | core: added a test for missing nonces | obscuren | 2015-06-09 | 2 | -1/+24 |
| | | | | | | | | | | This test showed the logic in the queue was slightly flawed sending out transactions to its peer it couldn't even resolve itself. | ||||
* | | core: settable genesis nonce | obscuren | 2015-06-09 | 5 | -26/+62 |
| | | | | | | | | | | | | | | You can set the nonce of the block with `--genesisnonce`. When the genesis nonce changes and it doesn't match with the first block in your database it will fail. A new `datadir` must be given if the nonce of the genesis block changes. | ||||
* | | core: add bad block for the 'missing nonce check' fork | Felix Lange | 2015-06-08 | 1 | -0/+1 |
| | | |||||
* | | core: fix the nonce check one more time | Felix Lange | 2015-06-08 | 3 | -3/+73 |
|/ | | | | | The block nonce verification was effectively disabled by a typo. This time, there is an actual test for it. | ||||
* | wip | obscuren | 2015-06-05 | 1 | -2/+10 |
| | |||||
* | core: added fork test & double nonce test | obscuren | 2015-06-05 | 2 | -20/+75 |
| | |||||
* | crypto: return common.Address rather than raw bytes | obscuren | 2015-06-05 | 1 | -3/+3 |
| | |||||
* | core: documented changes in tx pool | obscuren | 2015-06-04 | 1 | -3/+30 |
| | |||||
* | core: only change the nonce if the account nonce is lower | obscuren | 2015-06-04 | 1 | -1/+3 |
| | |||||
* | core: renamed txs to pending | obscuren | 2015-06-04 | 2 | -24/+24 |
| | |||||
* | core: test updates | obscuren | 2015-06-04 | 2 | -2/+1 |
| | |||||
* | core, eth, miner: moved nonce management to tx pool. | obscuren | 2015-06-04 | 3 | -67/+62 |
| | | | | | | | | Removed the managed tx state from the chain manager to the transaction pool where it's much easier to keep track of nonces (and manage them). The transaction pool now also uses the queue and pending txs differently where queued txs are now moved over to the pending queue (i.e. txs ready for processing and propagation). | ||||
* | core: don't remove transactions after block processing | Felix Lange | 2015-06-04 | 4 | -11/+5 |
| | | | | | The transaction pool drops processed transactions on its own during pool maintenance. | ||||
* | core: update documentation comments for TxPool | Felix Lange | 2015-06-04 | 1 | -22/+25 |
| | |||||
* | core: remove unused code from TxPool | Felix Lange | 2015-06-04 | 1 | -41/+13 |
| | |||||
* | core: compute less transaction hashes in TxPool | Felix Lange | 2015-06-04 | 2 | -82/+82 |
| | |||||
* | wip | obscuren | 2015-06-04 | 2 | -8/+3 |
| | |||||
* | types: block json unmarshal method added | obscuren | 2015-06-04 | 2 | -2/+26 |
| | |||||
* | core/vm: cleanup and renames | obscuren | 2015-06-04 | 5 | -52/+0 |
| | |||||
* | Merge pull request #1167 from Gustav-Simonsson/check_ec_recover_err | Jeffrey Wilcke | 2015-06-04 | 2 | -16/+21 |
|\ | | | | | Add missing err checks on From() | ||||
| * | Add missing err checks on From() (skip RPC for now) | Gustav Simonsson | 2015-06-02 | 2 | -16/+21 |
| | |