core-lightning/wallet
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
..
test lightningd: have json_stream_success start the "result" object. 2019-06-12 02:00:15 +00:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
db.h ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
invoices.c ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
invoices.h ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
Makefile wallet: fix Makefile to include correct dependencies. 2018-09-14 22:11:48 +02:00
txfilter.c txfilter: Migrate the list of owned scriptPubKeys into a hashset 2019-06-07 23:29:32 +00:00
txfilter.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
wallet.c ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
wallet.h ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
walletrpc.c lightningd: have json_stream_success start the "result" object. 2019-06-12 02:00:15 +00:00
walletrpc.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00