rgb-cln/common
Rusty Russell ae71a87c40 ccan: update to latest htable fixes, and update gossmap to meet new assertions.
Updating ccan to stricter htable revealed we were trying to put
(void *)1 in the htable, which is forbidden:

```
topology: ccan/ccan/htable/htable.c:382: htable_add_: Assertion `entry_is_valid((uintptr_t)p)' failed.
topology: FATAL SIGNAL 6 (version 1358d7f)
0x55f30c689c34 send_backtrace
	common/daemon.c:33
0x55f30c689ce0 crashdump
	common/daemon.c:46
0x7f5d150fe51f ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f5d15152828 __pthread_kill_implementation
	./nptl/pthread_kill.c:44
0x7f5d15152828 __pthread_kill_internal
	./nptl/pthread_kill.c:80
0x7f5d15152828 __GI___pthread_kill
	./nptl/pthread_kill.c:91
0x7f5d150fe475 __GI_raise
	../sysdeps/posix/raise.c:26
0x7f5d150e47b6 __GI_abort
	./stdlib/abort.c:79
0x7f5d150e46da __assert_fail_base
	./assert/assert.c:92
0x7f5d150f5e25 __GI___assert_fail
	./assert/assert.c:101
0x55f30c6adbe4 htable_add_
	ccan/ccan/htable/htable.c:382
0x55f30c65f303 chanidx_htable_add
	common/gossmap.c:35
0x55f30c6605ed new_channel
	common/gossmap.c:337
0x55f30c6609cf add_channel
	common/gossmap.c:425
0x55f30c661101 map_catchup
	common/gossmap.c:607
0x55f30c66221e gossmap_refresh
	common/gossmap.c:927
0x55f30c66e3e9 get_gossmap
	plugins/topology.c:27
0x55f30c66f939 listpeers_done
	plugins/topology.c:369
0x55f30c671f46 handle_rpc_reply
	plugins/libplugin.c:558
0x55f30c672a19 rpc_read_response_one
	plugins/libplugin.c:726
0x55f30c672b4f rpc_conn_read_response
	plugins/libplugin.c:746
0x55f30c6ae35e next_plan
	ccan/ccan/io/io.c:59
0x55f30c6aef93 do_plan
	ccan/ccan/io/io.c:407
0x55f30c6aefd5 io_ready
	ccan/ccan/io/io.c:417
0x55f30c6b1371 io_loop
	ccan/ccan/io/poll.c:453
0x55f30c67587c plugin_main
	plugins/libplugin.c:1559
0x55f30c6708eb main
	plugins/topology.c:701
0x7f5d150e5fcf __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f5d150e607c __libc_start_main_impl
	../csu/libc-start.c:409
0x55f30c65d894 ???
	???:0
