mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-28 17:56:50 +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)
|
||||
isBadRedInPast := false
|
||||
for _, badRedBlock := range badReds {
|
||||
isBadRedInPast, err = csm.dagTopologyManager.IsAncestorOf(stagingArea, parent, badRedBlock)
|
||||
isBadRedInPast, err = csm.dagTopologyManager.IsAncestorOf(stagingArea, badRedBlock, parent)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user