mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
routing: Returning channel_id to getroute requests
The new onion uses the `channel_id` instead of the `node_id` of the next hop to identify where to forward the payment. So we return the exact channel chosen by the routing algo, to avoid having to look it up again later.
This commit is contained in:
@@ -90,6 +90,7 @@ struct routing_state {
|
||||
};
|
||||
|
||||
struct route_hop {
|
||||
struct short_channel_id channel_id;
|
||||
struct pubkey nodeid;
|
||||
u32 amount;
|
||||
u32 delay;
|
||||
|
||||
Reference in New Issue
Block a user