]> git.bitcoin.ninja Git - rust-lightning/commit
Log additional details when ignoring first hops
authorElias Rohrer <dev@tnull.de>
Mon, 4 Dec 2023 14:39:13 +0000 (15:39 +0100)
committerElias Rohrer <dev@tnull.de>
Mon, 4 Dec 2023 18:07:54 +0000 (19:07 +0100)
commit52ecce9e281f1f904202c34ad0ddf732f4b20fdd
treea82d3d0b4cc4c59524f306b65c55b427d024d4b2
parentac06a6a2f603cb8d776743d16cb938369e7dd53f
Log additional details when ignoring first hops

Users are often confused when we fail to find a route due to some
requirements on the first hop are not being met. While we now take note
and log such candidates, we still previously required users to check
additional details to figure out why exactly the router refused to route
over a particular first hop.

Here, we add additional TRACE logging, in particular for
`ChannelDetails::next_outbound_htlc_limit_msat` and
`ChannelDetails::next_outbound_htlc_minimum_msat` when they are
relevant.
lightning/src/routing/router.rs