mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
sphinx: Clean up after migrating to the sphinx_path struct
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
ca0dc01bee
commit
6831db62f7
@@ -603,6 +603,7 @@ send_payment(struct lightningd *ld,
|
||||
|
||||
/* Expiry for HTLCs is absolute. And add one to give some margin. */
|
||||
base_expiry = get_block_height(ld->topology) + 1;
|
||||
memset(&finalscid, 0, sizeof(struct short_channel_id));
|
||||
|
||||
path = sphinx_path_new(tmpctx, rhash->u.u8);
|
||||
/* Extract IDs for each hop: create_onionpacket wants array. */
|
||||
@@ -624,11 +625,6 @@ send_payment(struct lightningd *ld,
|
||||
|
||||
/* And finally set the final hop to the special values in
|
||||
* BOLT04 */
|
||||
hop_data[i].realm = 0;
|
||||
hop_data[i].outgoing_cltv = base_expiry + route[i].delay;
|
||||
memset(&hop_data[i].channel_id, 0, sizeof(struct short_channel_id));
|
||||
hop_data[i].amt_forward = route[i].amount;
|
||||
|
||||
memset(&finalscid, 0, sizeof(struct short_channel_id));
|
||||
ret = pubkey_from_node_id(&pubkey, &ids[i]);
|
||||
assert(ret);
|
||||
|
||||
Reference in New Issue
Block a user