rgb-cln/wallet
Rusty Russell c956d9f5eb lightningd: tal memleak detection, dev-memleak command.
This is a primitive mark-and-sweep-style garbage detector.  The core is
in common/ for later use by subdaemons, but for now it's just lightningd.
We initialize it before most other allocations.

We walk the tal tree to get all the pointers, then search the `ld`
object for those pointers, recursing down.  Some specific helpers are
required for hashtables (which stash bits in the unused pointer bits,
so won't be found).

There's `notleak()` for annotating things that aren't leaks: things
like globals and timers, and other semi-transients.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-12-20 12:43:10 +01:00
..
test lightningd: tal memleak detection, dev-memleak command. 2017-12-20 12:43:10 +01:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
Makefile wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
db.c database: don't leak query string. 2017-12-13 22:46:10 +01:00
db.h db: make db_exec() an internal function. 2017-11-06 10:24:34 +01:00
wallet.c wallet: wallet_select_all to select everything. 2017-12-20 01:41:22 +00:00
wallet.h wallet: wallet_select_all to select everything. 2017-12-20 01:41:22 +00:00
walletrpc.c jsonrpc: make explicit call to indicate cmd is still pending. 2017-12-20 12:43:10 +01:00
walletrpc.h walletrpc: Implemented the withdrawal flow 2017-06-23 16:02:20 +09:30