core-lightning/common
Rusty Russell f76203727d htlc_wire: be stricter in marshaling/unmarshaling struct failed_htlc.
There are three cases:
1. failcode is 0, scid is NULL, failreason is the onion to fwd.
2. failcode is non-zero, but UPDATE bit not set.  scid is NULL, failreason NULL.
3. failcode has UPDATE bit set.  scid is non-NULL, failreason is NULL.

Assert these on marshaling, and only send the parts we need so unmarshal is
always canonical.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-07-27 14:12:00 +02:00
..
test common/derive_basepoints: complete the set of single-value derive functions. 2018-07-24 00:40:01 +02:00
base32.c common/base32: make this a simple tal-wrapper around ccan/base32. 2018-05-10 02:28:44 +00:00
base32.h common/base32: make this a simple tal-wrapper around ccan/base32. 2018-05-10 02:28:44 +00:00
bech32_util.c common: Moving some bech32 related utilities to bech32_util 2018-04-25 12:34:55 +02:00
bech32_util.h common: Moving some bech32 related utilities to bech32_util 2018-04-25 12:34:55 +02:00
bech32.c
bech32.h
bip32.c
bip32.h
bolt11.c Update ccan/structeq. 2018-07-04 23:57:00 +02:00
bolt11.h bolt11: allow multiple fallback addresses. 2018-04-06 14:26:53 +02:00
channel_config.c
channel_config.h
close_tx.c
close_tx.h
configdir.c lightningd: fix double-specified args. 2018-05-05 17:55:10 +02:00
configdir.h
crypto_state.c
crypto_state.h
crypto_sync.c status: make status_io a more generic mechanism. 2018-05-10 02:28:44 +00:00
crypto_sync.h
cryptomsg.c Update to latest BOLT version. 2018-07-01 17:37:03 +02:00
cryptomsg.h
daemon_conn.c common/daemon_conn: add daemon_conn_wake() helper. 2018-07-25 02:13:52 +00:00
daemon_conn.h common/daemon_conn: add daemon_conn_wake() helper. 2018-07-25 02:13:52 +00:00
daemon.c daemon: print version in crash backtrace. 2018-06-12 23:18:53 +02:00
daemon.h
decode_short_channel_ids.c decode_short_ids: move to common. 2018-07-01 14:55:29 +02:00
decode_short_channel_ids.h Update to latest BOLT version. 2018-07-01 17:37:03 +02:00
derive_basepoints.c common/derive_basepoints: complete the set of single-value derive functions. 2018-07-24 00:40:01 +02:00
derive_basepoints.h common/derive_basepoints: complete the set of single-value derive functions. 2018-07-24 00:40:01 +02:00
dev_disconnect.c
dev_disconnect.h
features.c features: define LOCAL_GOSSIP_QUERIES feature. 2018-06-06 03:25:56 +00:00
features.h Update to latest BOLT version. 2018-07-01 17:37:03 +02:00
funding_tx.c
funding_tx.h
hash_u5.c
hash_u5.h
htlc_state.c
htlc_state.h
htlc_tx.c common: fix up BOLT 3 references. 2018-06-18 12:31:09 +02:00
htlc_tx.h common: fix up BOLT 3 references. 2018-06-18 12:31:09 +02:00
htlc_wire.c htlc_wire: be stricter in marshaling/unmarshaling struct failed_htlc. 2018-07-27 14:12:00 +02:00
htlc_wire.h channeld: always receive and maintain short_channel_id of failing channel. 2018-07-27 14:12:00 +02:00
htlc.h
initial_channel.c common/keyset: use struct basepoints rather than open-coding fields. 2018-07-24 00:40:01 +02:00
initial_channel.h common: fix up BOLT 2 references. 2018-06-18 12:31:09 +02:00
initial_commit_tx.c common: fix up BOLT 2 references. 2018-06-18 12:31:09 +02:00
initial_commit_tx.h common: fix up BOLT 3 references. 2018-06-18 12:31:09 +02:00
json_escaped.c
json_escaped.h
json.c Modern param style for all remaining files 2018-07-20 01:14:02 +00:00
json.h Modern param style for all remaining files 2018-07-20 01:14:02 +00:00
key_derive.c common: fix up BOLT 3 references. 2018-06-18 12:31:09 +02:00
key_derive.h
keyset.c common/keyset: use struct basepoints rather than open-coding fields. 2018-07-24 00:40:01 +02:00
keyset.h common/keyset: use struct basepoints rather than open-coding fields. 2018-07-24 00:40:01 +02:00
Makefile decode_short_ids: move to common. 2018-07-01 14:55:29 +02:00
memleak.c
memleak.h
msg_queue.c
msg_queue.h
overflows.h
peer_billboard.c
peer_billboard.h
peer_failed.c gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
peer_failed.h gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
peer_status_wire.csv gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
permute_tx.c
permute_tx.h
ping.c common: fix up BOLT 1 references. 2018-06-18 12:31:09 +02:00
ping.h
pseudorand.c
pseudorand.h
read_peer_msg.c channeld: don't read from gossipfd while we're reconnecting. 2018-07-25 02:13:52 +00:00
read_peer_msg.h channeld: don't read from gossipfd while we're reconnecting. 2018-07-25 02:13:52 +00:00
socket_close.c closingd: Ensure proper closing of TCP socket. 2018-05-09 04:43:21 +00:00
socket_close.h closingd: Ensure proper closing of TCP socket. 2018-05-09 04:43:21 +00:00
sphinx.c common: fix up BOLT 4 references. 2018-06-18 12:31:09 +02:00
sphinx.h common: fix up BOLT 4 references. 2018-06-18 12:31:09 +02:00
status_levels.h
status_wire.c
status_wire.csv status: make status_io a more generic mechanism. 2018-05-10 02:28:44 +00:00
status_wire.h
status.c status: make status_io a more generic mechanism. 2018-05-10 02:28:44 +00:00
status.h status: make status_io a more generic mechanism. 2018-05-10 02:28:44 +00:00
subdaemon.c
subdaemon.h
timeout.c
timeout.h
type_to_string.c
type_to_string.h wireaddr_internal: new type for where we can also use a local socket. 2018-05-07 22:37:28 +02:00
utils.c Force the use of the POSIX C locale for all commands and their subprocesses 2018-04-27 14:02:59 +02:00
utils.h Update ccan/structeq. 2018-07-04 23:57:00 +02:00
utxo.c
utxo.h
version.c Make version output simpler/more user-friendly 2018-04-04 02:32:44 +00:00
version.h
wallet_tx.c wallet: clarify error 302. 2018-06-18 12:33:25 +02:00
wallet_tx.h Removed redundancies in withdraw and fundchannel. 2018-05-03 18:20:20 +02:00
wire_error.c common: fix up BOLT 1 references. 2018-06-18 12:31:09 +02:00
wire_error.h common: fix up BOLT 1 references. 2018-06-18 12:31:09 +02:00
wireaddr.c gossip: Try to detect broken ISP resolvers and discard broken replies 2018-06-21 11:21:16 +02:00
wireaddr.h gossip: Try to detect broken ISP resolvers and discard broken replies 2018-06-21 11:21:16 +02:00
withdraw_tx.c
withdraw_tx.h