Rename KeysInterface ready_channel to provide_channel_parameters
authorWilmer Paulino <wilmer.paulino@gmail.com>
Tue, 29 Nov 2022 17:05:47 +0000 (09:05 -0800)
committerWilmer Paulino <wilmer.paulino@gmail.com>
Mon, 5 Dec 2022 20:11:26 +0000 (12:11 -0800)
commit648a69a1e31ceae7c6fa2259d18d1a2ac1095ced
treee7d7ee5250e0d651345afb08c371ca97d15f1f15
parentb04d1b868fe28bea2e4c711e6e6d2470d2b98d77
Rename KeysInterface ready_channel to provide_channel_parameters

Now that ready_channel is also called on startup upon deserializing
channels, we opt to rename it to a more indicative name.

We also derive `PartialEq` on ChannelTransactionParameters to allow
implementations to determine whether `provide_channel_parameters` calls
are idempotent after the channel parameters have already been provided.
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/util/enforcing_trait_impls.rs