rgb-cln/common
Rusty Russell bbac67f108 withdraw_tx: don't create empty output if no change.
We were using changekey as the flag to produce change, not changesat,
but the caller was using changesat as the flag.

Also, don't allocate changekey at all if we don't need it; this means
valgrind will complain if we use it at all, too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-12-20 12:56:15 +01:00
..
test bolt11: handle r value fee spec change. 2017-12-12 11:45:44 +01:00
Makefile lightningd: tal memleak detection, dev-memleak command. 2017-12-20 12:43:10 +01:00
bech32.c bech32: move to common/ 2017-11-24 13:22:18 +01:00
bech32.h Fix typos 2017-12-08 13:07:20 +01:00
bip32.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
bip32.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
bolt11.c bolt11: handle r value fee spec change. 2017-12-12 11:45:44 +01:00
bolt11.h bolt11: handle r value fee spec change. 2017-12-12 11:45:44 +01:00
channel_config.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
channel_config.h Revert "Send/receive cltv_expiry_delta in open/accept channel." 2017-10-11 11:54:50 +02:00
close_tx.c close_tx: use version 2. 2017-12-01 18:30:57 +01:00
close_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
configdir.c options: don't leak memory when people override options. 2017-12-13 22:46:10 +01:00
configdir.h options: don't leak memory when people override options. 2017-12-13 22:46:10 +01:00
crypto_state.c crypto_state: move to its own file. 2017-10-20 18:31:32 +02:00
crypto_state.h crypto_state: move to its own file. 2017-10-20 18:31:32 +02:00
crypto_sync.c Add DEVELOPER flag, set by default. 2017-10-26 12:53:09 +02:00
crypto_sync.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
cryptomsg.c Add DEVELOPER flag, set by default. 2017-10-26 12:53:09 +02:00
cryptomsg.h cryptomsg: add helpers to determine if we're partway through msg read/write. 2017-10-25 18:34:35 +02:00
daemon_conn.c daemon_conn: helper to release daemon_conn. 2017-12-17 02:44:20 +00:00
daemon_conn.h daemon_conn: helper to release daemon_conn. 2017-12-17 02:44:20 +00:00
debug.c Add DEVELOPER flag, set by default. 2017-10-26 12:53:09 +02:00
debug.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
derive_basepoints.c derive_basepoints: actually derive a separate HTLC key. 2017-11-16 17:40:57 +01:00
derive_basepoints.h basepoints/secrets: add htlc entry 2017-11-16 17:40:57 +01:00
dev_disconnect.c Add DEVELOPER flag, set by default. 2017-10-26 12:53:09 +02:00
dev_disconnect.h Add DEVELOPER flag, set by default. 2017-10-26 12:53:09 +02:00
funding_tx.c common: remove unused assert() headers. 2017-10-26 12:53:09 +02:00
funding_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
hash_u5.c common/hash_u5: routines to hash 5 bit values. 2017-11-01 01:09:23 +00:00
hash_u5.h common/hash_u5: routines to hash 5 bit values. 2017-11-01 01:09:23 +00:00
htlc.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
htlc_state.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
htlc_state.h db: Create table for HTLCs 2017-10-09 11:51:13 +10:30
htlc_tx.c feerate: use u32 everywhere. 2017-11-23 12:40:32 +01:00
htlc_tx.h feerate: use u32 everywhere. 2017-11-23 12:40:32 +01:00
htlc_wire.c fromwire_bitcoin_tx: quieten leak reporting. 2017-12-20 12:43:10 +01:00
htlc_wire.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
initial_channel.c channel: remove awaiting_revoke_and_ack flag. 2017-12-02 12:52:18 +01:00
initial_channel.h channel: remove awaiting_revoke_and_ack flag. 2017-12-02 12:52:18 +01:00
initial_commit_tx.c feerate: use u32 everywhere. 2017-11-23 12:40:32 +01:00
initial_commit_tx.h feerate: use u32 everywhere. 2017-11-23 12:40:32 +01:00
io_debug.c common/io_debug: replacement for ccan/io's poll which does sanity checks. 2017-09-29 10:20:08 +09:30
io_debug.h common/io_debug: replacement for ccan/io's poll which does sanity checks. 2017-09-29 10:20:08 +09:30
json.c Fix typos 2017-12-08 13:07:20 +01:00
json.h ipaddr: rename to wireaddr. 2017-10-26 21:01:09 +00:00
key_derive.c basepoints/secrets: add htlc entry 2017-11-16 17:40:57 +01:00
key_derive.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
keyset.c typo 2017-11-23 23:10:08 +01:00
keyset.h basepoints/secrets: add htlc entry 2017-11-16 17:40:57 +01:00
memleak.c Re-enable builds with DEVELOPER=0 2017-12-20 12:43:10 +01:00
memleak.h Re-enable builds with DEVELOPER=0 2017-12-20 12:43:10 +01:00
msg_queue.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
msg_queue.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
overflows.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
peer_failed.c status: use common status codes for all the failures. 2017-09-12 23:00:53 +02:00
peer_failed.h status: use common status codes for all the failures. 2017-09-12 23:00:53 +02:00
permute_tx.c Fix typos 2017-12-08 13:07:20 +01:00
permute_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
ping.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
ping.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
pseudorand.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
pseudorand.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
sphinx.c sphinx: fix leaks. 2017-12-20 12:43:10 +01:00
sphinx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
status.c common/status: add status_tracev() for making status wrappers. 2017-10-20 18:31:32 +02:00
status.h common/status: add status_tracev() for making status wrappers. 2017-10-20 18:31:32 +02:00
timeout.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
timeout.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
type_to_string.c type_to_string: support preimage. 2017-09-28 13:07:05 +09:30
type_to_string.h type_to_string: format wireaddr. 2017-10-26 21:01:09 +00:00
utils.c tal_tmpctx: keep information around so we can find leaks. 2017-09-29 10:20:08 +09:30
utils.h tal_tmpctx: keep information around so we can find leaks. 2017-09-29 10:20:08 +09:30
utxo.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
utxo.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
version.c common: new directory for any shared objects. 2017-08-29 17:54:14 +02:00
version.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
wire_error.c is_all_channels: rename to channel_id_is_all 2017-10-22 16:24:10 +02:00
wire_error.h is_all_channels: rename to channel_id_is_all 2017-10-22 16:24:10 +02:00
wireaddr.c wireaddr: marshal empty address properly. 2017-12-17 02:44:20 +00:00
wireaddr.h wireaddr: marshal empty address properly. 2017-12-17 02:44:20 +00:00
withdraw_tx.c withdraw_tx: don't create empty output if no change. 2017-12-20 12:56:15 +01:00
withdraw_tx.h Change withdraw_tx to accept scriptpubkey rather than plain address. 2017-12-13 03:10:04 +00:00