core-lightning/wallet/test
Rusty Russell bb7bbd03c5 lightningd: have json_stream_success start the "result" object.
"result" should always be an object (so that we can add new fields),
so make that implicit in json_stream_success.

This makes our primitives well-formed: we previously used NULL as our
fieldname when calling the first json_object_start, which is a hack
since we're actually in an object and the fieldname is 'result' (which
was already written by json_object_start).

There were only two cases which didn't do this:
1. dev-memdump returned an array.  No API guarantees on this.
2. shutdown returned a string.

I temporarily made shutdown return an empty object, which shouldn't
break anything, but I want to fix that later anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-12 02:00:15 +00:00
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
run-db.c ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
run-wallet.c lightningd: have json_stream_success start the "result" object. 2019-06-12 02:00:15 +00:00
test_utils.c chore: increase min-capacity-sat to 10k 2019-04-16 15:01:28 -07:00
test_utils.h fix: a pr2444 introduced valgrind complaint 2019-03-14 16:51:18 +01:00