core-lightning/wallet/test
Rusty Russell 72c459dd6c gossipd: keep reaching struct only when we're actively connecting, and don't retry
1. Lifetime of 'struct reaching' now only while we're actively doing connect.
2. Always free after a single attempt: if it's an important peer, retry
   on a timer.
3. Have a single response message to master, rather than relying on
   peer_connected on success and other msgs on failure.
4. If we are actively connecting and we get another command for the same
   id, just increment the counter

The result is much simpler in the master daemon, and much nicer for
reconnection: if they say to connect they get an immediate response,
rather than waiting for 10 retries.  Even if it's an important peer,
it fires off another reconnect attempt, unless it's actively
connecting now.

This removes exponential backoff: that's restored in next patch.  It
also doesn't handle multiple addresses for a single peer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-04-26 05:47:57 +00:00
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile wallet/test: fix Makefile so test correctly depend on wallet files. 2018-04-04 02:31:41 +00:00
run-db.c wallet: use json_escaped for invoice label. 2018-03-26 00:20:53 +00:00
run-wallet.c gossipd: keep reaching struct only when we're actively connecting, and don't retry 2018-04-26 05:47:57 +00:00
test_utils.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00