mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
paymod: Parse createonion result and call sendonion
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <plugins/libplugin.h>
|
||||
#include <wire/gen_onion_wire.h>
|
||||
|
||||
enum route_hop_style {
|
||||
ROUTE_HOP_LEGACY = 1,
|
||||
@@ -40,6 +41,11 @@ struct createonion_request {
|
||||
struct secret *session_key;
|
||||
};
|
||||
|
||||
struct createonion_response {
|
||||
u8 *onion;
|
||||
struct secret *shared_secrets;
|
||||
};
|
||||
|
||||
/* A parsed version of the possible outcomes that a sendpay / payment may
|
||||
* result in. */
|
||||
struct payment_result {
|
||||
@@ -104,6 +110,7 @@ struct payment {
|
||||
struct node_id *getroute_destination;
|
||||
|
||||
struct createonion_request *createonion_request;
|
||||
struct createonion_response *createonion_response;
|
||||
|
||||
/* Target amount to be delivered at the destination */
|
||||
struct amount_msat amount;
|
||||
|
||||
Reference in New Issue
Block a user