Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core, eth, trie, xeth: merged state, chain, extra databases in one | Jeffrey Wilcke | 2015-08-08 | 1 | -5/+5 |
| | |||||
* | miner, core: sort txs by price, nonce | Jeffrey Wilcke | 2015-08-05 | 1 | -1/+34 |
| | |||||
* | Merge pull request #1588 from obscuren/diff-bomb | Jeffrey Wilcke | 2015-08-05 | 1 | -1/+1 |
|\ | | | | | core, miner: added difficulty bomb | ||||
| * | core, miner: added difficulty bomb | Jeffrey Wilcke | 2015-08-05 | 1 | -1/+1 |
| | | |||||
* | | miner: fixed worker race condition | Jeffrey Wilcke | 2015-08-05 | 1 | -43/+44 |
|/ | |||||
* | all: fix license headers one more time | Felix Lange | 2015-07-24 | 1 | -1/+1 |
| | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 1 | -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". | ||||
* | miner: fix current work data race | Péter Szilágyi | 2015-07-20 | 1 | -2/+3 |
| | |||||
* | miner: moved state sync | Jeffrey Wilcke | 2015-07-16 | 1 | -1/+1 |
| | | | | Moved the state sync so it only syncs the state when the block mining yield a possitive result | ||||
* | miner: smart mining | Jeffrey Wilcke | 2015-07-16 | 1 | -60/+74 |
| | | | | | | | | | Work is now handled and carried over multiple sessions. Previously one session only was assumed, potentially resulting in invalid (outdated) work * Larger work / result queue * Full validation option | ||||
* | Merge pull request #1441 from obscuren/logs-return-fix | Jeffrey Wilcke | 2015-07-09 | 1 | -0/+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 | -0/+1 |
| | | |||||
* | | Use uint64 on ts in chain_manager, block_processor | Gustav Simonsson | 2015-07-08 | 1 | -1/+1 |
|/ | |||||
* | all: update license information | Felix Lange | 2015-07-07 | 1 | -0/+16 |
| | |||||
* | eth,miner,rpc: set coinbase | Jeffrey Wilcke | 2015-07-07 | 1 | -0/+6 |
| | |||||
* | core, miner: removed vm errors from consensus err checking | Jeffrey Wilcke | 2015-07-06 | 1 | -7/+7 |
| | | | | | Removed VM errors from the consensus errors. They now used for output only. | ||||
* | core, miner, tests: added test, implemented bad block reporting | Jeffrey Wilcke | 2015-07-05 | 1 | -2/+0 |
| | |||||
* | core, miner, tests: renamed state methods | Jeffrey Wilcke | 2015-07-04 | 1 | -1/+1 |
| | | | | | | | | | | | | * Update => SyncIntermediate * Added SyncObjects SyncIntermediate only updates whatever has changed, but, as a side effect, requires much more disk space. SyncObjects will only sync whatever is required for a block and will not save intermediate state to disk. As drawback this requires more time when more txs come in. | ||||
* | core, eth, miner, xeth: receipt storage fix | Jeffrey Wilcke | 2015-07-04 | 1 | -1/+1 |
| | | | | | * Added GetReceiptsFromBlock, GetReceipt, PutReceipts * Added ContractAddress to receipt. See #1042 | ||||
* | miner: ignore future errors | Jeffrey Wilcke | 2015-07-03 | 1 | -1/+1 |
| | |||||
* | core, miner: miner header validation, transaction & receipt writing | Jeffrey Wilcke | 2015-07-03 | 1 | -5/+30 |
| | | | | | | | | * 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 | ||||
* | Use uint64 for block header timestamp | Gustav Simonsson | 2015-06-30 | 1 | -3/+3 |
| | |||||
* | core, miner: added queued write to WriteBlock | Jeffrey Wilcke | 2015-06-30 | 1 | -1/+1 |
| | | | | | | | | 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. | ||||
* | Merge branch 'miner-broadcast' into core-optimisations-2 | Jeffrey Wilcke | 2015-06-30 | 1 | -23/+34 |
|\ | | | | | | | | | | | Conflicts: core/chain_manager.go miner/worker.go | ||||
| * | core, miner: implemented canary | Jeffrey Wilcke | 2015-06-29 | 1 | -0/+6 |
| | | |||||
| * | core, miner: added write block method & changed mining propagation | Jeffrey Wilcke | 2015-06-29 | 1 | -28/+28 |
| | | |||||
| * | miner: broadcast block before insertion/validation | Jeffrey Wilcke | 2015-06-29 | 1 | -1/+6 |
| | | |||||
* | | miner: update root only when mining | Jeffrey Wilcke | 2015-06-30 | 1 | -4/+6 |
| | | |||||
* | | core/types: make blocks immutable | Felix Lange | 2015-06-30 | 1 | -98/+86 |
|/ | |||||
* | core, miner, xeth: renamed gas methods | obscuren | 2015-06-21 | 1 | -1/+1 |
| | | | | | | * BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit | ||||
* | core, miner: tx pool drops txs below ask price | obscuren | 2015-06-15 | 1 | -2/+5 |
| | |||||
* | miner: update gas used after tx proc for pending block | obscuren | 2015-06-10 | 1 | -1/+2 |
| | |||||
* | crash fix: skip deep log if self.chain is not caught up | Jason Carver | 2015-06-09 | 1 | -1/+1 |
| | | | | @see trace https://gist.github.com/eupraxic/87fdfefe702c51d5944d | ||||
* | core, eth, miner: moved nonce management to tx pool. | obscuren | 2015-06-04 | 1 | -4/+0 |
| | | | | | | | | 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). | ||||
* | build server fix | obscuren | 2015-05-28 | 1 | -0/+4 |
| | |||||
* | miner: Added 5 blocks wait in prep for #1067 | obscuren | 2015-05-27 | 1 | -4/+5 |
| | |||||
* | core, miner: fixed miner time issue and removed future blocks | obscuren | 2015-05-27 | 1 | -3/+4 |
| | | | | | | | * Miner should no longer generate blocks with a time stamp less or equal than it's parent. * Future blocks are no longer processed and queued directly. Closes #1118 | ||||
* | deep-mining-log: need ring buffer to be one bigger for all-blocks-mined case | Jason Carver | 2015-05-27 | 1 | -1/+1 |
| | |||||
* | deep-mining-log: only track non-stale blocks | Jason Carver | 2015-05-27 | 1 | -2/+2 |
| | | | | if you track stale blocks, then you quickly overflow your ring buffer in the local network case where you're mining every block and generating a lot of stales. | ||||
* | do not export ring buffer struct | Jason Carver | 2015-05-24 | 1 | -4/+4 |
| | |||||
* | do not export constant for when to log a deep block you mined | Jason Carver | 2015-05-24 | 1 | -4/+4 |
| | |||||
* | Log locally mined blocks, after they are 5-deep in the chain | Jason Carver | 2015-05-23 | 1 | -0/+59 |
| | | | | | | | | | | | This helps determine which blocks are unlikely to end up as uncles * Store the 5 most recent locally mined block numbers * On every imported block, check if the 5-deep block num is in that store * Also confirm that the block is signed with miner's coinbase Why not just check the coinbase? This log is useful if you're running multiple miners and want to know if *this* miner is performing well. | ||||
* | fix solc tests unskip | zelig | 2015-05-20 | 1 | -0/+1 |
| | |||||
* | miner: stale block notification | obscuren | 2015-05-19 | 1 | -1/+7 |
| | |||||
* | Merge pull request #969 from Gustav-Simonsson/ethash_improve_hashrate_update2 | Jeffrey Wilcke | 2015-05-14 | 1 | -7/+2 |
|\ | | | | | Make read of ethash hashrate atomic and update ethash godep | ||||
| * | Make read of ethash hashrate atomic and update ethash godep | Gustav Simonsson | 2015-05-14 | 1 | -7/+2 |
| | | |||||
* | | Combined two loops | Vitalik Buterin | 2015-05-14 | 1 | -3/+1 |
| | | |||||
* | | Created separate family and ancestors environment objects | Vitalik Buterin | 2015-05-14 | 1 | -2/+10 |
|/ | |||||
* | Update key store to new spec but keep address field for now | Gustav Simonsson | 2015-05-12 | 1 | -1/+1 |
| | | | | * Also fix address types post-rebase | ||||
* | miner, cmd/geth: miner will not ignored owned account transactions | obscuren | 2015-05-12 | 1 | -25/+31 |
| | | | | Miner does not ignore low gas txs from accounts that are owned. | ||||
* | cmd/geth, miner, backend, xeth: Fixed miner threads to be settable | obscuren | 2015-05-11 | 1 | -1/+6 |
| | | | | | Miner threads are now settable through the admin interface (closes #897) and specify 0 CPU worker threads when eth_getWork is called (closes #916) | ||||
* | core: optimise pending transaction processing | obscuren | 2015-05-11 | 1 | -85/+101 |
| | |||||
* | core, eth, miner: improved tx removal & fatal error on db sync err | obscuren | 2015-05-11 | 1 | -7/+35 |
| | | | | | | | | * core: Added GasPriceChange event * eth: When one of the DB flush methods error a fatal error log message is given. Hopefully this will prevent corrupted databases from occuring. * miner: remove transactions with low gas price. Closes #906, #903 | ||||
* | miner: start/stop mutex locked. Closes #887 | obscuren | 2015-05-09 | 1 | -0/+9 |
| | |||||
* | miner: moved gasprice to non-method | obscuren | 2015-05-09 | 1 | -9/+12 |
| | |||||
* | miner, cmd/geth: settable gas price from flags and console | obscuren | 2015-05-09 | 1 | -0/+28 |
| | | | | | * --gasprice "<num>" flag * admin.miner.setGasPrice( <num> ) | ||||
* | core: return the index of the block that failed when inserting a chain | obscuren | 2015-04-29 | 1 | -1/+1 |
| | |||||
* | core, miner: added value check on tx validation | obscuren | 2015-04-26 | 1 | -1/+1 |
| | | | | | | * Changed CalcGasLimit to no longer need current block * Added a gas * price + value on tx validation * Transactions in the pool are now re-validated once every X | ||||
* | miner: show error message for gas limit per account | obscuren | 2015-04-23 | 1 | -2/+2 |
| | |||||
* | xeth, miner: updated some logging | obscuren | 2015-04-23 | 1 | -2/+1 |
| | |||||
* | miner: use 32bit atomic operations | Felix Lange | 2015-04-22 | 1 | -11/+12 |
| | | | | 64bit atomic operations are not available on all 32bit platforms. | ||||
* | miner: ignore a tx's transactor after a gas limit has been returned | obscuren | 2015-04-21 | 1 | -3/+19 |
| | | | | | | | | | When worker encounters a gas limit error, subsequent txs should be ignored from that particular account. This will prevent: 1. Nonce errors been thrown all around 2. The "Known tx" error. Closes #719 3. Repeated contract address. Closes #731 | ||||
* | miner: removed default timer & update dag when threads > 0 | obscuren | 2015-04-20 | 1 | -12/+0 |
| | |||||
* | add extra space to miner icon | Fabian Vogelsteller | 2015-04-17 | 1 | -1/+1 |
| | |||||
* | miner: start a newly registered agent if the miner is running. Closes #681 | obscuren | 2015-04-15 | 1 | -1/+5 |
| | |||||
* | miner: moved bad uncle logging to ridiculous log level. Closes #720 | obscuren | 2015-04-15 | 1 | -2/+5 |
| | |||||
* | miner: don't break loop when encountering gas limit reach err | obscuren | 2015-04-14 | 1 | -8/+7 |
| | | | | | Processing transactions should continue when a transaction throws a gas limit reached error. Other transactions may actually succeed. | ||||
* | Improved transaction pool | obscuren | 2015-04-09 | 1 | -1/+1 |
| | | | | | | | | | | 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 recorded | obscuren | 2015-04-08 | 1 | -0/+2 |
| | | | | | | | 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. | ||||
* | fixed stop of miner | obscuren | 2015-04-08 | 1 | -14/+12 |
| | |||||
* | Updated logging | obscuren | 2015-04-07 | 1 | -6/+11 |
| | |||||
* | Fixed pending states | obscuren | 2015-04-07 | 1 | -20/+52 |
| | |||||
* | Block header changed & console miner control | obscuren | 2015-04-06 | 1 | -3/+6 |
| | | | | | | * miner control moved to `admin.miner` * miner option to set extra data * block extra now bytes | ||||
* | removed hash rate from info log. Added hashrate js func | obscuren | 2015-04-05 | 1 | -1/+1 |
| | |||||
* | Updated logging | obscuren | 2015-04-05 | 1 | -9/+15 |
| | |||||
* | Make sure we're not mining on an invalid TS | obscuren | 2015-04-04 | 1 | -0/+3 |
| | |||||
* | Put the old hammer back in <3 | obscuren | 2015-04-02 | 1 | -1/+1 |
| | |||||
* | info => debug | obscuren | 2015-04-02 | 1 | -0/+2 |
| | |||||
* | Removed old (unused) argument | obscuren | 2015-04-02 | 1 | -1/+1 |
| | |||||
* | Fixed uncle rewards in miner | obscuren | 2015-04-02 | 1 | -4/+1 |
| | | | | | The uncle rewards were changed in the block processor. This change will reflect those changes in the miner as well. | ||||
* | Fixed miner | obscuren | 2015-03-27 | 1 | -8/+18 |
| | | | | * Miners could stall because the worker wasn't aware the miner was done | ||||
* | Improved miner recovery | obscuren | 2015-03-25 | 1 | -22/+16 |
| | | | | | * In case of uncle mining (e.g. same TS) the miner would stop if all threads happened to mine a potential uncle | ||||
* | Event fixes for miner | obscuren | 2015-03-24 | 1 | -5/+3 |
| | |||||
* | Changed miner | obscuren | 2015-03-24 | 1 | -26/+26 |
| | | | | | * Instead of delivering `Work` to the `Worker`, push a complete Block to the `Worker` so that each agent can work on their own block. | ||||
* | fixed bad uncles | obscuren | 2015-03-24 | 1 | -2/+11 |
| | |||||
* | moved state and vm to core | obscuren | 2015-03-23 | 1 | -1/+1 |
| | |||||
* | Fixed issues with stalled remote miner | obscuren | 2015-03-23 | 1 | -3/+8 |
| | |||||
* | logging for possible uncles | obscuren | 2015-03-23 | 1 | -10/+13 |
| | |||||
* | finally merged *the missing* | obscuren | 2015-03-23 | 1 | -15/+43 |
| | |||||
* | Removed some comments | obscuren | 2015-03-21 | 1 | -1/+2 |
| | |||||
* | wip | obscuren | 2015-03-21 | 1 | -2/+2 |
| | |||||
* | conversions. -compilable- | obscuren | 2015-03-18 | 1 | -13/+14 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 1 | -5/+5 |
| | |||||
* | POW fixes | obscuren | 2015-03-14 | 1 | -4/+0 |
| | |||||
* | Improved errors. Closes #475 | obscuren | 2015-03-14 | 1 | -5/+3 |
| | |||||
* | Return proper error | obscuren | 2015-03-14 | 1 | -0/+1 |
| | |||||
* | Removed some of that gas pre pay magic | obscuren | 2015-03-13 | 1 | -1/+0 |
| | |||||
* | Use the state to up the balance of the coinbase | obscuren | 2015-03-11 | 1 | -2/+6 |
| | |||||
* | Separated block db from state db. Partial fix for #416 | obscuren | 2015-03-07 | 1 | -1/+1 |
| | |||||
* | Queued approach to delivering chain events | obscuren | 2015-03-06 | 1 | -2/+2 |
| | |||||
* | Miner fixes and updates (including miner) | obscuren | 2015-03-05 | 1 | -3/+7 |
| | |||||
* | Fixed genesis | obscuren | 2015-03-04 | 1 | -1/+1 |
| | |||||
* | Changed nonce to a uint64 | obscuren | 2015-03-04 | 1 | -3/+3 |
| | |||||
* | Merge branch 'jsonlogs' of https://github.com/ethersphere/go-ethereum into ↵ | obscuren | 2015-03-04 | 1 | -0/+10 |
|\ | | | | | | | | | | | | | | | | | | | ethersphere-jsonlogs Conflicts: eth/block_pool.go eth/block_pool_test.go eth/protocol_test.go miner/worker.go | ||||
| * | Merge remote-tracking branch 'tgerring/jsonlogs' into jsonlogs | zelig | 2015-03-03 | 1 | -1/+9 |
| |\ | |||||
| | * | Implement eth.miner.new_block event | Taylor Gerring | 2015-03-01 | 1 | -1/+9 |
| | | | |||||
* | | | Fixes and debug added | obscuren | 2015-03-04 | 1 | -1/+1 |
| | | | |||||
* | | | merge | obscuren | 2015-03-04 | 1 | -0/+14 |
|\| | | |||||
| * | | Report debug hash rate | obscuren | 2015-03-01 | 1 | -0/+14 |
| |/ | |||||
* | | fixed pow stuff | obscuren | 2015-03-04 | 1 | -0/+1 |
| | | |||||
* | | Introducing ethash | Matthew Wampler-Doty | 2015-03-03 | 1 | -2/+7 |
|/ | |||||
* | Fixed consensus issue for refunding | obscuren | 2015-02-27 | 1 | -2/+2 |
| | | | | * Refund should _always_ go to the origin | ||||
* | Minor updates for release | obscuren | 2015-02-21 | 1 | -2/+0 |
| | |||||
* | fixed merge | obscuren | 2015-02-20 | 1 | -0/+2 |
|\ | |||||
* | | Optimisations and fixed a couple of DDOS issues in the miner | obscuren | 2015-02-20 | 1 | -9/+13 |
|/ | |||||
* | "centralised" mining to backend. Closes #323 | obscuren | 2015-02-17 | 1 | -4/+3 |
| | |||||
* | Resolved some bugs in the miner | obscuren | 2015-02-15 | 1 | -11/+10 |
| | | | | | | * TODO nonce error sometimes persists * Fixed mining on wrong blocks * Fixed state error & receipt fail | ||||
* | Fixed mining & limited hash power | obscuren | 2015-02-14 | 1 | -11/+29 |
| | |||||
* | Update balance label when mining | obscuren | 2015-02-14 | 1 | -1/+2 |
| | |||||
* | Propagate blocks | obscuren | 2015-02-14 | 1 | -0/+1 |
| | |||||
* | Fixed a few issues in the miner and updated hash rate title | obscuren | 2015-02-14 | 1 | -11/+29 |
| | | | | | * Sometimes old nonces were set by "old" agents * Added the hash rate to the miner | ||||
* | Basic structure miner | obscuren | 2015-02-10 | 1 | -12/+49 |
| | |||||
* | Filtering | obscuren | 2015-02-05 | 1 | -4/+9 |
| | |||||
* | WIP miner | obscuren | 2015-02-04 | 1 | -0/+164 |