| 144 | } |
| 145 | |
| 146 | void sphinx_add_v0_hop(struct sphinx_path *path, const struct pubkey *pubkey, |
| 147 | const struct short_channel_id *scid, |
| 148 | struct amount_msat forward, u32 outgoing_cltv) |
| 149 | { |
| 150 | struct sphinx_hop sp; |
| 151 | |
| 152 | sp.raw_payload = make_v0_hop(path, scid, forward, outgoing_cltv); |
| 153 | sp.pubkey = *pubkey; |
| 154 | tal_arr_expand(&path->hops, sp); |
| 155 | } |
| 156 | |
| 157 | void sphinx_add_hop(struct sphinx_path *path, const struct pubkey *pubkey, |
| 158 | const u8 *payload TAKES) |
no test coverage detected