lnrpc: update docs on LookupHtlc
This commit is contained in:
4 files changed
+18
-3
No files matched your search
@@ -1355,7 +1355,9 @@ type LookupHtlcResponse struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Settled bool `protobuf:"varint,1,opt,name=settled,proto3" json:"settled,omitempty"`
|
// Settled is true is the htlc was settled. If false, the htlc was failed.
|
||||||
|
Settled bool `protobuf:"varint,1,opt,name=settled,proto3" json:"settled,omitempty"`
|
||||||
|
// Offchain indicates whether the htlc was resolved off-chain or on-chain.
|
||||||
Offchain bool `protobuf:"varint,2,opt,name=offchain,proto3" json:"offchain,omitempty"`
|
Offchain bool `protobuf:"varint,2,opt,name=offchain,proto3" json:"offchain,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -582,6 +582,10 @@ service Lightning {
|
|||||||
*/
|
*/
|
||||||
rpc ListAliases (ListAliasesRequest) returns (ListAliasesResponse);
|
rpc ListAliases (ListAliasesRequest) returns (ListAliasesResponse);
|
||||||
|
|
||||||
|
/*
|
||||||
|
LookupHtlc retrieves a final htlc resolution from the database. If the htlc
|
||||||
|
has no final resolution yet, a NotFound grpc status code is returned.
|
||||||
|
*/
|
||||||
rpc LookupHtlc (LookupHtlcRequest) returns (LookupHtlcResponse);
|
rpc LookupHtlc (LookupHtlcRequest) returns (LookupHtlcResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -592,8 +596,10 @@ message LookupHtlcRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message LookupHtlcResponse {
|
message LookupHtlcResponse {
|
||||||
|
// Settled is true is the htlc was settled. If false, the htlc was failed.
|
||||||
bool settled = 1;
|
bool settled = 1;
|
||||||
|
|
||||||
|
// Offchain indicates whether the htlc was resolved off-chain or on-chain.
|
||||||
bool offchain = 2;
|
bool offchain = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1603,6 +1603,7 @@
|
|||||||
},
|
},
|
||||||
"/v1/htlc/{chan_id}/{htlc_index}": {
|
"/v1/htlc/{chan_id}/{htlc_index}": {
|
||||||
"get": {
|
"get": {
|
||||||
|
"summary": "LookupHtlc retrieves a final htlc resolution from the database. If the htlc\nhas no final resolution yet, a NotFound grpc status code is returned.",
|
||||||
"operationId": "Lightning_LookupHtlc",
|
"operationId": "Lightning_LookupHtlc",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
@@ -5440,10 +5441,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"settled": {
|
"settled": {
|
||||||
"type": "boolean"
|
"type": "boolean",
|
||||||
|
"description": "Settled is true is the htlc was settled. If false, the htlc was failed."
|
||||||
},
|
},
|
||||||
"offchain": {
|
"offchain": {
|
||||||
"type": "boolean"
|
"type": "boolean",
|
||||||
|
"description": "Offchain indicates whether the htlc was resolved off-chain or on-chain."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -402,6 +402,8 @@ type LightningClient interface {
|
|||||||
// their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
// their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
||||||
// zero conf).
|
// zero conf).
|
||||||
ListAliases(ctx context.Context, in *ListAliasesRequest, opts ...grpc.CallOption) (*ListAliasesResponse, error)
|
ListAliases(ctx context.Context, in *ListAliasesRequest, opts ...grpc.CallOption) (*ListAliasesResponse, error)
|
||||||
|
// LookupHtlc retrieves a final htlc resolution from the database. If the htlc
|
||||||
|
// has no final resolution yet, a NotFound grpc status code is returned.
|
||||||
LookupHtlc(ctx context.Context, in *LookupHtlcRequest, opts ...grpc.CallOption) (*LookupHtlcResponse, error)
|
LookupHtlc(ctx context.Context, in *LookupHtlcRequest, opts ...grpc.CallOption) (*LookupHtlcResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1701,6 +1703,8 @@ type LightningServer interface {
|
|||||||
// their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
// their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
||||||
// zero conf).
|
// zero conf).
|
||||||
ListAliases(context.Context, *ListAliasesRequest) (*ListAliasesResponse, error)
|
ListAliases(context.Context, *ListAliasesRequest) (*ListAliasesResponse, error)
|
||||||
|
// LookupHtlc retrieves a final htlc resolution from the database. If the htlc
|
||||||
|
// has no final resolution yet, a NotFound grpc status code is returned.
|
||||||
LookupHtlc(context.Context, *LookupHtlcRequest) (*LookupHtlcResponse, error)
|
LookupHtlc(context.Context, *LookupHtlcRequest) (*LookupHtlcResponse, error)
|
||||||
mustEmbedUnimplementedLightningServer()
|
mustEmbedUnimplementedLightningServer()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user