rgb-cln/common
Rusty Russell 5889ad5fc4 dev-disconnect: add blackhole option.
To reproduce the next bug, I had to ensure that one node keeps thinking it's
disconnected, then the other node reconnects, then the first node realizes
it's disconnected.

This code does that, adding a '0' dev-disconnect modifier.  That means
we fork off a process which (due to pipebuf) will accept a little
data, but when the dev_disconnect file is truncated (a hacky, but
effective, signalling mechanism) will exit, as if the socket finally
realized it's not connected any more.

The python tests hang waiting for the daemon to terminate if you leave
the blackhole around; to give a clue as to what's happening in this
case I moved the log dump to before killing the daemon.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-06 19:11:21 +02:00
..
test Makefiles: simplify dependencies. 2017-08-29 17:54:14 +02:00
Makefile Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
bip32.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
bip32.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
channel_config.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
channel_config.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
close_tx.c common: new directory for any shared objects. 2017-08-29 17:54:14 +02:00
close_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
configdir.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
configdir.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
crypto_sync.c dev-disconnect: add blackhole option. 2017-09-06 19:11:21 +02:00
crypto_sync.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
cryptomsg.c dev-disconnect: add blackhole option. 2017-09-06 19:11:21 +02:00
cryptomsg.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
daemon_conn.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
daemon_conn.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
debug.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
debug.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
derive_basepoints.c common: new directory for any shared objects. 2017-08-29 17:54:14 +02:00
derive_basepoints.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
dev_disconnect.c dev-disconnect: add blackhole option. 2017-09-06 19:11:21 +02:00
dev_disconnect.h dev-disconnect: add blackhole option. 2017-09-06 19:11:21 +02:00
funding_tx.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
funding_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
htlc.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
htlc_state.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
htlc_state.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
htlc_tx.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
htlc_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
htlc_wire.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
htlc_wire.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
initial_channel.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
initial_channel.h common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
initial_commit_tx.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
initial_commit_tx.h Makefiles: simplify dependencies. 2017-08-29 17:54:14 +02:00
json.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
json.h external: new subdirectory for all external libraries and submodules. 2017-08-29 17:54:14 +02:00
key_derive.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
key_derive.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
keyset.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
keyset.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
msg_queue.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
msg_queue.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
overflows.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
peer_failed.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
peer_failed.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
permute_tx.c common: new directory for any shared objects. 2017-08-29 17:54:14 +02:00
permute_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
ping.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
ping.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
pseudorand.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
pseudorand.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
sphinx.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
sphinx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
status.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
status.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
timeout.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
timeout.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
type_to_string.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
type_to_string.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
utils.c common: new directory for any shared objects. 2017-08-29 17:54:14 +02:00
utils.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
utxo.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
utxo.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
version.c common: new directory for any shared objects. 2017-08-29 17:54:14 +02:00
version.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
withdraw_tx.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00
withdraw_tx.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00