]> git.bitcoin.ninja Git - rust-lightning/commit
Move `Channel::channel_id` and some other methods to `ChannelContext` impl
authorDuncan Dean <git@dunxen.dev>
Wed, 7 Jun 2023 10:15:24 +0000 (12:15 +0200)
committerDuncan Dean <git@dunxen.dev>
Wed, 14 Jun 2023 11:42:26 +0000 (13:42 +0200)
commitede8324397646ef7b06a42cfca8935059adfa1c4
treee9c2ccd67beaf75f5ecc5473ae19d16aaa8795f7
parent1ee0a66d21cfd3696ed93938ba08281a0c342741
Move `Channel::channel_id` and some other methods 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
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/payment_tests.rs