Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chain/neutrino: fix race in NotifyBlock
Currently NotifyBlock releases the clientMtx before calling a public version of NotifyReceived that reacquires clientMtx. This can have unexpected behavior because the value of isScanning() could change between lock acquisitions. We switch to using the internal notifyReceived so that our read on isScanning() is consistent for the duration of the call.
- Loading branch information