go-ethereum/miner
Marius van der Wijden 7cf56d6f06
miner: use channels instead of atomics in update loop (#21536)
This PR changes several different things:

- Adds test cases for the miner loop
- Stops the worker if it wasn't already stopped in worker.Close()
- Uses channels instead of atomics in the miner.update() loop

Co-authored-by: Felix Lange <fjl@twurst.com>
2020-09-10 19:27:42 +02:00
..
miner.go miner: use channels instead of atomics in update loop (#21536) 2020-09-10 19:27:42 +02:00
miner_test.go miner: use channels instead of atomics in update loop (#21536) 2020-09-10 19:27:42 +02:00
stress_clique.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
stress_ethash.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
unconfirmed.go all: fix various comment typos (#17748) 2018-09-25 12:26:35 +02:00
unconfirmed_test.go miner: differentiate between uncle and lost block 2018-08-23 15:44:27 +03:00
worker.go miner: use channels instead of atomics in update loop (#21536) 2020-09-10 19:27:42 +02:00
worker_test.go eth/downloader: fix spuriously failing tests (#21149) 2020-06-09 11:39:19 +02:00