mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 18:56:41 +00:00

* Prevent a race condition in findHighestSharedBlockHash where we get headersSelectedTip and then pass it as highHash to GetBlockLocator, without locking consensus * Restart findHighestSharedBlockHash if lowHash or highHash are no longer in selectedParentChain * Test for specifically ErrBlockNotInSelectedParentChain instead of database NotFound error * Fix TestCreateHeadersSelectedChainBlockLocator Co-authored-by: Ori Newman <orinewman1@gmail.com>