mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-10 15:45:09 +01:00
5475666b7e
This allows us to add funds via the P2SH-wrapped Segwit Transactions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
15 lines
521 B
C
15 lines
521 B
C
#ifndef LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H
|
|
#define LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H
|
|
#include "config.h"
|
|
#include <lightningd/lightningd.h>
|
|
#include <lightningd/utxo.h>
|
|
|
|
/* Reserves UTXOs to build tx which pays this amount; returns NULL if
|
|
* impossible. *change_amount 0 if no change needed. */
|
|
struct utxo *build_utxos(const tal_t *ctx,
|
|
struct lightningd *ld, u64 satoshi_out,
|
|
u32 feerate_per_kw, u64 dust_limit,
|
|
u64 *change_amount, u32 *change_keyindex);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H */
|