Skip to content

Commit

Permalink
fixup! json-rpc: Include received and resolved time to listforward re…
Browse files Browse the repository at this point in the history
…sult
  • Loading branch information
cdecker committed Apr 4, 2019
1 parent f3815ee commit 10d749a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,11 +1907,13 @@ static void listforwardings_add_forwardings(struct json_stream *response, struct
* before we added the tracking, do not include it here. */
if (cur->received_time != 0) {
json_add_u64(response, "received_time", cur->received_time);
json_add_u64(response, "resolved_time", cur->resolved_time);
if (cur->resolved_time)
json_add_u64(response, "resolved_time", cur->resolved_time);
}
#else
json_add_u64(response, "received_time", cur->received_time);
json_add_u64(response, "resolved_time", cur->resolved_time);
if (cur->resolved_time)
json_add_u64(response, "resolved_time", cur->resolved_time);
#endif
json_object_end(response);
}
Expand Down

0 comments on commit 10d749a

Please sign in to comment.