paymod: Implement TLV onion payload generation

This commit is contained in:
Christian Decker
2020-05-20 13:58:39 +02:00
parent c0b30ac907
commit b15876c112
4 changed files with 60 additions and 7 deletions

View File

@@ -1764,6 +1764,7 @@ static struct command_result *json_paymod(struct command *cmd,
p->json_toks = params;
p->destination = p->getroute_destination = &b11->receiver_id;
p->payment_hash = tal_dup(p, struct sha256, &b11->payment_hash);
p->payment_secret = tal_dup(p, struct secret, b11->payment_secret);
payment_start(p);
list_add_tail(&payments, &p->list);