rgb-cln/wallet
Rusty Russell 6a3ccafaf9 wallet: don't implicitly remove peers, but do it explicitly.
This provides a sanity check that we are in sync, and also keeps the
logic in the program and out of the SQL.

Since the destructor now doesn't clean up the peer, there are some
wider changes to be made when cleaning up.  Most notably we create
lots of channels in run-wallet.c and they previously freed the peer:
now we need free the peer explicitly, so we need to free them first.

Suggested-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-14 11:31:58 +01:00
..
test wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
Makefile invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
db.c db: don't allow newer db versions. 2018-02-14 11:31:58 +01:00
db.h pay: Save nodes and channels used on route to payment. 2018-02-01 00:46:06 +00:00
invoices.c invoices: Add expiration timer system. 2018-02-05 08:52:42 +00:00
invoices.h invoices: Add expiration timer system. 2018-02-05 08:52:42 +00:00
wallet.c wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
wallet.h wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
walletrpc.c lightningd: split struct peer into struct peer and struct channel. 2018-02-14 11:31:58 +01:00
walletrpc.h walletrpc: Implemented the withdrawal flow 2017-06-23 16:02:20 +09:30