Skip to content

Commit 7eec225

Browse files
committed
lightningd: fix up compile errors from bad merge.
The new listforwards was old-style, and the new API was merged. Signed-off-by: Rusty Russell <[email protected]>
1 parent 0dcd668 commit 7eec225

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lightningd/peer_htlcs.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ static const struct json_command dev_ignore_htlcs = {
18431843
AUTODATA(json_command, &dev_ignore_htlcs);
18441844
#endif /* DEVELOPER */
18451845

1846-
static void listforwardings_add_forwardings(struct json_result *response, struct wallet *wallet)
1846+
static void listforwardings_add_forwardings(struct json_stream *response, struct wallet *wallet)
18471847
{
18481848
const struct forwarding *forwardings;
18491849
forwardings = wallet_forwarded_payments_get(wallet, tmpctx);
@@ -1869,11 +1869,12 @@ static void listforwardings_add_forwardings(struct json_result *response, struct
18691869
static void json_listforwards(struct command *cmd, const char *buffer,
18701870
const jsmntok_t *params)
18711871
{
1872-
struct json_result *response = new_json_result(cmd);
1872+
struct json_stream *response;
18731873

18741874
if (!param(cmd, buffer, params, NULL))
18751875
return;
18761876

1877+
response = json_stream_success(cmd);
18771878
json_object_start(response, NULL);
18781879
listforwardings_add_forwardings(response, cmd->ld->wallet);
18791880
json_object_end(response);

lightningd/test/run-jsonrpc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ bool param(struct command *cmd UNNEEDED, const char *buffer UNNEEDED,
5252
/* Generated stub for version */
5353
const char *version(void)
5454
{ fprintf(stderr, "version called!\n"); abort(); }
55+
/* Generated stub for wallet_total_forward_fees */
56+
u64 wallet_total_forward_fees(struct wallet *w UNNEEDED)
57+
{ fprintf(stderr, "wallet_total_forward_fees called!\n"); abort(); }
5558
/* AUTOGENERATED MOCKS END */
5659

5760
bool deprecated_apis;

0 commit comments

Comments
 (0)