core-lightning/db
Rusty Russell 95f20a3978 lightningd, pyln-testing: do extra checks to make sure check *cannot* write to db.
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>
2023-10-26 12:59:55 +10:30
..
bindings.c db: remove #if DEVELOPER in favor of runtime flag inside db struct. 2023-09-21 20:08:24 +09:30
bindings.h channeld: Code to implement splicing 2023-07-31 21:00:22 +09:30
common.h lightningd, pyln-testing: do extra checks to make sure check *cannot* write to db. 2023-10-26 12:59:55 +10:30
db_postgres.c db: remove #if DEVELOPER in favor of runtime flag inside db struct. 2023-09-21 20:08:24 +09:30
db_sqlite3.c db: add generic warn/error function. 2023-07-09 16:49:48 +09:30
exec.c lightningd, pyln-testing: do extra checks to make sure check *cannot* write to db. 2023-10-26 12:59:55 +10:30
exec.h lightningd, pyln-testing: do extra checks to make sure check *cannot* write to db. 2023-10-26 12:59:55 +10:30
Makefile
utils.c lightningd, pyln-testing: do extra checks to make sure check *cannot* write to db. 2023-10-26 12:59:55 +10:30
utils.h db: remove #if DEVELOPER in favor of runtime flag inside db struct. 2023-09-21 20:08:24 +09:30