mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-31 21:04:24 +01:00
To remove the redundant fields in `struct node_connection` (ie. 'src' and 'dst' pointers) we need to deal with `struct routing_channel`. This means we get a series of channels, from which the direction is implied, so it's a bit more complex to decode. We add a helper `other_node` to help with this, and since we're the only user of `connection_to` we change that function to return the index. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>