mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
lnrpc: add htlc attempt id
This commit is contained in:
parent
39f51b5568
commit
0ef0264d28
5 changed files with 795 additions and 771 deletions
|
@ -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."
|
||||
|
|
|
@ -861,6 +861,7 @@ func (r *RouterBackend) MarshalHTLCAttempt(
|
|||
}
|
||||
|
||||
rpcAttempt := &lnrpc.HTLCAttempt{
|
||||
AttemptId: htlc.AttemptID,
|
||||
AttemptTimeNs: MarshalTimeNano(htlc.AttemptTime),
|
||||
Route: route,
|
||||
}
|
||||
|
|
1552
lnrpc/rpc.pb.go
1552
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load diff
|
@ -3146,6 +3146,9 @@ message Payment {
|
|||
}
|
||||
|
||||
message HTLCAttempt {
|
||||
// The unique ID that is used for this attempt.
|
||||
uint64 attempt_id = 7;
|
||||
|
||||
enum HTLCStatus {
|
||||
IN_FLIGHT = 0;
|
||||
SUCCEEDED = 1;
|
||||
|
|
|
@ -3851,6 +3851,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."
|
||||
|
|
Loading…
Add table
Reference in a new issue