core-lightning/common
Rusty Russell 2aad3ffcf8 common: tal_dup_talarr() helper.
This is a common thing to do, so create a macro.

Unfortunately, it still needs the type arg, because the paramter may
be const, and the return cannot be, and C doesn't have a general
"(-const)" cast.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-02-27 14:16:16 +10:30
..
test common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
addr.c addr: handle P2SH/P2PKH in scriptpubkey encoding 2019-11-13 03:31:20 +00:00
addr.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
amount.c elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00
amount.h elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00
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: insist in minimal representation in bigsize_get(). 2019-07-31 23:25:59 +00:00
bigsize.h bigsize: make it a proper first-class type. 2019-07-31 23:25:59 +00:00
bip32.c
bip32.h
bolt11.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
bolt11.h common/bolt11: add secret support. 2019-11-24 23:33:17 +00:00
channel_config.c struct channel_config: use amount_sat / amount_msat. 2019-02-21 08:01:37 +00:00
channel_config.h bolt: update to BOLT spec changes (extract format + type specifications) 2019-07-16 06:10:58 +00:00
close_tx.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
close_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
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 common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
cryptomsg.c transition from status_trace() to status_debug 2019-09-10 02:02:51 +00:00
cryptomsg.h
daemon_conn.c status: suppress status_trace/status_debug messages if queue too long. 2019-05-03 11:42:48 +02:00
daemon_conn.h status: suppress status_trace/status_debug messages if queue too long. 2019-05-03 11:42:48 +02:00
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 gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
decode_array.h gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
derive_basepoints.c developer: add --dev-force-channel-secrets. 2019-07-17 12:55:37 -05:00
derive_basepoints.h developer: add --dev-force-channel-secrets. 2019-07-17 12:55:37 -05:00
dev_disconnect.c dev_disconnect: make it more reliable. 2019-10-10 21:48:52 -05:00
dev_disconnect.h
errcode.h Use dedicated type for error codes 2020-01-31 06:02:47 +00:00
features.c Minor fixups on PR #3477 2020-02-11 13:53:31 +10:30
features.h features: Add featurebits_or helper to combine two featurebitstrings 2020-02-11 13:53:31 +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 wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
funding_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
gossip_constants.h gossipd: restore a flag for fast pruning 2019-09-27 00:01:34 +00:00
gossip_rcvd_filter.c common/gossip_rcvd_filter: avoid DoS. 2019-09-06 14:35:01 +02:00
gossip_rcvd_filter.h common/gossip_rcvd_filter: cache for received gossip. 2019-09-06 14:35:01 +02:00
gossip_store.c gossipd: handle a "push" marker into the gossip_store. 2019-11-04 17:50:58 +01:00
gossip_store.h gossipd: handle a "push" marker into the gossip_store. 2019-11-04 17:50:58 +01:00
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
htlc_state.c
htlc_state.h
htlc_trim.c channeld: extract HTLC trim logic into common. 2019-06-11 23:19:11 +00:00
htlc_trim.h channeld: extract HTLC trim logic into common. 2019-06-11 23:19:11 +00:00
htlc_tx.c wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
htlc_tx.h elements: Remove global is_elements variable in favor of chainparams 2019-10-03 04:32:57 +00:00
htlc_wire.c channeld: get the onionreply back from lightningd for failed htlcs. 2020-02-25 11:12:12 +10:30
htlc_wire.h channeld: get the onionreply back from lightningd for failed htlcs. 2020-02-25 11:12:12 +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 elements: Fix missing witness script entry for fee outputs 2020-02-08 14:26:12 +01:00
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 dev-forget-channel: accept passing in channel_id 2019-10-10 05:57:45 +00:00
json_helpers.h dev-forget-channel: accept passing in channel_id 2019-10-10 05:57:45 +00:00
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 plugins/bcli: a new plugin for gathering Bitcoin data 2020-02-12 11:45:07 +10:30
key_derive.c Make option_static_remotekey non-EXPERIMENTAL now it's in spec. 2019-09-30 01:50:44 +00:00
key_derive.h
keyset.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
keyset.h derive_keyset: don't rotate key for remote iff option_static_remotekey. 2019-09-10 16:18:25 -05:00
Makefile common: move json_stream from lightningd/ to common/ 2020-02-04 13:24:32 +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 status: suppress status_trace/status_debug messages if queue too long. 2019-05-03 11:42:48 +02:00
node_id.c common/node_id: new type. 2019-04-09 12:37:16 -07:00
node_id.h common/node_id: new type. 2019-04-09 12:37:16 -07:00
onion.c Makefile: update bolt markers which have been since merged. 2020-01-31 06:07:56 +00:00
onion.h common: make sphinx code ignorant of payload format. 2019-12-09 14:33:31 +01:00
onionreply.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
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 common: add peer_error flag to treat this error as "soft". 2019-07-26 03:53:03 +00:00
per_peer_state.c Move gossip_constants.h into common/ 2019-09-25 04:01:56 +00:00
per_peer_state.h developer: consolidiate gossip timing options into one --dev-fast-gossip. 2019-09-20 06:55:00 +00:00
permute_tx.c common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
permute_tx.h tx: Change permute_{inputs,outputs} to sort both old and new txs 2019-04-08 00:00:00 +00:00
ping.c transition from status_trace() to status_debug 2019-09-10 02:02:51 +00:00
ping.h
pseudorand.c common: expose pseudorand_double 2019-04-16 21:22:13 +00:00
pseudorand.h common: expose pseudorand_double 2019-04-16 21:22:13 +00:00
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: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
sphinx.h pytest: test that we handle WIRE_UPDATE_FAIL_MALFORMED_HTLC correctly. 2020-01-29 21:15:25 +01:00
status_levels.h
status_wire.c
status_wire.csv common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
status_wire.h
status.c lightningd: enable io logging on subdaemons iff we're going to print it. 2019-11-18 04:50:22 +00:00
status.h common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
subdaemon.c common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
subdaemon.h common: reduce header differences for DEVELOPER vs non-DEVELOPER. 2019-09-06 14:35:01 +02:00
timeout.c
timeout.h
type_to_string.c type_to_string: return const char *. 2019-02-21 00:44:57 +00:00
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 txprepare: don't crash if we are passed unconfirmed utxos 2020-02-21 17:52:02 +01:00
wallet_tx.h fundchannel: Add a new 'utxo' parameter 2019-06-11 23:24:07 +00:00
wallet.c wallet: Rip out the txtypes type in favor of enum wallet_tx_type 2019-06-08 02:58:27 +00:00
wallet.h wallet: Add transaction annotation type 2019-10-07 20:03:24 -05:00
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 wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
withdraw_tx.h wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00