lnrpc: add htlc attempt id
This commit is contained in:
1 parent
39f51b5568
commit
0ef0264d28
5 files changed
+795
-771
No files matched your search
@@ -524,6 +524,11 @@
|
|||||||
"lnrpcHTLCAttempt": {
|
"lnrpcHTLCAttempt": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"attempt_id": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uint64",
|
||||||
|
"description": "The unique ID that is used for this attempt."
|
||||||
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"$ref": "#/definitions/HTLCAttemptHTLCStatus",
|
"$ref": "#/definitions/HTLCAttemptHTLCStatus",
|
||||||
"description": "The status of the HTLC."
|
"description": "The status of the HTLC."
|
||||||
|
|||||||
@@ -861,6 +861,7 @@ func (r *RouterBackend) MarshalHTLCAttempt(
|
|||||||
}
|
}
|
||||||
|
|
||||||
rpcAttempt := &lnrpc.HTLCAttempt{
|
rpcAttempt := &lnrpc.HTLCAttempt{
|
||||||
|
AttemptId: htlc.AttemptID,
|
||||||
AttemptTimeNs: MarshalTimeNano(htlc.AttemptTime),
|
AttemptTimeNs: MarshalTimeNano(htlc.AttemptTime),
|
||||||
Route: route,
|
Route: route,
|
||||||
}
|
}
|
||||||
|
|||||||
+781
-771
File diff suppressed because it is too large.
Load diff
@@ -3146,6 +3146,9 @@ message Payment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message HTLCAttempt {
|
message HTLCAttempt {
|
||||||
|
// The unique ID that is used for this attempt.
|
||||||
|
uint64 attempt_id = 7;
|
||||||
|
|
||||||
enum HTLCStatus {
|
enum HTLCStatus {
|
||||||
IN_FLIGHT = 0;
|
IN_FLIGHT = 0;
|
||||||
SUCCEEDED = 1;
|
SUCCEEDED = 1;
|
||||||
|
|||||||
@@ -3851,6 +3851,11 @@
|
|||||||
"lnrpcHTLCAttempt": {
|
"lnrpcHTLCAttempt": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"attempt_id": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uint64",
|
||||||
|
"description": "The unique ID that is used for this attempt."
|
||||||
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"$ref": "#/definitions/HTLCAttemptHTLCStatus",
|
"$ref": "#/definitions/HTLCAttemptHTLCStatus",
|
||||||
"description": "The status of the HTLC."
|
"description": "The status of the HTLC."
|
||||||
|
|||||||
Reference in new issue
Block a user