Expand the fields exposed to users in `ChannelDetails`
authorMatt Corallo <git@bluematt.me>
Fri, 2 Jul 2021 23:54:57 +0000 (23:54 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Jul 2021 00:18:27 +0000 (00:18 +0000)
commit0882655680040a0226b1790b6558150324a288f4
tree1bd167bf77524f26029a81ef1009f3d9dbdda4d6
parentc2b0db0ac12264a7c145aa4e6358abce6335afde
Expand the fields exposed to users in `ChannelDetails`

This adds four new fields in `ChannelDetails`:
1. holder_selected_ and counterparty_selected_channel_reserve_delay
   are useful to determine what amount of the channel is
   unavailable for payments.
2. confirmations_required is useful when awaiting funding
   confirmation to determine how long you will need to wait.
3. to_self_delay is useful to determine how long it will take to
   receive funds after a force-close.

Fixes #983.
fuzz/src/router.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/routing/router.rs