Make channel reserve variable names less confusing.
authorValentine Wallace <vwallace@protonmail.com>
Fri, 1 May 2020 22:39:18 +0000 (18:39 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 1 May 2020 23:35:44 +0000 (19:35 -0400)
commit1b656f4d4a83df886f635d0ac728ccfe1a3945c4
tree9777e4f8d7e757cac6fd614944bbc91c2a75ddd8
parent9098240e341cf09578819cdf1d2950303478b137
Make channel reserve variable names less confusing.

Previous to this commit, variables such as their_channel_reserve
referred to the channel reserve that _we_ are required to keep,
(the value is initially set by the remote). Similarly,
variables such as our_channel_reserve referred to the channel
reserve that we require the remote to keep.

Change this to use local_channel_reserve / remote_channel_reserve
to refer to the the channel reserve that the local is required to keep
and the channel reserve that the remote is required to keep, respectively.
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs