Debugging a number of payments showed that we sometimes waste a number of attempts routing through a channel via its alias, rather than its scid. This is because while we annotate the scid when it has been set, we do not do so for the alias. The alias then is picked for routing despite not having enough capacity, failing the attempt locally. It can also happen that we alternate between scid and alias, doubling the number of failed attempts before we can make progress. This patch sets the hint for the alias to a capacity of 0 and disables it as if the peer were offline. This means when available we'll always use the scid, which is also far easier to read in the logs. Changelog-Fixed: pay: We now track spendable amounts when routing on both the local alias as well as the short channel ID
116 KiB
116 KiB