Merge remote-tracking branch 'origin/dev' into patch

This commit is contained in:
msutton 2022-03-09 21:16:48 +02:00
commit ca32eb6bbf

View File

@ -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
} }
} }