lnd.xprv/chainntnfs/btcdnotify
Olaoluwa Osuntokun 6c81dfad61
chainntfns/btcdnotifier: fix race condition in notifyBlockEpochs
This commit fixes a race condition in the notifyBlockEpochs detected by
the race condition detector. Previously the notifyBlockEpochs function
could cause a race condition when a new caller was either cancelling an
existing notification intent or creating a new one.

We fix this issue by making the call to notifyBlockEpochs synchronous
rather than asynchronous. An alternative would be to add a mutex
guarding the map state. The channel itself is buffered with a good
margin, so there shouldn’t be a huge impact.
2017-02-22 14:51:48 -08:00
..
btcd.go chainntfns/btcdnotifier: fix race condition in notifyBlockEpochs 2017-02-22 14:51:48 -08: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