lnd/chainntnfs/btcdnotify
Olaoluwa Osuntokun 419c2ac206
chainntnfs/btcdnotify: fix race condition for block epoch clients
This commit fixes a race condition that was introduced while fixing a
lingering bug in the logic to notify block epoch clients. The race
condition would happen as by removing the default case in the select
statement, it was now possible for the client’s block epoch client to
be closed while the routine was attempting a send on it.

We now eliminate this race condition possibility by adding a wait group
to all goroutines launched to dispatch a block epoch notification. With
this modification, the Stop() goroutine will now wait for all other
goroutine to exit before closing the block epoch channels of all
currently registered clients.
2017-04-04 14:20:16 +02:00
..
btcd.go chainntnfs/btcdnotify: fix race condition for block epoch clients 2017-04-04 14:20:16 +02:00
confheap.go chainntnfs/btcdnotify: update BtcdNotifer to recent ChainNotifier API change 2016-12-27 16:43:58 -08:00
driver.go chainntnfs: add cross interface implementation tests 2016-09-01 19:13:10 -07:00