Use `saturating_add` when adding inflight HTLCs values
authorElias Rohrer <dev@tnull.de>
Thu, 14 Sep 2023 12:14:03 +0000 (14:14 +0200)
committerElias Rohrer <dev@tnull.de>
Thu, 28 Sep 2023 08:14:35 +0000 (10:14 +0200)
commit391da3f3b237fce4a6f4a9eeb44ee8583bf91185
tree66b67d27e6cfaa76209691d4ac5ac9b9d7292984
parent7b4fb9da886a58b32ad6a286eb7a5cd9c1ed01cf
Use `saturating_add` when adding inflight HTLCs values

Previously this calculation could overflow, leading to panicking in `debug`.
lightning/src/routing/router.rs