]> git.bitcoin.ninja Git - rust-lightning/commit
Make cltv_expiry_delta configurable and reduce the min/default some
authorMatt Corallo <git@bluematt.me>
Wed, 17 Mar 2021 16:49:49 +0000 (12:49 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 20 Mar 2021 00:49:14 +0000 (20:49 -0400)
commitc8d4536b3e4baa94590ca43bc39cff2cc85e96e1
treeadd364e98e5ed89bc2b5331397762f97e3ab9053
parentfba204b02ee4faece07a2ddf152f34507773ad4d
Make cltv_expiry_delta configurable and reduce the min/default some

We allow users to configure the to_self_delay, which is analogous to
the cltv_expiry_delta in terms of its security context, so we should
allow users to specify both.

We similarly bound it on the lower end, but reduce that bound
somewhat now that it is configurable.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/config.rs