core-lightning/common
Rusty Russell d9fc99ea39 channeld: simplify loading of pre-existing HTLCs.
We currently abuse the added_htlc and failed_htlc messages to tell channeld
about existing htlcs when it restarts.  It's clearer to have an explicit
'existing_htlc' type which contains all the information for this case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-04-04 16:08:49 +10:30
..
test common/features: don't use internal global. 2020-04-03 13:13:21 +10:30
addr.c
addr.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
amount.c common/amount: accept 0msat in parse_amount_sat() 2020-04-01 10:20:03 +10:30
amount.h
base32.c
base32.h
base64.c Init commit to be able to create a tor static service on the fly. 2019-12-03 23:35:18 +01:00
base64.h Init commit to be able to create a tor static service on the fly. 2019-12-03 23:35:18 +01:00
bech32_util.c
bech32_util.h
bech32.c
bech32.h
bigsize.c
bigsize.h
bip32.c
bip32.h
bolt11.c cleanup: make 'u8 *features' and 'struct feature_set *fset' more explicit. 2020-04-03 13:13:21 +10:30
bolt11.h cleanup: make 'u8 *features' and 'struct feature_set *fset' more explicit. 2020-04-03 13:13:21 +10:30
channel_config.c
channel_config.h
close_tx.c tx: Strengthen transaction construction checks 2020-03-24 09:52:33 +10:30
close_tx.h
configdir.c config: limit depth on includes. 2019-11-23 22:42:34 +00:00
configdir.h config: explicitly disallow nonsensical options. 2019-11-23 22:42:34 +00:00
crypto_state.c
crypto_state.h
crypto_sync.c common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
crypto_sync.h
cryptomsg.c
cryptomsg.h
daemon_conn.c
daemon_conn.h
daemon.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
daemon.h Add missing extern qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
decode_array.c
decode_array.h
derive_basepoints.c
derive_basepoints.h
dev_disconnect.c
dev_disconnect.h
errcode.h Use dedicated type for error codes 2020-01-31 06:02:47 +00:00
features.c cleanup: make 'u8 *features' and 'struct feature_set *fset' more explicit. 2020-04-03 13:13:21 +10:30
features.h cleanup: make 'u8 *features' and 'struct feature_set *fset' more explicit. 2020-04-03 13:13:21 +10:30
fee_states.c common: add fee_states state machine for update_fee. 2019-12-12 22:15:48 +01:00
fee_states.h common: add fee_states state machine for update_fee. 2019-12-12 22:15:48 +01:00
funding_tx.c tx: Strengthen transaction construction checks 2020-03-24 09:52:33 +10:30
funding_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
gossip_constants.h
gossip_rcvd_filter.c
gossip_rcvd_filter.h
gossip_store.c BOLT: update to latest version. 2020-03-31 13:36:02 +02:00
gossip_store.h
hash_u5.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
hash_u5.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
hmac.c common: new file hmac for hmac calculation. 2020-03-25 14:26:28 +10:30
hmac.h common: new file hmac for hmac calculation. 2020-03-25 14:26:28 +10:30
htlc_state.c
htlc_state.h
htlc_trim.c
htlc_trim.h
htlc_tx.c tx: Strengthen transaction construction checks 2020-03-24 09:52:33 +10:30
htlc_tx.h
htlc_wire.c channeld: simplify loading of pre-existing HTLCs. 2020-04-04 16:08:49 +10:30
htlc_wire.h channeld: simplify loading of pre-existing HTLCs. 2020-04-04 16:08:49 +10:30
htlc.h
initial_channel.c channeld: remove changes_pending flags. 2019-12-12 22:15:48 +01:00
initial_channel.h channeld: remove changes_pending flags. 2019-12-12 22:15:48 +01:00
initial_commit_tx.c tx: Strengthen transaction construction checks 2020-03-24 09:52:33 +10:30
initial_commit_tx.h channeld: remove chainparams local parameter. 2019-11-20 20:41:53 +01:00
io_lock.c
io_lock.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
json_command.h Use dedicated type for error codes 2020-01-31 06:02:47 +00:00
json_helpers.c
json_helpers.h
json_stream.c libplugin: use ccan/io for response to plugin commands 2020-02-04 13:24:32 +10:30
json_stream.h libplugin: use ccan/io for response to plugin commands 2020-02-04 13:24:32 +10:30
json_tok.c common: avoid locale dependent strtod(3) 2020-02-27 09:07:04 +10:30
json_tok.h wire: remove towire_double() 2020-02-27 09:07:04 +10:30
json.c common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
json.h common: avoid locale dependent strtod(3) 2020-02-27 09:07:04 +10:30
jsonrpc_errors.h lightningd/hsm_control.c: Implement getsharedsecret. 2020-02-28 14:45:50 +10:30
key_derive.c
key_derive.h
keyset.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
keyset.h
Makefile common: new file hmac for hmac calculation. 2020-03-25 14:26:28 +10:30
memleak.c Add missing extern qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
memleak.h Add missing extern qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
msg_queue.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
msg_queue.h
node_id.c
node_id.h
onion.c common/sphinx: add realm flag so we can avoid legacy parsing. 2020-03-17 18:47:52 +01:00
onion.h common/sphinx: add realm flag so we can avoid legacy parsing. 2020-03-17 18:47:52 +01:00
onionreply.c wire: add fromwire_tal_arrn() helper. 2020-03-09 16:04:56 +01:00
onionreply.h common: add struct onionreply 2020-01-23 16:17:42 +10:30
overflows.h
param.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
param.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
peer_billboard.c
peer_billboard.h
peer_failed.c channeld: treat all incoming errors as "soft", so we retry. 2019-12-13 16:36:18 +01:00
peer_failed.h channeld: treat all incoming errors as "soft", so we retry. 2019-12-13 16:36:18 +01:00
peer_status_wire.csv
per_peer_state.c
per_peer_state.h
permute_tx.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
permute_tx.h
ping.c
ping.h
pseudorand.c
pseudorand.h
read_peer_msg.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
read_peer_msg.h channeld: treat all incoming errors as "soft", so we retry. 2019-12-13 16:36:18 +01:00
socket_close.c
socket_close.h
sphinx.c common: make sphinx.c use hmac.c. 2020-03-25 14:26:28 +10:30
sphinx.h common: make sphinx.c use hmac.c. 2020-03-25 14:26:28 +10:30
status_levels.h
status_wire.c
status_wire.csv
status_wire.h
status.c
status.h
subdaemon.c
subdaemon.h
timeout.c
timeout.h
type_to_string.c
type_to_string.h common: add fee_states state machine for update_fee. 2019-12-12 22:15:48 +01:00
utils.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
utils.h common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
utxo.c wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
utxo.h wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
version.c
version.h
wallet_tx.c wallet: allow to withdraw with unconfirmed utxos 2020-04-01 22:58:18 -05:00
wallet_tx.h
wallet.c
wallet.h
wire_error.c
wire_error.h
wireaddr.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
wireaddr.h common/wireaddr: don't include lightningd/lightningd. 2020-02-27 14:16:16 +10:30
withdraw_tx.c tx: Strengthen transaction construction checks 2020-03-24 09:52:33 +10:30
withdraw_tx.h wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00