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: NFelix Lange <fjl@twurst.com>
Showing
miner/miner_test.go
0 → 100644
想要评论请 注册 或 登录