Put an assertion inside db.c, and run every command we do (in testing) through a `check` variant. I inserted a deliberate bug (made addpsbtoutput call wallet_get_newindex() before returning when running `check`, and indeed, backtrace as expected. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
|---|---|---|
| .. | ||
| bindings.c | ||
| bindings.h | ||
| common.h | ||
| db_postgres.c | ||
| db_sqlite3.c | ||
| exec.c | ||
| exec.h | ||
| Makefile | ||
| utils.c | ||
| utils.h | ||