]> git.bitcoin.ninja Git - rust-lightning/commit
Make `htlc_maximum_msat` in `EffectiveCapacity` non-`Option`al 2022-10-dead-gossip-code
authorMatt Corallo <git@bluematt.me>
Sat, 29 Oct 2022 18:30:37 +0000 (18:30 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 29 Oct 2022 20:38:59 +0000 (20:38 +0000)
commit4df0ff74f5a0508921a655c00e17753bb2cbaba6
tree7dc82d788aa010342d2f9675eb5a00e1676d58c1
parent81afc2f1729b2abf5eaa54c5da12f517349486a7
Make `htlc_maximum_msat` in `EffectiveCapacity` non-`Option`al

Because we now never generate an `EffectiveCapacity` with an
`htlc_maximum_msat` set to `None`, making it non-`Option`al
effectively removes dead code, which we do here.
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs