Jeffrey Wilcke
b39042db56
core, miner: implemented canary
9 years ago
Jeffrey Wilcke
d1e93db3eb
core, miner: added write block method & changed mining propagation
9 years ago
Jeffrey Wilcke
059a1e9e4e
miner: broadcast block before insertion/validation
9 years ago
obscuren
07c3de3f75
core, miner, xeth: renamed gas methods
...
* BuyGas => SubGas
* RefundGas => AddGas
* SetGasPool => SetGasLimit
10 years ago
obscuren
6d817e16c1
core, miner: tx pool drops txs below ask price
10 years ago
obscuren
cf3aabb9d3
miner: update gas used after tx proc for pending block
10 years ago
Jason Carver
a9c058dfe0
crash fix: skip deep log if self.chain is not caught up
...
@see trace https://gist.github.com/eupraxic/87fdfefe702c51d5944d
10 years ago
obscuren
d09a6e5421
core, eth, miner: moved nonce management to tx pool.
...
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).
10 years ago
obscuren
35806ccc1c
build server fix
10 years ago
obscuren
912ae80350
miner: Added 5 blocks wait in prep for #1067
10 years ago
obscuren
12650e16d3
core, miner: fixed miner time issue and removed future blocks
...
* 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
10 years ago
Jason Carver
de12183d38
deep-mining-log: need ring buffer to be one bigger for all-blocks-mined case
10 years ago
Jason Carver
6019f1bb0a
deep-mining-log: only track non-stale blocks
...
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.
10 years ago
Jason Carver
f1ce5877ba
do not export ring buffer struct
10 years ago
Jason Carver
8a7fb5fd34
do not export constant for when to log a deep block you mined
10 years ago
Jason Carver
ba295ec6fe
Log locally mined blocks, after they are 5-deep in the chain
...
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.
10 years ago
obscuren
054abe20b8
miner: moved break INSIDE the switch ...
10 years ago
obscuren
3ea9868b65
miner: on downloader.Done/Fail stop immediately. Ignore pending evs
10 years ago
obscuren
907848997b
miner: one-shot update loop
10 years ago
zelig
f9abcee0f9
fix solc tests unskip
10 years ago
obscuren
bc5e60cd63
miner: stale block notification
10 years ago
Bas van Kervel
60561cdca2
fixed issue when miner is not stopping af stop command
10 years ago
Bas van Kervel
7778740315
fixed race condition in miner
10 years ago
obscuren
c2ef8682fe
eth/downloader: moved start event
...
Start event has moved because it could possibly could stall the miner
10 years ago
Vitalik Buterin
fe64a13cea
Adjust miner coinbase and not just miner worker coinbase
10 years ago
obscuren
741fa8ca9c
miner: mutex locks on cpu agent. Closes #1007
10 years ago
Vitalik Buterin
61e8296bd8
Adjust miner coinbase and not just miner worker coinbase
10 years ago
obscuren
d3e84cc8b4
miner: properly check for mining operation on Register
10 years ago
obscuren
5cec1aad15
core, miner: fork resolving and restart miner after sync op
...
Fork resolving fixes #940
10 years ago
obscuren
b71091e337
eth, eth/downloader, miner: use download events to check miner start
10 years ago
Vitalik Buterin
bdec8c3e41
Combined two loops
10 years ago
Gustav Simonsson
b24f16fa53
Make read of ethash hashrate atomic and update ethash godep
10 years ago
Vitalik Buterin
fca3333f7f
Created separate family and ancestors environment objects
10 years ago
Gustav Simonsson
2c1b0ff17e
Update key store to new spec but keep address field for now
...
* Also fix address types post-rebase
10 years ago
obscuren
97dd4551ef
miner, cmd/geth: miner will not ignored owned account transactions
...
Miner does not ignore low gas txs from accounts that are owned.
10 years ago
obscuren
21e52efdfe
cmd/geth, miner, backend, xeth: Fixed miner threads to be settable
...
Miner threads are now settable through the admin interface (closes #897 )
and specify 0 CPU worker threads when eth_getWork is called (closes #916 )
10 years ago
Taylor Gerring
8e77f81586
Return 32-byte hashes from GetWork
...
Ensures that the Get Work results are a consistent length. Closes #917
10 years ago
obscuren
6ecba12650
miner: added log message for mining operation. #912
10 years ago
obscuren
3c6c891680
core: optimise pending transaction processing
10 years ago
obscuren
a2919b5e17
core, eth, miner: improved tx removal & fatal error on db sync err
...
* 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
10 years ago
obscuren
7eed47fad5
miner, tests: fixed block test
10 years ago
obscuren
e3a08875f6
miner: start/stop mutex locked. Closes #887
10 years ago
obscuren
a7705fc203
miner: moved gasprice to non-method
10 years ago
obscuren
13ddf20bd2
miner, cmd/geth: settable gas price from flags and console
...
* --gasprice "<num>" flag
* admin.miner.setGasPrice( <num> )
10 years ago
Gustav Simonsson
b1cc9cdc74
Integrate new ethash API and change geth makedag cmd
10 years ago
obscuren
735b029db9
core: return the index of the block that failed when inserting a chain
10 years ago
obscuren
145e02fc54
core, miner: added value check on tx validation
...
* 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
10 years ago
obscuren
48135657c4
miner: show error message for gas limit per account
10 years ago
obscuren
4feb5f6f9c
xeth, miner: updated some logging
10 years ago
Felix Lange
96e2b6bc07
miner: use 32bit atomic operations
...
64bit atomic operations are not available on all 32bit platforms.
10 years ago