core-lightning/wallet
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
..
test gossipd: keep reaching struct only when we're actively connecting, and don't retry 2018-04-26 05:47:57 +00:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c db: Added DB migrations to get the correct sync height 2018-04-25 14:33:38 +02:00
db.h wallet: use json_escaped for invoice label. 2018-03-26 00:20:53 +00:00
invoices.c invoice: Check duplicate preimage when explicitly sprcified. 2018-04-26 05:47:09 +00:00
invoices.h invoice: Check duplicate preimage when explicitly sprcified. 2018-04-26 05:47:09 +00:00
Makefile wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
txfilter.c Reduce variable scopes 2018-03-26 01:31:21 +00:00
txfilter.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00
wallet.c invoice: Check duplicate preimage when explicitly sprcified. 2018-04-26 05:47:09 +00:00
wallet.h invoice: Check duplicate preimage when explicitly sprcified. 2018-04-26 05:47:09 +00:00
walletrpc.c walletrpc: Refactor out encoding of pubkey to address. 2018-04-22 12:51:03 +02:00
walletrpc.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00