File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ static void payment_succeeded(struct payment *payment,
374374 const struct attempt * attempt )
375375{
376376 struct json_stream * js ;
377+ struct node_id dst ;
377378
378379 /* Only succeed once */
379380 if (payment -> cmd ) {
@@ -384,6 +385,8 @@ static void payment_succeeded(struct payment *payment,
384385 /* Pay's schema expects these fields */
385386 if (payment -> pay_compat ) {
386387 json_add_u64 (js , "parts" , payment -> total_num_attempts );
388+ node_id_from_pubkey (& dst , & payment -> destination );
389+ json_add_node_id (js , "destination" , & dst );
387390 json_add_sha256 (js , "payment_hash" , & payment -> payment_hash );
388391 json_add_string (js , "status" , "complete" );
389392 json_add_u64 (js , "created_at" , (u64 )payment -> start_time .ts .tv_sec );
You can’t perform that action at this time.
0 commit comments