Commit Graph

2 Commits

Author SHA1 Message Date
Marius van der Wijden
0cc7aba2b7 miner: fix regression, add test for starting while download (#21547)
Fixes a regression introduced in #21536
2020-10-06 14:12:09 +02:00
Marius van der Wijden
ca6b1bcea5 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>
# Conflicts:
#	miner/miner.go
2020-10-06 14:12:09 +02:00