2017-02-21 15:19:02 +10:30
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H
|
|
|
|
#include "config.h"
|
2017-08-29 01:35:01 +09:30
|
|
|
#include <common/utxo.h>
|
2017-02-21 15:19:02 +10:30
|
|
|
#include <lightningd/lightningd.h>
|
|
|
|
|
|
|
|
/* Reserves UTXOs to build tx which pays this amount; returns NULL if
|
2017-12-20 16:25:04 +10:30
|
|
|
* impossible. */
|
2017-03-07 11:28:09 +10:30
|
|
|
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 16:35:01 +10:30
|
|
|
size_t outputscriptlen,
|
2017-03-07 11:28:09 +10:30
|
|
|
u64 *change_satoshis, u32 *change_keyindex);
|
2017-02-21 15:19:02 +10:30
|
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_BUILD_UTXOS_H */
|