mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 02:36:42 +00:00
Merge remote-tracking branch 'origin/dev' into patch
This commit is contained in:
commit
ca32eb6bbf
@ -336,12 +336,12 @@ func (csm *consensusStateManager) boundedMergeBreakingParents(stagingArea *model
|
|||||||
log.Debugf("Checking whether parent %s breaks the bounded merge set", parent)
|
log.Debugf("Checking whether parent %s breaks the bounded merge set", parent)
|
||||||
isBadRedInPast := false
|
isBadRedInPast := false
|
||||||
for _, badRedBlock := range badReds {
|
for _, badRedBlock := range badReds {
|
||||||
isBadRedInPast, err = csm.dagTopologyManager.IsAncestorOf(stagingArea, parent, badRedBlock)
|
isBadRedInPast, err = csm.dagTopologyManager.IsAncestorOf(stagingArea, badRedBlock, parent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if isBadRedInPast {
|
if isBadRedInPast {
|
||||||
log.Debugf("Parent %s is an ancestor of bad red %s", parent, badRedBlock)
|
log.Debugf("Parent %s is a descendant of bad red %s", parent, badRedBlock)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user