mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
lightningd: prepare internal json routines for listpeerchannels.
We're soon going to call json_add_unsaved_channel and json_add_uncommitted_channel from a new place, where we want the peer state directly included. Based on patch by @vincenzopalazzo. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -403,11 +403,15 @@ void json_add_u64(struct json_stream *result UNNEEDED, const char *fieldname UNN
|
||||
{ fprintf(stderr, "json_add_u64 called!\n"); abort(); }
|
||||
/* Generated stub for json_add_uncommitted_channel */
|
||||
void json_add_uncommitted_channel(struct json_stream *response UNNEEDED,
|
||||
const struct uncommitted_channel *uc UNNEEDED)
|
||||
const struct uncommitted_channel *uc UNNEEDED,
|
||||
/* Only set for listpeerchannels */
|
||||
const struct peer *peer UNNEEDED)
|
||||
{ fprintf(stderr, "json_add_uncommitted_channel called!\n"); abort(); }
|
||||
/* Generated stub for json_add_unsaved_channel */
|
||||
void json_add_unsaved_channel(struct json_stream *response UNNEEDED,
|
||||
const struct channel *channel UNNEEDED)
|
||||
const struct channel *channel UNNEEDED,
|
||||
/* Only set for listpeerchannels */
|
||||
const struct peer *peer UNNEEDED)
|
||||
{ fprintf(stderr, "json_add_unsaved_channel called!\n"); abort(); }
|
||||
/* Generated stub for json_array_end */
|
||||
void json_array_end(struct json_stream *js UNNEEDED)
|
||||
|
||||
Reference in New Issue
Block a user