mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
We currently construct `DirectedChannelInfo`s for routing before checking if the given direction has its directional info filled in. We then always check for directional info before actually deciding to route over a channel, as otherwise we assume the channel is not online. This makes for somewhat redundant checks, and `DirectedCHannelInfo` isn't, by itself, a very useful API. Because fetching the HTLC-max or effective channel capacity gives spurious data if no directional info is available, there's little reason to have that data available, and so we here check for directional info first. This effectively merges `DirectionalChannelInfo` and `DirectionalChannelInfoWithUpdate`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |