Commit Graph

109 Commits

Author SHA1 Message Date
obscuren 48135657c4 miner: show error message for gas limit per account 2015-04-23 11:50:12 +02:00
obscuren 4feb5f6f9c xeth, miner: updated some logging 2015-04-23 11:50:11 +02:00
Felix Lange 96e2b6bc07 miner: use 32bit atomic operations
64bit atomic operations are not available on all 32bit platforms.
2015-04-22 12:31:19 +02:00
obscuren 1d6d42919e miner: ignore a tx's transactor after a gas limit has been returned
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
2015-04-21 11:26:04 +02:00
obscuren fa729a0c55 miner: go fmt 2015-04-20 00:41:50 +02:00
Vitalik Buterin 5caf1aa1a9 Switched getWork third output from difficulty to target 2015-04-19 17:42:21 -04:00
obscuren 2cc9211269 miner: fixed remote miner current work 2015-04-19 21:58:58 +02:00
obscuren 2c1a6a349b miner: removed default timer & update dag when threads > 0 2015-04-19 21:45:40 +02:00
Fabian Vogelsteller 576393550d add extra space to miner icon 2015-04-17 15:00:37 +02:00
obscuren ec6cbb914b miner: start a newly registered agent if the miner is running. Closes #681 2015-04-15 17:04:22 +02:00
obscuren eaf73b55bc miner: moved bad uncle logging to ridiculous log level. Closes #720 2015-04-15 12:12:20 +02:00
obscuren 4f3c169b4e miner: don't break loop when encountering gas limit reach err
Processing transactions should continue when a transaction throws a gas
limit reached error. Other transactions may actually succeed.
2015-04-13 22:58:53 +02:00
obscuren 6184781b49 Improved transaction pool
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
2015-04-08 20:47:32 +02:00
obscuren 1c872ddf4b Changed how logs are being recorded
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.
2015-04-08 17:15:45 +02:00
obscuren d09d2b96fc fixed stop of miner 2015-04-08 00:30:23 +02:00
obscuren 688d118c7e Updated logging 2015-04-07 14:57:04 +02:00
obscuren 7b6a8cc9ae Fixed pending states 2015-04-07 12:32:55 +02:00
obscuren 9c55576c7b Block header changed & console miner control
* miner control moved to `admin.miner`
* miner option to set extra data
* block extra now bytes
2015-04-05 18:59:18 +02:00
obscuren 50edd4243e removed hash rate from info log. Added hashrate js func 2015-04-05 13:05:10 +02:00
obscuren 053d5552ab Updated logging 2015-04-04 23:04:19 +02:00
obscuren 2683aac9b0 Make sure we're not mining on an invalid TS 2015-04-04 13:27:17 +02:00
obscuren 60da9a1289 Put the old hammer back in <3 2015-04-02 13:03:33 +02:00
obscuren 3f4c1aaf01 info => debug 2015-04-02 12:58:17 +02:00
obscuren b8124ec791 Removed old (unused) argument 2015-04-01 23:58:26 +02:00
obscuren 344b3556eb Fixed uncle rewards in miner
The uncle rewards were changed in the block processor. This change will
reflect those changes in the miner as well.
2015-04-01 21:18:41 +02:00
obscuren d36501a6e5 Fixed miner
* Miners could stall because the worker wasn't aware the miner was done
2015-03-26 17:45:03 +01:00
obscuren e5a0a0ef48 Moved output to debug 2015-03-26 01:02:51 +01:00
obscuren 950b4a68c8 Improved miner recovery
* In case of uncle mining (e.g. same TS) the miner would stop if all
  threads happened to mine a potential uncle
2015-03-25 13:51:12 +01:00
obscuren eab8f7355d Event fixes for miner 2015-03-24 13:37:38 +01:00
obscuren a59ea7ce29 Changed miner
* Instead of delivering `Work` to the `Worker`, push a complete Block to
  the `Worker` so that each agent can work on their own block.
2015-03-24 10:34:06 +01:00
obscuren c8e9ca0483 fixed bad uncles 2015-03-23 18:27:05 +01:00
obscuren 0330077d76 moved state and vm to core 2015-03-23 16:59:09 +01:00
obscuren 9be7853e34 Fixed issues with stalled remote miner 2015-03-23 16:35:44 +01:00
obscuren dc3a9379f5 logging for possible uncles 2015-03-23 16:14:33 +01:00
obscuren 6657d544db Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop 2015-03-23 12:12:53 +01:00
obscuren 0be6d34048 finally merged *the missing* 2015-03-23 12:12:49 +01:00
Taylor Gerring 91a2275ad3 Move RemoteAgent to miner pkg 2015-03-23 11:21:41 +01:00
obscuren 82956df523 Get work / submit work partially implemented.
* WIP missing arguments for submitting new work
* GetWork **done**
2015-03-22 15:38:01 +01:00
obscuren ce862ee758 Removed some comments 2015-03-21 14:51:45 +01:00
obscuren 54dac59285 wip 2015-03-20 17:42:09 +01:00
obscuren 0a1eeca41e conversions. -compilable- 2015-03-18 13:00:01 +01:00
obscuren b523441361 Moved ethutil => common 2015-03-16 11:27:38 +01:00
obscuren 387f6bba3e POW fixes 2015-03-14 16:37:57 +01:00
obscuren 532a74f50e Improved errors. Closes #475 2015-03-14 12:43:10 +01:00
obscuren 03403399fc Return proper error 2015-03-13 17:47:11 +01:00
obscuren 310ca62285 Removed some of that gas pre pay magic 2015-03-12 22:29:10 +01:00
Felix Lange d7b5a87b3b miner: provide coinbase when starting the miner
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.
2015-03-11 23:43:27 +01:00
obscuren 7add66c8bb Use the state to up the balance of the coinbase 2015-03-11 16:32:37 +01:00
obscuren cd856cb213 Separated block db from state db. Partial fix for #416 2015-03-06 18:26:16 +01:00
obscuren 8d9be18b29 Queued approach to delivering chain events 2015-03-06 15:50:44 +01:00