2017-02-21 05:49:02 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H
|
|
|
|
#include "config.h"
|
2017-08-28 18:05:01 +02:00
|
|
|
#include <common/utxo.h>
|
2017-02-21 05:49:02 +01:00
|
|
|
#include <lightningd/lightningd.h>
|
|
|
|
|
|
|
|
/* Reserves UTXOs to build tx which pays this amount; returns NULL if
|
2017-12-20 06:55:04 +01:00
|
|
|
* impossible. */
|
2017-03-07 01:58:09 +01:00
|
|
|
const struct utxo **build_utxos(const tal_t *ctx,
|
|
|
|
struct lightningd *ld, u64 satoshi_out,
|
|
|
|
u32 feerate_per_kw, u64 dust_limit,
|
2017-12-20 07:05:01 +01:00
|
|
|
size_t outputscriptlen,
|
2017-03-07 01:58:09 +01:00
|
|
|
u64 *change_satoshis, u32 *change_keyindex);
|
2017-02-21 05:49:02 +01:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H */
|