Move `Channel::build_commitment_transaction` to `ChannelContext` impl
authorDuncan Dean <git@dunxen.dev>
Wed, 7 Jun 2023 10:20:25 +0000 (12:20 +0200)
committerDuncan Dean <git@dunxen.dev>
Wed, 14 Jun 2023 11:42:27 +0000 (13:42 +0200)
commit497aeb006f6cc004a66a660222010546af96075a
treedc65351c82c4167d5c205b5ec7089dd66f86fae2
parentede8324397646ef7b06a42cfca8935059adfa1c4
Move `Channel::build_commitment_transaction` to `ChannelContext` impl

This is one of a series of commits to make sure methods are moved by
chunks so they are easily reviewable in diffs. Unfortunately they are
not purely move-only as fields need to be updated for things to
compile, but these should be quite clear.

This commit also uses the `context` field where needed for compilation
and tests to pass due to the above change.
lightning/src/ln/channel.rs