MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sphinx_add_v0_hop

Function sphinx_add_v0_hop

common/sphinx.c:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void 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
157void sphinx_add_hop(struct sphinx_path *path, const struct pubkey *pubkey,
158 const u8 *payload TAKES)

Callers 1

send_paymentFunction · 0.85

Calls 1

make_v0_hopFunction · 0.85

Tested by

no test coverage detected