aboutsummaryrefslogtreecommitdiffstats
path: root/miner
Commit message (Collapse)AuthorAgeFilesLines
* miner, rpc: added submit hashrate for remote agentsJeffrey Wilcke2015-08-062-4/+44
|
* miner, core: sort txs by price, nonceJeffrey Wilcke2015-08-051-1/+34
|
* Merge pull request #1588 from obscuren/diff-bombJeffrey Wilcke2015-08-051-1/+1
|\ | | | | core, miner: added difficulty bomb
| * core, miner: added difficulty bombJeffrey Wilcke2015-08-051-1/+1
| |
* | miner: fixed worker race conditionJeffrey Wilcke2015-08-051-43/+44
|/
* all: fix license headers one more timeFelix Lange2015-07-244-4/+4
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-234-16/+16
| | | | | 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 racePéter Szilágyi2015-07-201-2/+3
|
* miner: moved state syncJeffrey Wilcke2015-07-161-1/+1
| | | | Moved the state sync so it only syncs the state when the block mining yield a possitive result
* miner: smart miningJeffrey Wilcke2015-07-163-105/+149
| | | | | | | | | 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-fixJeffrey Wilcke2015-07-091-0/+1
|\ | | | | miner, xeth: fire log event during mining. Fix return raw tx
| * miner, xeth: fire log event during mining. Fix return raw txJeffrey Wilcke2015-07-081-0/+1
| |
* | Use uint64 on ts in chain_manager, block_processorGustav Simonsson2015-07-081-1/+1
|/
* all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: update license informationFelix Lange2015-07-074-0/+64
|
* eth,miner,rpc: set coinbaseJeffrey Wilcke2015-07-072-0/+11
|
* core, miner: removed vm errors from consensus err checkingJeffrey Wilcke2015-07-061-7/+7
| | | | | Removed VM errors from the consensus errors. They now used for output only.
* core, miner, tests: added test, implemented bad block reportingJeffrey Wilcke2015-07-051-2/+0
|
* core, miner, tests: renamed state methodsJeffrey Wilcke2015-07-041-1/+1
| | | | | | | | | | | | * Update => SyncIntermediate * Added SyncObjects SyncIntermediate only updates whatever has changed, but, as a side effect, requires much more disk space. SyncObjects will only sync whatever is required for a block and will not save intermediate state to disk. As drawback this requires more time when more txs come in.
* core, eth, miner, xeth: receipt storage fixJeffrey Wilcke2015-07-041-1/+1
| | | | | * Added GetReceiptsFromBlock, GetReceipt, PutReceipts * Added ContractAddress to receipt. See #1042
* miner: ignore future errorsJeffrey Wilcke2015-07-031-1/+1
|
* core, miner: miner header validation, transaction & receipt writingJeffrey Wilcke2015-07-031-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 timestampGustav Simonsson2015-06-301-3/+3
|
* core, miner: added queued write to WriteBlockJeffrey Wilcke2015-06-301-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-2Jeffrey Wilcke2015-06-301-23/+34
|\ | | | | | | | | | | Conflicts: core/chain_manager.go miner/worker.go
| * core, miner: implemented canaryJeffrey Wilcke2015-06-291-0/+6
| |
| * core, miner: added write block method & changed mining propagationJeffrey Wilcke2015-06-291-28/+28
| |
| * miner: broadcast block before insertion/validationJeffrey Wilcke2015-06-291-1/+6
| |
* | miner: update root only when miningJeffrey Wilcke2015-06-301-4/+6
| |
* | core/types: make blocks immutableFelix Lange2015-06-303-105/+89
|/
* core, miner, xeth: renamed gas methodsobscuren2015-06-211-1/+1
| | | | | | * BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit
* core, miner: tx pool drops txs below ask priceobscuren2015-06-152-3/+6
|
* miner: update gas used after tx proc for pending blockobscuren2015-06-101-1/+2
|
* crash fix: skip deep log if self.chain is not caught upJason Carver2015-06-091-1/+1
| | | | @see trace https://gist.github.com/eupraxic/87fdfefe702c51d5944d
* core, eth, miner: moved nonce management to tx pool.obscuren2015-06-041-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 fixobscuren2015-05-281-0/+4
|
* miner: Added 5 blocks wait in prep for #1067obscuren2015-05-271-4/+5
|
* core, miner: fixed miner time issue and removed future blocksobscuren2015-05-271-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 caseJason Carver2015-05-271-1/+1
|
* deep-mining-log: only track non-stale blocksJason Carver2015-05-271-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 structJason Carver2015-05-241-4/+4
|
* do not export constant for when to log a deep block you minedJason Carver2015-05-241-4/+4
|
* Log locally mined blocks, after they are 5-deep in the chainJason Carver2015-05-231-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.
* miner: moved break INSIDE the switch ...obscuren2015-05-221-4/+5
|
* miner: on downloader.Done/Fail stop immediately. Ignore pending evsobscuren2015-05-221-0/+2
|
* miner: one-shot update loopobscuren2015-05-211-0/+6
|
* fix solc tests unskipzelig2015-05-201-0/+1
|
* Merge pull request #1022 from obscuren/parallel_nonce_checksJeffrey Wilcke2015-05-191-1/+7
|\ | | | | Parallelise nonce checks
| * miner: stale block notificationobscuren2015-05-191-1/+7
| |
* | fixed issue when miner is not stopping af stop commandBas van Kervel2015-05-181-0/+6
| |
* | fixed race condition in minerBas van Kervel2015-05-181-12/+7
|/
* eth/downloader: moved start eventobscuren2015-05-161-0/+1
| | | | Start event has moved because it could possibly could stall the miner
* Adjust miner coinbase and not just miner worker coinbaseVitalik Buterin2015-05-161-0/+1
|
* miner: mutex locks on cpu agent. Closes #1007obscuren2015-05-161-16/+23
|
* miner: properly check for mining operation on Registerobscuren2015-05-161-1/+1
|
* core, miner: fork resolving and restart miner after sync opobscuren2015-05-161-0/+1
| | | | Fork resolving fixes #940
* eth, eth/downloader, miner: use download events to check miner startobscuren2015-05-151-13/+55
|
* Merge pull request #969 from Gustav-Simonsson/ethash_improve_hashrate_update2Jeffrey Wilcke2015-05-142-8/+3
|\ | | | | Make read of ethash hashrate atomic and update ethash godep
| * Make read of ethash hashrate atomic and update ethash godepGustav Simonsson2015-05-142-8/+3
| |
* | Combined two loopsVitalik Buterin2015-05-141-3/+1
| |
* | Created separate family and ancestors environment objectsVitalik Buterin2015-05-141-2/+10
|/
* Update key store to new spec but keep address field for nowGustav Simonsson2015-05-121-1/+1
| | | | * Also fix address types post-rebase
* miner, cmd/geth: miner will not ignored owned account transactionsobscuren2015-05-121-25/+31
| | | | Miner does not ignore low gas txs from accounts that are owned.
* cmd/geth, miner, backend, xeth: Fixed miner threads to be settableobscuren2015-05-113-29/+33
| | | | | Miner threads are now settable through the admin interface (closes #897) and specify 0 CPU worker threads when eth_getWork is called (closes #916)
* Return 32-byte hashes from GetWorkTaylor Gerring2015-05-111-2/+2
| | | | Ensures that the Get Work results are a consistent length. Closes #917
* miner: added log message for mining operation. #912obscuren2015-05-111-0/+4
|
* core: optimise pending transaction processingobscuren2015-05-111-85/+101
|
* core, eth, miner: improved tx removal & fatal error on db sync errobscuren2015-05-111-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, tests: fixed block testobscuren2015-05-091-0/+5
|
* miner: start/stop mutex locked. Closes #887obscuren2015-05-091-0/+9
|
* miner: moved gasprice to non-methodobscuren2015-05-091-9/+12
|
* miner, cmd/geth: settable gas price from flags and consoleobscuren2015-05-092-0/+32
| | | | | * --gasprice "<num>" flag * admin.miner.setGasPrice( <num> )
* Integrate new ethash API and change geth makedag cmdGustav Simonsson2015-05-052-8/+1
|
* core: return the index of the block that failed when inserting a chainobscuren2015-04-291-1/+1
|
* core, miner: added value check on tx validationobscuren2015-04-261-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 accountobscuren2015-04-231-2/+2
|
* xeth, miner: updated some loggingobscuren2015-04-231-2/+1
|
* miner: use 32bit atomic operationsFelix Lange2015-04-221-11/+12
| | | | 64bit atomic operations are not available on all 32bit platforms.
* miner: ignore a tx's transactor after a gas limit has been returnedobscuren2015-04-211-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: go fmtobscuren2015-04-201-8/+7
|
* Switched getWork third output from difficulty to targetVitalik Buterin2015-04-201-1/+8
|
* miner: fixed remote miner current workobscuren2015-04-201-1/+2
|
* miner: removed default timer & update dag when threads > 0obscuren2015-04-202-16/+8
|
* add extra space to miner iconFabian Vogelsteller2015-04-171-1/+1
|
* miner: start a newly registered agent if the miner is running. Closes #681obscuren2015-04-152-3/+9
|
* miner: moved bad uncle logging to ridiculous log level. Closes #720obscuren2015-04-151-2/+5
|
* miner: don't break loop when encountering gas limit reach errobscuren2015-04-141-8/+7
| | | | | Processing transactions should continue when a transaction throws a gas limit reached error. Other transactions may actually succeed.
* Improved transaction poolobscuren2015-04-091-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 recordedobscuren2015-04-081-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 minerobscuren2015-04-081-14/+12
|
* Updated loggingobscuren2015-04-071-6/+11
|
* Fixed pending statesobscuren2015-04-072-20/+64
|
* Block header changed & console miner controlobscuren2015-04-062-4/+10
| | | | | | * 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 funcobscuren2015-04-051-1/+1
|
* Updated loggingobscuren2015-04-053-13/+18
|
* Make sure we're not mining on an invalid TSobscuren2015-04-041-0/+3
|
* Put the old hammer back in <3obscuren2015-04-021-1/+1
|
* info => debugobscuren2015-04-021-0/+2
|
* Removed old (unused) argumentobscuren2015-04-021-1/+1
|
* Fixed uncle rewards in minerobscuren2015-04-022-5/+2
| | | | | The uncle rewards were changed in the block processor. This change will reflect those changes in the miner as well.
* Fixed minerobscuren2015-03-273-15/+35
| | | | * Miners could stall because the worker wasn't aware the miner was done
* Moved output to debugobscuren2015-03-261-1/+1
|
* Improved miner recoveryobscuren2015-03-251-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 minerobscuren2015-03-241-5/+3
|
* Changed minerobscuren2015-03-244-38/+48
| | | | | * 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 unclesobscuren2015-03-241-2/+11
|
* moved state and vm to coreobscuren2015-03-231-1/+1
|
* Fixed issues with stalled remote minerobscuren2015-03-232-4/+9
|
* logging for possible unclesobscuren2015-03-231-10/+13
|
* Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-03-231-0/+81
|\
| * Move RemoteAgent to miner pkgTaylor Gerring2015-03-231-0/+81
| |
* | finally merged *the missing*obscuren2015-03-231-15/+43
|/
* Get work / submit work partially implemented.obscuren2015-03-221-2/+6
| | | | | * WIP missing arguments for submitting new work * GetWork **done**
* Removed some commentsobscuren2015-03-211-1/+2
|
* wipobscuren2015-03-212-2/+6
|
* conversions. -compilable-obscuren2015-03-182-14/+16
|
* Moved ethutil => commonobscuren2015-03-161-5/+5
|
* POW fixesobscuren2015-03-141-4/+0
|
* Improved errors. Closes #475obscuren2015-03-141-5/+3
|
* Return proper errorobscuren2015-03-141-0/+1
|
* Removed some of that gas pre pay magicobscuren2015-03-131-1/+0
|
* miner: provide coinbase when starting the minerFelix Lange2015-03-121-20/+10
| | | | | | | | | | This avoids having to query the coinbase when creating the miner, which in turn eliminates the dreaded startup error when no accounts are set up. Later, this will also allow us to simply restart the miner when the user picks a different coinbase. This causes a lot of changes in other packages. These are included in this commit because they're impossible to separate.
* Use the state to up the balance of the coinbaseobscuren2015-03-111-2/+6
|
* Separated block db from state db. Partial fix for #416obscuren2015-03-071-1/+1
|
* Queued approach to delivering chain eventsobscuren2015-03-062-2/+3
|
* debug comments & pow handlingobscuren2015-03-061-1/+5
|
* Miner fixes and updates (including miner)obscuren2015-03-051-3/+7
|
* Fixed genesisobscuren2015-03-041-1/+1
|
* Changed nonce to a uint64obscuren2015-03-042-4/+4
|
* Merge branch 'jsonlogs' of https://github.com/ethersphere/go-ethereum into ↵obscuren2015-03-041-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 jsonlogszelig2015-03-031-1/+9
| |\
| | * Implement eth.miner.new_block eventTaylor Gerring2015-03-011-1/+9
| | |
* | | Fixes and debug addedobscuren2015-03-043-2/+8
| | |
* | | mergeobscuren2015-03-042-6/+15
|\| |
| * | Report debug hash rateobscuren2015-03-012-6/+15
| |/
* | fixed pow stuffobscuren2015-03-042-3/+7
| |
* | Introducing ethashMatthew Wampler-Doty2015-03-032-4/+9
|/
* Fixed consensus issue for refundingobscuren2015-02-271-2/+2
| | | | * Refund should _always_ go to the origin
* Minor updates for releaseobscuren2015-02-211-2/+0
|
* fixed mergeobscuren2015-02-201-0/+2
|\
* \ Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-02-201-2/+2
|\ \
| * | Implement command line argument to set the amount of agents created by the minerMaran2015-02-191-2/+2
| |/ | | | | | | Defaults to the amount of cores available on the CPU
* / Optimisations and fixed a couple of DDOS issues in the minerobscuren2015-02-201-9/+13
|/
* "centralised" mining to backend. Closes #323obscuren2015-02-172-8/+7
|
* Resolved some bugs in the minerobscuren2015-02-151-11/+10
| | | | | | * TODO nonce error sometimes persists * Fixed mining on wrong blocks * Fixed state error & receipt fail
* Fixed mining & limited hash powerobscuren2015-02-142-19/+40
|
* Update balance label when miningobscuren2015-02-141-1/+2
|
* Propagate blocksobscuren2015-02-141-0/+1
|
* Fixed a few issues in the miner and updated hash rate titleobscuren2015-02-143-28/+39
| | | | | * Sometimes old nonces were set by "old" agents * Added the hash rate to the miner
* Basic structure minerobscuren2015-02-103-266/+153
|
* mergedobscuren2015-02-091-1/+1
|\
| * Merge pull request #290 from ↵Jeffrey Wilcke2015-02-061-1/+1
| |\ | | | | | | | | | | | | Gustav-Simonsson/correct_block_parent_timestamp_check Correct block parent timestamp check and typos
| | * Correct block parent timestamp check and typosGustav Simonsson2015-02-041-1/+1
| | |
* | | Merge branch 'develop' into minerobscuren2015-02-061-6/+4
|\| |
| * | set uncles regardless of empty uncle list. Fixes invalid blocks being minedobscuren2015-02-051-3/+1
| | |
* | | wipobscuren2015-02-061-7/+35
|/ /
* | Filteringobscuren2015-02-051-4/+9
| |
* | WIP minerobscuren2015-02-041-0/+164
|/
* Refactored ethutil.Config.Db outobscuren2015-01-071-3/+3
|
* Allow extra to be set for mined blocksobscuren2015-01-061-0/+2
|
* BlockManager => BlockProcessorobscuren2015-01-051-5/+5
|
* Updated miner to new block apiobscuren2014-12-301-3/+6
|
* Refactored block & Transactionobscuren2014-12-231-5/+5
| | | | * Includes new rlp decoder
* mergeobscuren2014-12-191-3/+3
|\
| * Created generic message (easy for testing)obscuren2014-12-181-3/+3
| |
* | adapt miner to new backend. use events to broadcast new mined blockszelig2014-12-151-4/+3
|/
* states moved to chainobscuren2014-12-111-1/+1
|
* Moved powobscuren2014-12-101-3/+5
|
* upped proto version and modified block poolobscuren2014-12-051-1/+0
|
* Skip mining on transactions that don't meet the min accepted gas priceobscuren2014-12-051-6/+16
|
* Improved and simplified wallet functions and behaviourobscuren2014-12-041-1/+1
|
* Renamed `chain` => `core`obscuren2014-12-041-8/+8
|
* merge errors fixedobscuren2014-12-021-8/+2
|\
| * Changed the way transactions are being added to the transaction poolobscuren2014-12-021-4/+5
| |
* | Fixed mergeobscuren2014-11-291-2/+1
|\|
| * Changed refundobscuren2014-11-291-1/+1
| |
| * GasData changes & removed min gas priceobscuren2014-11-291-1/+0
| |
* | Added a callback mechanism to chain adding.obscuren2014-11-191-2/+5
| | | | | | | | | | | | Not sure if this is the right approach. Why? BlockChain shouldn't need the "Ethereum" object. BlockChain shouldn't need to worry about notifying listeners or message propagation.
* | Begin of moving objects to types packageobscuren2014-11-181-7/+8
|/ | | | | * Block(s) * Transaction(s)
* Fixed bloom, updated mining & block processingobscuren2014-11-101-3/+26
| | | | | | * Reverted back to process blocks in batches method * Bloom generation and lookup fix * Minor UI changed (mainly debug)
* Implemented new miner w/ ui interface for merged mining. Closes #177obscuren2014-11-071-144/+154
| | | | | | | | * Miner has been rewritten * Added new miner pane * Added option for local txs * Added option to read from MergeMining contract and list them for merged mining
* Reworked chain handling processobscuren2014-11-041-2/+5
| | | | | | | * Forks * Rename * Moved inserting of blocks & processing * Added chain testing method for validating pieces of a **a** chain.
* StateManager => BlockManagerobscuren2014-11-041-5/+5
|
* ethminer => minerobscuren2014-10-311-0/+217