mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-05 05:36:54 +00:00
Fix argument order for IsAncestorOf in boundedMergeBreakingParents (#1966)
This commit is contained in:
parent
190e725dd0
commit
061e65be93
@ -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