plugeth/miner
Boqin Qin be6078ad83
all: fix a bunch of inconsequential goroutine leaks (#20667)
The leaks were mostly in unit tests, and could all be resolved by
adding suitably-sized channel buffers or by restructuring the test
to not send on a channel after an error has occurred.

There is an unavoidable goroutine leak in Console.Interactive: when
we receive a signal, the line reader cannot be unblocked and will get
stuck. This leak is now documented and I've tried to make it slightly 
less bad by adding a one-element buffer to the output channels of
the line-reading loop. Should the reader eventually awake from its
blocked state (i.e. when stdin is closed), at least it won't get stuck
trying to send to the interpreter loop which has quit long ago.

Co-authored-by: Felix Lange <fjl@twurst.com>
2020-04-03 20:07:22 +02:00
..
miner.go eth/filters: remove use of event.TypeMux for pending logs (#20312) 2019-12-10 12:39:14 +01:00
stress_clique.go miner: add dependency for stress tests (#20436) 2019-12-10 10:26:07 +02:00
stress_ethash.go miner: add dependency for stress tests (#20436) 2019-12-10 10:26:07 +02:00
unconfirmed_test.go miner: differentiate between uncle and lost block 2018-08-23 15:44:27 +03:00
unconfirmed.go all: fix various comment typos (#17748) 2018-09-25 12:26:35 +02:00
worker_test.go all: fix a bunch of inconsequential goroutine leaks (#20667) 2020-04-03 20:07:22 +02:00
worker.go miner/worker: add missing timer.Stop call (#20857) 2020-04-02 10:40:38 +02:00