mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
85ff95e829
To avoid everything pulling in HTLCs stuff to the opening daemon, we split the channel and commit_tx routines into initial_channel and initial_commit_tx (no HTLC support) and move full HTLC supporting versions into channeld. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
#ifndef LIGHTNING_LIGHTNINGD_WITHDRAW_TX_H
|
|
#define LIGHTNING_LIGHTNINGD_WITHDRAW_TX_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
|
|
struct bitcoin_tx;
|
|
struct ext_key;
|
|
struct privkey;
|
|
struct pubkey;
|
|
struct bitcoin_address;
|
|
struct utxo;
|
|
|
|
/**
|
|
* withdraw_tx - Create a p2pkh withdrawal transaction
|
|
*
|
|
* @ctx: context to tal from.
|
|
* @utxos: (in/out) tal_arr of UTXO pointers to spend (permuted to match)
|
|
* @destination: (in) bitcoin_address to send to.
|
|
* @amount: (in) satoshis to send to the destination
|
|
* @changekey: (in) key to send change to (only used if change_satoshis != 0).
|
|
* @changesa: (in) amount to send as change.
|
|
* @bip32_base: (in) bip32 base for key derivation, or NULL.
|
|
*/
|
|
struct bitcoin_tx *withdraw_tx(const tal_t *ctx,
|
|
const struct utxo **utxos,
|
|
const struct bitcoin_address *destination,
|
|
const u64 withdraw_amount,
|
|
const struct pubkey *changekey,
|
|
const u64 changesat,
|
|
const struct ext_key *bip32_base);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_WITHDRAW_TX_H */
|