core-lightning/wallet/test
Rusty Russell 425a7af512 common/coin_mvt: clean up API a little.
1. tal_strndup(.., str, strlen(str)) == tal_strdup()
2. tal_strdup also takes(), so document that.
3. Avoid passing 'struct sha256' on the stack: use ptr.
4. Generally, structures shouldn't keep pointers to things they don't own.
   In this case, mvt->node_id.
5. Make payment_hash a pointer, since NULL is more natural than an all-zero
   hash.

And add NON_NULL_ARGS() to the functions; it's cumbersome, but make it
fairly clear what params are optional.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-12-30 14:36:55 +10:30
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
run-db.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
run-wallet.c common/coin_mvt: clean up API a little. 2021-12-30 14:36:55 +10:30
test_utils.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
test_utils.h check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30