rust-lightning/lightning/src
Jeffrey Czyz bfd1a57434
Guard against division by zero in scorer
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.
2023-03-03 16:25:57 -06:00
..
chain Make sure individual mutexes are constructed on different lines 2023-02-28 01:06:35 +00:00
ln Merge pull request #2006 from TheBlueMatt/2023-02-no-recursive-read-locks 2023-02-28 00:24:16 -08:00
offers Fix amount overflow in Invoice building 2023-02-23 18:25:50 -06:00
onion_message Add an inbound flag to the peer_connected message handlers 2023-02-21 22:00:42 +00:00
routing Guard against division by zero in scorer 2023-03-03 16:25:57 -06:00
sync Make sure individual mutexes are constructed on different lines 2023-02-28 01:06:35 +00:00
util Support ReadableArgs types across in the TLV struct serialization 2023-02-27 22:31:11 +00:00
lib.rs Make offers module public 2023-02-03 15:23:43 -06:00