Make channel fields which are from accept_channel Optional
authorMatt Corallo <git@bluematt.me>
Sat, 3 Jul 2021 15:27:12 +0000 (15:27 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Jul 2021 00:18:17 +0000 (00:18 +0000)
commitf2c1712bdd8bac5172d6948690540dd51bf0a3ab
tree50b0818699d9900cf422bae6bfbdbce7976c7ec2
parentfbb36a07696317362cfdb46aa4c6f67eb279afef
Make channel fields which are from accept_channel Optional

These fields are set with a dummy value, which we should generally
be avoiding since Rust gives us a nice `Option` type to use
instead.

Further, we stop rejecting channel_update messages outright when
the htlc_maximum_msat field includes the reserve values, which
nodes could reasonably do without it meriting a channel closure.
lightning/src/ln/channel.rs