Previous to this, we kept the remote side's 'struct channel_state' backwards: peer->remote.commit->cstate.side[OURS] was their HTLCs, and [THEIRS] was our HTLCs. This made some things easier, but was horrible for readability. This inverts things so we keep track of the remote side's state from our point of view: [OURS] is ours, [THEIRS] is theirs. Which makes much more sense. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
3.8 KiB
3.8 KiB