core-lightning/lightningd
Rusty Russell 6aa520bb9b lightningd: remove sendonionmesage parity hack.
offers contain an x-only pubkey: to route to them to need to know the
02 vs 03 prefix.  If they're in the gossmap it's easy, but if they're
a directly-connected peer it's harder.  We used to have
sendonionmessage tweak the key if it found a peer with the matching
key, but this was always a hack.

It turns out that we try to connect to the node anyway, which is
a noop if it's already connected.  So try connecting to the other
parity if the first one fails.

Also, this registers when we fail to connect, and returns an error
rather than waiting for timeout.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-22 06:44:26 +09:30
..
test common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
.gitignore dualopend: new dualopend daemon, containing most of accepter side 2020-09-09 19:54:20 +09:30
bitcoind.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
bitcoind.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
chaintopology.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
chaintopology.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
channel.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
channel.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
channel_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
channel_control.h channeld: add a message to read if we only want to reestablish. 2021-06-25 13:23:28 +09:30
channel_state.h channel-state: add two new states, for dualopend 2021-01-10 13:44:04 +01:00
closing_control.c cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
closing_control.h lightningd/closing_control.c: move json_close here from peer_control.c 2021-09-15 18:23:30 +02:00
coin_mvts.c cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
coin_mvts.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
connect_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
connect_control.h lightningd: get connection direction from connectd. 2021-03-26 13:22:33 +10:30
datastore.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
dual_open_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
dual_open_control.h openingd/dualopend: remove send_msg functionality. 2021-06-03 16:16:34 +09:30
gossip_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
gossip_control.h gossipd: get fed the blockheight from lightningd when we know it. 2019-09-25 04:01:56 +00:00
gossip_msg.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
gossip_msg.h lease_rates: parse them out of node_announcements 2021-07-20 13:28:38 -04:00
hsm_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
hsm_control.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
htlc_end.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
htlc_end.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
htlc_set.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
htlc_set.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
invoice.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
invoice.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
io_loop_with_timers.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
io_loop_with_timers.h lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
json.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
json.h common: hoist param_bitcoin_address where plugins can use it. 2020-08-11 08:39:24 +09:30
jsonrpc.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
jsonrpc.h common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
lightningd.c Fix for Alpine Linux ond OpenBSD 2021-09-20 14:44:27 +02:00
lightningd.h Fix for Alpine Linux ond OpenBSD 2021-09-20 14:44:27 +02:00
log.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
log.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
log_status.c common: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
log_status.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
Makefile common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
memdump.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
memdump.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
notification.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
notification.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
offer.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onchain_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onchain_control.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
onion_message.c lightningd: remove sendonionmesage parity hack. 2021-09-22 06:44:26 +09:30
onion_message.h gossipd, channeld: handle onion messages in gossipd so we don't need a channel. 2021-01-09 14:34:35 +10:30
opening_common.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
opening_common.h openingd: tell lightningd what channel type we negotiated. 2021-09-13 15:53:23 +02:00
opening_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
opening_control.h openingd/dualopend: remove send_msg functionality. 2021-06-03 16:16:34 +09:30
options.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
options.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
pay.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
pay.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
peer_control.c lightningd: fix memleak false positive. 2021-09-22 06:44:26 +09:30
peer_control.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
peer_htlcs.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
peer_htlcs.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
ping.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
plugin.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
plugin.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
plugin_control.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
plugin_control.h plugins: add command field to subcommand output. 2021-06-25 09:49:33 +09:30
plugin_hook.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
plugin_hook.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
routehint.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
routehint.h invoice: overhaul routehints to use topology.listincoming, cleanup. 2021-06-16 10:29:17 +09:30
signmessage.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
subd.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
subd.h lightningd: don't send other messages until we've received version. 2021-04-24 13:56:58 +09:30
watch.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
watch.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30