mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-26 07:32:48 +01:00
Since a node may announce that the htlc_maximum_msat of a channel is zero, adding one to the denominator in the bucket formulas will prevent the panic from ever happening. While the routing algorithm may never select such a channel to score, this precaution may still be useful in case the algorithm changes or if the scorer is used with a different routing algorithm. |
||
---|---|---|
.. | ||
gossip.rs | ||
mod.rs | ||
router.rs | ||
scoring.rs | ||
test_utils.rs | ||
utxo.rs |