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>
Loading
Please register or sign in to comment