Fix node address conflict problem from
fix
@@ -32,9 +32,13 @@ func (c *NodeOwnerCache) Add(node, owner module.Address) error {
if node.Equal(owner) {
return nil
}
+ } else {
+ if cur.Equal(owner) {
+ return nil
} else {
return errors.Errorf("AlreadyExist(owner=%s,node=%s)", cur, node)
}
+ }
c.nodeToOwner[icutils.ToKey(node)] = owner
return nil
}
