Open
Description
Concerning MultiLocation::reanchor
:
So I realized that what we're essentially doing here is to first find the common ancestor between self
and target
, then append the necessary junctions that will allow us to reach self
from the common ancestor, and then we'd simplify the result, given target
.
I suspect what we can do here is to write the common ancestor from the perspective of target
, that way we don't have to simplify at the end of the algorithm.
Originally posted by @KiChjang in paritytech/polkadot#4470 (comment)