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
..
2021-12-30 09:50:40 +10:30
2021-10-28 15:51:38 +02:00
2021-12-06 10:05:39 +10:30
2021-10-15 12:09:36 +02:00
2021-12-28 04:42:42 +10:30
2021-09-17 09:43:22 +09:30
2021-12-30 09:50:40 +10:30
2021-12-06 10:05:39 +10:30
2021-01-10 13:44:04 +01:00
2021-12-30 14:36:55 +10:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2021-09-15 18:23:30 +02:00
2021-12-30 14:36:55 +10:30
2021-12-28 04:42:42 +10:30
2021-12-30 14:36:55 +10:30
2021-12-06 10:05:39 +10:30
2021-12-06 10:05:39 +10:30
2021-12-28 04:42:42 +10:30
2021-06-03 16:16:34 +09:30
2021-12-06 10:05:39 +10:30
2019-09-25 04:01:56 +00:00
2021-12-15 12:24:54 +10:30
2021-09-17 09:43:22 +09:30
2021-12-30 14:36:55 +10:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2020-09-08 09:42:00 +09:30
2021-12-06 10:05:39 +10:30
2020-09-08 09:42:00 +09:30
2021-12-14 09:33:10 +10:30
2019-05-31 17:57:10 +02:00
2021-12-06 10:05:39 +10:30
2020-08-11 08:39:24 +09:30
2021-12-06 10:05:39 +10:30
2021-11-30 13:34:44 +10:30
2021-12-30 09:50:40 +10:30
2021-12-30 09:50:40 +10:30
2021-12-06 10:05:39 +10:30
2021-09-17 09:43:22 +09:30
2021-12-30 14:36:55 +10:30
2021-11-27 10:38:13 +10:30
2021-12-06 10:05:39 +10:30
2021-12-06 10:05:39 +10:30
2021-09-17 09:43:22 +09:30
2021-12-30 14:36:55 +10:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2021-12-28 04:42:42 +10:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2021-12-01 05:44:28 +10:30
2021-12-30 09:50:40 +10:30
2021-10-15 12:09:36 +02:00
2021-12-30 09:50:40 +10:30
2021-06-03 16:16:34 +09:30
2021-12-30 09:50:40 +10:30
2021-09-17 09:43:22 +09:30
2021-12-30 14:36:55 +10:30
2021-09-17 09:43:22 +09:30
2021-12-28 04:42:42 +10:30
2021-09-17 09:43:22 +09:30
2021-12-28 04:42:42 +10:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2018-09-14 22:11:23 +02:00
2021-12-06 10:05:39 +10:30
2021-06-25 09:49:33 +09:30
2021-12-14 09:33:10 +10:30
2021-09-17 09:43:22 +09:30
2021-12-14 09:33:10 +10:30
2021-12-14 09:33:10 +10:30
2021-12-06 10:05:39 +10:30
2021-06-16 10:29:17 +09:30
2021-12-06 10:05:39 +10:30
2021-12-30 14:36:55 +10:30
2021-12-30 09:50:40 +10:30
2021-12-06 10:05:39 +10:30
2021-10-15 12:09:36 +02:00