Skip to content

Commit

Permalink
Merge pull request #4956 from joostjager/htlc-attempt-id
Browse files Browse the repository at this point in the history
lnrpc: add htlc attempt id
  • Loading branch information
cfromknecht authored Jan 28, 2021
2 parents 9614626 + 0ef0264 commit 626e732
Show file tree
Hide file tree
Showing 5 changed files with 795 additions and 771 deletions.
5 changes: 5 additions & 0 deletions lnrpc/routerrpc/router.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions lnrpc/routerrpc/router_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ func (r *RouterBackend) MarshalHTLCAttempt(
}

rpcAttempt := &lnrpc.HTLCAttempt{
AttemptId: htlc.AttemptID,
AttemptTimeNs: MarshalTimeNano(htlc.AttemptTime),
Route: route,
}
Expand Down
Loading

0 comments on commit 626e732

Please sign in to comment.