core-lightning/common
Rusty Russell 837e6232c3 common: reduce header differences for DEVELOPER vs non-DEVELOPER.
`make update-mocks` is usually run in DEVELOPER mode, but then it includes
definitions for functions which aren't declared in non-DEVELOPER mode.

We hacked this in a few places, but it's fragile, and worst, now we
have EXPERIMENTAL_FEATURES as well, it's complex.

Instead, declare developer-only functions (but don't define them).
This is a bit more awkward if you accidentally use one in
non-DEVELOPER code (link error rather than compile error), but makes
autogenerating test mocks much easier.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-06 14:35:01 +02:00
..
test bolt11: handle 9 fields for new features. 2019-09-05 23:39:05 -05:00
addr.c common: pull out scriptPubkey address method 2019-06-12 02:22:43 +00:00
addr.h common: pull out scriptPubkey address method 2019-06-12 02:22:43 +00:00
amount.c chore: adds missing WARN_UNUSED to amount_msat_from_sat_u64 2019-04-16 15:01:28 -07:00
amount.h chore: adds missing WARN_UNUSED to amount_msat_from_sat_u64 2019-04-16 15:01:28 -07:00
base32.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02: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 Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +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: fix overflow bug. 2018-11-02 05:58:01 +00:00
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 bolt11: handle 9 fields for new features. 2019-09-05 23:39:05 -05:00
bolt11.h bolt11: handle 9 fields for new features. 2019-09-05 23:39:05 -05: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 bitcoin/tx: pass struct amount_sat by copy. 2019-08-26 08:44:22 +00:00
close_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
configdir.c common: fix missing HOME case, when we override --lightning-dir. 2019-08-26 23:09:00 +00:00
configdir.h common/configdir: simply supply defaults, leave parsing to programs. 2019-07-27 05:16:22 +00:00
crypto_state.c
crypto_state.h
crypto_sync.c pytest: fail tests if we get any LOG_BROKEN level messages, unless flagged. 2019-07-02 03:26:10 +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 common/cryptomsg: remove unused async routines. 2018-09-28 04:14:28 +00:00
cryptomsg.h common/cryptomsg: remove unused async routines. 2018-09-28 04:14:28 +00:00
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 update libwally to latest version 0.6.9 2019-04-23 15:18:57 +02:00
daemon.h pytest: backtrace on internal errors in subdaemons. 2019-04-08 04:41:43 +00:00
decode_short_channel_ids.c common: implement decoding of query-flags for query_short_channel_ids. 2019-08-10 02:48:34 +00:00
decode_short_channel_ids.h common: implement decoding of query-flags for query_short_channel_ids. 2019-08-10 02:48:34 +00: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.h
features.c common/features: expose feature bitmap low-level functions. 2019-09-05 23:39:05 -05:00
features.h common/features: expose feature bitmap low-level functions. 2019-09-05 23:39:05 -05:00
funding_tx.c common: withdraw_tx() now use the array of struct bitcoin_tx_output as parameter 2019-09-05 16:05:36 -05:00
funding_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
gossip_store.c common/gossip_store: handle short reads. 2019-06-21 04:54:29 +00:00
gossip_store.h ccan: update to faster and correct crc32c implementation. 2019-06-11 23:40:10 +00:00
hash_u5.c
hash_u5.h
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 bitcoin/tx: pass struct amount_sat by copy. 2019-08-26 08:44:22 +00:00
htlc_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
htlc_wire.c daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
htlc_wire.h daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
htlc.h Remove unused functions not covered by unit tests 2018-03-28 11:22:05 +02:00
initial_channel.c tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
initial_channel.h chore: err_reason for initial_channel_tx initial_commit_tx 2019-04-09 13:20:52 +02:00
initial_commit_tx.c bitcoin/tx: pass struct amount_sat by copy. 2019-08-26 08:44:22 +00:00
initial_commit_tx.h tx: Add chainparams to struct bitcoin_tx as context 2019-07-31 23:22:54 +00:00
io_lock.c common/io_lock: add helper to query if lock is taken. 2018-10-19 22:02:11 +00:00
io_lock.h common/io_lock: add helper to query if lock is taken. 2018-10-19 22:02:11 +00:00
json_command.h param: make command_fail/command_success WARN_UNUSED_RESULT. 2018-12-20 03:22:32 +00:00
json_helpers.c JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids. 2019-09-06 14:19:14 +02:00
json_helpers.h JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids. 2019-09-06 14:19:14 +02:00
json_tok.c API: txprepare now support mutiple outputs 2019-09-05 16:05:36 -05:00
json_tok.h API: txprepare now support mutiple outputs 2019-09-05 16:05:36 -05:00
json.c common: generalize json_tok_remove. 2019-07-28 06:09:56 +00:00
json.h common: generalize json_tok_remove. 2019-07-28 06:09:56 +00:00
jsonrpc_errors.h funding: don't allow funding new channels until we're synced. 2019-08-10 22:09:09 +02:00
key_derive.c pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
key_derive.h
keyset.c bolt: Updated the BOLT specification to the latest version 2019-01-15 02:19:56 +00:00
keyset.h common/keyset: use struct basepoints rather than open-coding fields. 2018-07-24 00:40:01 +02:00
Makefile bigsize: make it a proper first-class type. 2019-07-31 23:25:59 +00:00
memleak.c common: reduce header differences for DEVELOPER vs non-DEVELOPER. 2019-09-06 14:35:01 +02:00
memleak.h common: reduce header differences for DEVELOPER vs non-DEVELOPER. 2019-09-06 14:35:01 +02:00
msg_queue.c status: suppress status_trace/status_debug messages if queue too long. 2019-05-03 11:42:48 +02:00
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
overflows.h The overflow check mul_overflows_s64(int64_t, int64_t) overflows and triggers UB :-) Remove it 2018-03-27 23:18:48 +00:00
param.c param: implement helpers for multiplex commands. 2019-07-16 21:39:14 +00:00
param.h param: implement helpers for multiplex commands. 2019-07-16 21:39:14 +00:00
peer_billboard.c
peer_billboard.h
peer_failed.c common: detect "sync error" from lnd. 2019-07-26 03:53:03 +00:00
peer_failed.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00: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 common/gossip_store: handle timestamp filtering. 2019-06-04 01:29:39 +00:00
per_peer_state.h common/gossip_store: handle timestamp filtering. 2019-06-04 01:29:39 +00:00
permute_tx.c wally: Remove tx->input and tx->output, wally all the way! 2019-04-08 00:00:00 +00: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 Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02: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 wire: always ignore unknown odd messages. 2019-08-05 09:54:30 +00:00
read_peer_msg.h common/gossip_store: handle timestamp filtering. 2019-06-04 01:29:39 +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 bigsize: make it a proper first-class type. 2019-07-31 23:25:59 +00:00
sphinx.h bolt: update to 8b2cf0054660bece9e1004f42a500c6a1a77efd3 2019-08-02 17:32:48 +02:00
status_levels.h
status_wire.c
status_wire.csv bolt-gen: use 'enum' instead of 'e:' prefix for enums 2019-07-24 06:31:46 +00:00
status_wire.h
status.c common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
status.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
subdaemon.c plugin/libplugin: API for C plugins. 2019-01-17 13:02:24 +01: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/node_id: new type. 2019-04-09 12:37:16 -07:00
utils.c common: Add tal_arr_remove helper 2018-12-05 23:15:59 +00:00
utils.h common: helper to suppress 'may be used uninitialized' warnings. 2019-08-02 15:56:15 +02:00
utxo.c common: withdraw_tx() now use the array of struct bitcoin_tx_output as parameter 2019-09-05 16:05:36 -05:00
utxo.h common: withdraw_tx() now use the array of struct bitcoin_tx_output as parameter 2019-09-05 16:05:36 -05:00
version.c Make version output simpler/more user-friendly 2018-04-04 02:32:44 +00:00
version.h
wallet_tx.c funding tx: include segwit marker + flag in fee calculation 2019-08-03 05:19:24 +00: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: Rip out the txtypes type in favor of enum wallet_tx_type 2019-06-08 02:58:27 +00:00
wire_error.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
wire_error.h common: fix up BOLT 1 references. 2018-06-18 12:31:09 +02:00
wireaddr.c wireaddr: keep valgrind happy with wireaddr which are pathnames. 2019-03-14 15:05:56 +01:00
wireaddr.h wireaddr: update bolt version, remove 'padding' from addresses. 2018-10-28 23:51:05 +00:00
withdraw_tx.c common: Fix a memleak in withdraw_tx 2019-09-05 16:05:36 -05:00
withdraw_tx.h common: withdraw_tx() now use the array of struct bitcoin_tx_output as parameter 2019-09-05 16:05:36 -05:00