rpc: populate the payment route taken in resp to SendPaymentSync

This commit is contained in:
Olaoluwa Osuntokun 2017-02-20 16:33:45 -08:00
parent 98ef563f40
commit 7669ac3918
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

View File

@ -1044,7 +1044,9 @@ func (r *rpcServer) SendPaymentSync(ctx context.Context,
return nil, err
}
return &lnrpc.SendResponse{}, nil
return &lnrpc.SendResponse{
PaymentRoute: marshalRoute(route),
}, nil
}
// AddInvoice attempts to add a new invoice to the invoice database. Any