0xffffffffffffffff ???
	???:0
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-07-10 20:48:53 -05:00
..
test ccan: update to latest htable fixes, and update gossmap to meet new assertions. 2022-07-10 20:48:53 -05:00
Makefile channeld: take over gossip_rcvd_filter.c and is_msg_gossip_broadcast. 2022-06-17 14:14:02 +09:30
addr.c bitcoin/chainparams.h: Split BIP173 name into onchain and Lightning HRPs. 2021-12-14 11:21:35 +10:30
addr.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
amount.c common: add msat to sat convert helper. 2022-06-21 06:52:35 +09:30
amount.h common: add msat to sat convert helper. 2022-06-21 06:52:35 +09:30
autodata.c common: clean up autodata in common_shutdown(). 2021-11-17 10:51:48 +10:30
autodata.h common: clean up autodata in common_shutdown(). 2021-11-17 10:51:48 +10:30
base32.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
base32.h common/base32: make this a simple tal-wrapper around ccan/base32. 2018-05-10 02:28:44 +00:00
base64.c common: use ccan/base64 instead of libsodium. 2021-11-14 18:49:46 +01:00
base64.h wireaddr: clean up tor parsing. 2021-11-14 18:49:46 +01:00
bech32.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
bech32.h common/bech32: update to bech32m reference. 2021-06-11 13:54:20 +09:30
bech32_util.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
bech32_util.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
bigsize.c check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
bigsize.h Remove varint typedef for bigsize 2020-09-23 16:30:36 +09:30
billboard.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
billboard.h billboard: break out common method for billboard updates 2021-01-10 13:44:04 +01:00
bip32.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
bip32.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
blindedpath.c connectd: restore obs2 onion support. 2022-03-29 10:55:12 +10:30
blindedpath.h connectd: restore obs2 onion support. 2022-03-29 10:55:12 +10:30
blinding.c Changed external/libwally-core to test_build_fix 2022-04-12 15:17:52 +09:30
blinding.h common: add blinding helpers. 2020-04-04 16:08:49 +10:30
blockheight_states.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
blockheight_states.h liquidity-ads: persist channel blockheight states to disk 2021-07-20 13:28:38 -04:00
bolt11.c bolt11: reorder invoice production to match test vectors. 2022-04-02 09:40:18 +10:30
bolt11.h bolt11: reorder invoice production to match test vectors. 2022-04-02 09:40:18 +10:30
bolt11_json.c bolt11: support payment_metadata. 2022-04-02 09:40:18 +10:30
bolt11_json.h common/bolt11_json: extract bolt11->json code. 2021-01-09 14:34:35 +10:30
bolt12.c Changed external/libwally-core to test_build_fix 2022-04-12 15:17:52 +09:30
bolt12.h common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
bolt12_merkle.c offers: import latest variant from draft. 2022-03-25 13:55:44 +10:30
bolt12_merkle.h BOLT12: use point32 instead of pubkey32. 2021-10-08 13:47:30 +02:00
channel_config.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
channel_config.h lightningd: new option for htlc dust limit 2021-10-23 12:59:13 +02:00
channel_id.c common: generalize extract_channel_id(). 2021-12-30 09:50:40 +10:30
channel_id.h common: generalize extract_channel_id(). 2021-12-30 09:50:40 +10:30
channel_type.c zeroconf: Add channel_type variant support 2022-07-04 22:14:06 +02:00
channel_type.h channeld: import updated channel_upgrade spec. 2021-10-08 16:07:21 +02:00
close_tx.c hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30
close_tx.h hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30
closing_fee.h closingd: configurable closing fee negotiation step 2020-04-07 13:52:48 +09:30
coin_mvt.c coin_mvt: only chain moves have a blockheight 2022-03-05 15:12:12 +10:30
coin_mvt.h coin_mvt: only chain moves have a blockheight 2022-03-05 15:12:12 +10:30
configdir.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
configdir.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
crypto_state.h per_peer_state: remove struct crypto_state 2022-01-20 15:24:06 +10:30
cryptomsg.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
cryptomsg.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
daemon.c Fix memory leak abort in debug mode 2021-10-10 13:22:29 +02:00
daemon.h Add missing `extern` qualifiers for gcc 10 2020-02-02 12:59:17 +10:30
daemon_conn.c msg_queue: don't allow magic MSG_PASS_FD message for peers. 2022-01-20 15:24:06 +10:30
daemon_conn.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
decode_array.c Makefile: update to BOLTs without zlib. 2022-05-19 09:47:32 +09:30
decode_array.h Makefile: update to BOLTs without zlib. 2022-05-19 09:47:32 +09:30
derive_basepoints.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
derive_basepoints.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
descriptor_checksum.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
descriptor_checksum.h common: add a descriptor checksum computation module 2020-11-10 10:34:13 -06:00
dev_disconnect.c connectd: implement @ correctly. 2022-01-20 15:24:06 +10:30
dev_disconnect.h connectd: implement @ correctly. 2022-01-20 15:24:06 +10:30
dijkstra.c common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
dijkstra.h common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
ecdh.h common: generalize ecdh function. 2020-04-04 16:08:49 +10:30
ecdh_hsmd.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
ecdh_hsmd.h common: generalize ecdh function. 2020-04-04 16:08:49 +10:30
errcode.h cli: make the command line more user friendly. 2022-03-24 09:53:38 +10:30
features.c features: Add function to unset a featurebit 2022-07-04 22:14:06 +02:00
features.h features: Add function to unset a featurebit 2022-07-04 22:14:06 +02:00
fee_states.c global: use tal_dup_or_null(). 2021-12-30 14:36:55 +10:30
fee_states.h channeld: tweak function to allow testing for pending *uncommitted* changes. 2021-06-04 16:13:08 +09:30
fp16.c common: extract fp16 routines into their own file. 2021-02-04 12:02:36 +10:30
fp16.h common: extract fp16 routines into their own file. 2021-02-04 12:02:36 +10:30
gossip_constants.h gossipd: signal whether node_ann is updated, are we starting up? 2021-07-20 13:28:38 -04:00
gossip_store.c gossip_store: add flag for spam gossip, update to v10 2022-07-06 14:31:19 +09:30
gossip_store.h gossip_store: add flag for spam gossip, update to v10 2022-07-06 14:31:19 +09:30
gossmap.c ccan: update to latest htable fixes, and update gossmap to meet new assertions. 2022-07-10 20:48:53 -05:00
gossmap.h BOLT12: use point32 instead of pubkey32. 2021-10-08 13:47:30 +02:00
hash_u5.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
hash_u5.h common: use tabs everywhere. 2020-02-05 14:19:12 +01:00
hmac.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
hmac.h common/sphinx: don't make copy to compute packet hmac. 2020-12-11 15:51:24 +01:00
hsm_encryption.c cli: make the command line more user friendly. 2022-03-24 09:53:38 +10:30
hsm_encryption.h cli: make the command line more user friendly. 2022-03-24 09:53:38 +10:30
htlc.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
htlc_state.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
htlc_state.h Fix a-vs-an typos 2018-02-08 22:49:34 +01:00
htlc_trim.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
htlc_trim.h dusty-htlcs: enforce limit on dusty htlcs 2021-10-23 12:59:13 +02:00
htlc_tx.c onchaind: fix minor leaks. 2022-02-27 07:44:26 +10:30
htlc_tx.h doc: update BOLT references part1, including bolt11 test vectors with payment_secret. 2022-04-02 09:40:18 +10:30
htlc_wire.c hsmd: Add fields to hsmd_sign_{,remote_}commitment_tx for validating signers 2022-03-16 12:06:21 +10:30
htlc_wire.h hsmd: Add fields to hsmd_sign_{,remote_}commitment_tx for validating signers 2022-03-16 12:06:21 +10:30
initial_channel.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
initial_channel.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
initial_commit_tx.c Makefile: update bolts to include remote_pubkey change. 2022-05-19 09:47:32 +09:30
initial_commit_tx.h No funding_wscript arg in initial_commit_tx 2022-07-01 13:30:19 -05:00
iso4217.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
iso4217.h common/iso4217: make find_iso4217 a little more usable. 2020-12-15 12:05:02 +01:00
json.c common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
json.h json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
json_command.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
json_helpers.c JSON: deprecate printing msat fields as strings. 2022-06-21 06:52:35 +09:30
json_helpers.h json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
json_stream.c common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
json_stream.h common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
json_tok.c json: Add parser for u32 params 2022-07-04 22:14:06 +02:00
json_tok.h json: Add parser for u32 params 2022-07-04 22:14:06 +02:00
jsonrpc_errors.h delinvoice: allow desconly arg to only remove the description. 2022-03-29 10:04:16 +10:30
key_derive.c Changed external/libwally-core to test_build_fix 2022-04-12 15:17:52 +09:30
key_derive.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
keyset.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
keyset.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
lease_rates.c lease_rates: prepare for msats fields as raw numbers. 2022-06-21 06:52:35 +09:30
lease_rates.h lease_rates: prepare for msats fields as raw numbers. 2022-06-21 06:52:35 +09:30
memleak.c memleak: make sure we catch children which are also "notleak". 2022-03-20 08:42:57 +10:30
memleak.h memleak: make notleak use the tal name instead of a boutique struct. 2021-11-27 10:38:13 +10:30
msg_queue.c msg_queue: don't allow magic MSG_PASS_FD message for peers. 2022-01-20 15:24:06 +10:30
msg_queue.h msg_queue: don't allow magic MSG_PASS_FD message for peers. 2022-01-20 15:24:06 +10:30
node_id.c BOLT12: use point32 instead of pubkey32. 2021-10-08 13:47:30 +02:00
node_id.h BOLT12: use point32 instead of pubkey32. 2021-10-08 13:47:30 +02:00
onion.c sendpay: add payment_metadata argument. 2022-04-02 09:40:18 +10:30
onion.h sendpay: add payment_metadata argument. 2022-04-02 09:40:18 +10:30
onionreply.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
onionreply.h common: add struct onionreply 2020-01-23 16:17:42 +10:30
overflows.h overflows: helpers for integer assignment overflows. 2021-07-20 13:28:38 -04:00
param.c common/param: support renaming options using "|<deprecatedname>". 2022-06-21 06:52:35 +09:30
param.h common/param: support renaming options using "|<deprecatedname>". 2022-06-21 06:52:35 +09:30
peer_billboard.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
peer_billboard.h common: peer_billboard() helper for updating the billboard. 2018-02-23 18:02:00 +01:00
peer_failed.c common: downgrade LND 'internal error' properly. 2022-06-26 13:52:14 +09:30
peer_failed.h common: remove peer_failed in favor of peer_failed_warn/peer_failed_err 2021-02-04 12:02:52 +10:30
peer_io.c peer subds: ignore failed writes. 2022-01-20 15:24:06 +10:30
peer_io.h connectd: do nagle by packet type. 2022-01-20 15:24:06 +10:30
peer_status_wire.csv subdaemons: don't stream gossip_store at all. 2022-01-20 15:24:06 +10:30
penalty_base.c check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
penalty_base.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
per_peer_state.c subdaemons: remove gossipd fd from per-peer daemons. 2022-02-08 11:15:52 +10:30
per_peer_state.h subdaemons: remove gossipd fd from per-peer daemons. 2022-02-08 11:15:52 +10:30
permute_tx.c common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
permute_tx.h common: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
ping.c doc: big BOLT update to incorporate warnings language. 2022-04-02 09:40:18 +10:30
ping.h channeld: restore ping command, but only for channeld. 2021-10-10 15:32:57 +02:00
private_channel_announcement.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
private_channel_announcement.h gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
psbt_internal.c psbt: fix dual-funding memleak. 2022-03-21 10:19:50 +10:30
psbt_internal.h dual-funding: convert to runtime flag, --experimental-dual-fund 2021-03-25 20:05:11 +10:30
psbt_keypath.c hsmd: Add PSBT keypath utility functions 2022-03-10 10:22:29 +10:30
psbt_keypath.h hsmd: Add PSBT keypath utility functions 2022-03-10 10:22:29 +10:30
psbt_open.c coin moves: notify when we make deposits to external accounts 2022-01-26 13:34:45 +10:30
psbt_open.h coin moves: notify when we make deposits to external accounts 2022-01-26 13:34:45 +10:30
pseudorand.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
pseudorand.h common: expose pseudorand_double 2019-04-16 21:22:13 +00:00
random_select.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
random_select.h Apply @cdecker typo suggestions from code review 2020-08-28 10:56:50 +09:30
read_peer_msg.c doc: big BOLT update to incorporate warnings language. 2022-04-02 09:40:18 +10:30
read_peer_msg.h subdaemons: remove gossipd fd from per-peer daemons. 2022-02-08 11:15:52 +10:30
route.c route: Do not require both directions to be active 2022-05-25 14:47:05 +09:30
route.h lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
setup.c common: clean up autodata in common_shutdown(). 2021-11-17 10:51:48 +10:30
setup.h setup: create a common setup which will handle the wally-context 2020-05-19 13:35:42 +09:30
shutdown_scriptpubkey.c shutdown: don't allow shutdown to p2pkh or p2sh addresses for anchor outputs. 2022-04-02 09:40:18 +10:30
shutdown_scriptpubkey.h shutdown: don't allow shutdown to p2pkh or p2sh addresses for anchor outputs. 2022-04-02 09:40:18 +10:30
sphinx.c lightningd: Restore forwarding of legacy onions. 2022-03-31 19:38:05 +10:30
sphinx.h common/sphinx: add helper to prepend length to payload. 2021-09-22 06:44:26 +09:30
status.c common: make sure we hand through peer for io logging. 2022-02-08 11:15:52 +10:30
status.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
status_levels.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
status_levels.h common: add routines for log level names. 2020-10-23 13:53:16 +10:30
status_wire.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
status_wire.csv cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
status_wire.h status: generate messages rather than marshal/unmarshal manually. 2018-02-08 19:07:12 +01:00
subdaemon.c connectd: do dev_disconnect logic. 2022-01-20 15:24:06 +10:30
subdaemon.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
timeout.c common: add routine for absolute timeouts (vs. relative). 2022-01-20 15:24:06 +10:30
timeout.h common: add routine for absolute timeouts (vs. relative). 2022-01-20 15:24:06 +10:30
tx_roles.h tx_roles: pull up roles, rename 2020-10-20 12:50:31 +10:30
type_to_string.c type_to_string: detect type failure in DEVELOPER mode. 2021-09-21 18:04:43 +02:00
type_to_string.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
utils.c memleak: handle libwally allocations better. 2022-03-21 10:19:50 +10:30
utils.h memleak: handle libwally allocations better. 2022-03-21 10:19:50 +10:30
utxo.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
utxo.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
version.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
version.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
wallet.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
wallet.h wallet: Add transaction annotation type 2019-10-07 20:03:24 -05:00
wire_error.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
wire_error.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
wireaddr.c lightnind: remove`DEFAULT_PORT` global definition 2022-06-28 06:09:01 +09:30
wireaddr.h lightnind: remove`DEFAULT_PORT` global definition 2022-06-28 06:09:01 +09:30