Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
27 lines
815 B
C
27 lines
815 B
C
/* Code to create onion fragments to make payment down this struct blinded_path */
|
|
#ifndef LIGHTNING_COMMON_BLINDEDPAY_H
|
|
#define LIGHTNING_COMMON_BLINDEDPAY_H
|
|
#include "config.h"
|
|
#include <common/amount.h>
|
|
|
|
struct blinded_path;
|
|
|
|
/**
|
|
* blinded_onion_hops - turn this path into a series of onion hops
|
|
* @ctx: context to allocate from
|
|
* @final_amount: amount we want to reach the end
|
|
* @final_cltv: cltv we want to at end
|
|
* @total_amount: amount of all parts together.
|
|
* @payinfo: fee and other restriction info
|
|
*
|
|
* This calls onion_nonfinal_hop and onion_final_hop to create onion
|
|
* blobs.
|
|
*/
|
|
u8 **blinded_onion_hops(const tal_t *ctx,
|
|
struct amount_msat final_amount,
|
|
u32 final_cltv,
|
|
struct amount_msat total_amount,
|
|
const struct blinded_path *path);
|
|
|
|
#endif /* LIGHTNING_COMMON_BLINDEDPAY_H */
|