mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +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>
8 lines
316 B
Go
8 lines
316 B
Go
package model
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
// ErrBlockNotInSelectedParentChain is returned from CreateHeadersSelectedChainBlockLocator if one of the parameters
|
|
// passed to it are not in the headers selected parent chain
|
|
var ErrBlockNotInSelectedParentChain = errors.New("Block is not in selected parent chain")
|