lnrpc: add htlc attempt id

This commit is contained in:
Joost Jager committed 2021-01-25 17:21:58 +01:00
1 parent 39f51b5568
commit 0ef0264d28
5 files changed
+795 -771

No files matched your search

+5
View File
@@ -524,6 +524,11 @@
"lnrpcHTLCAttempt": {
"type": "object",
"properties": {
"attempt_id": {
"type": "string",
"format": "uint64",
"description": "The unique ID that is used for this attempt."
},
"status": {
"$ref": "#/definitions/HTLCAttemptHTLCStatus",
"description": "The status of the HTLC."
+1
View File
@@ -861,6 +861,7 @@ func (r *RouterBackend) MarshalHTLCAttempt(
}
rpcAttempt := &lnrpc.HTLCAttempt{
AttemptId: htlc.AttemptID,
AttemptTimeNs: MarshalTimeNano(htlc.AttemptTime),
Route: route,
}