Fix a few new (and one old) issues in the new channel_update
authorMatt Corallo <git@bluematt.me>
Tue, 12 May 2020 01:09:44 +0000 (21:09 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 12 May 2020 18:02:40 +0000 (14:02 -0400)
commit6e1aa6cab5ee3241555bc0c5f48e538c80a13ce0
tree8443fcbdfbb2387081a4cf513cae2f22bc184803
parent94df32b108db0b95d9ab0e0abd212b956f18bc13
Fix a few new (and one old) issues in the new channel_update

We need to always set lowest_inbound_channel_fees to None if there
are no channels (and we should ignore the channels which are
disabled for the purpose of lowest-fee calculations). Further, we
cannot unwrap the channel lookups as they may be for channels which
are not related to the channel we are processing an update for.
Finally, we can satisfy borrowck much easier since things are on
self instead of on a MutexGuard.
lightning/src/routing/network_graph.rs