Skip to content

Commit c41e3d8

Browse files
committed
fixup! Update ldk-node dependency
AI assistance: OpenAI Codex was used for this change.
1 parent d83d665 commit c41e3d8

16 files changed

Lines changed: 177 additions & 229 deletions

File tree

docs/api-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ These RPCs support a manual claim/fail workflow for held payments. See
113113
| RPC | Description |
114114
|------------------------|--------------------------------------------------------------------|
115115
| `Bolt11ReceiveForHash` | Create an invoice for a given payment hash (manual claim required) |
116-
| `Bolt11ClaimForHash` | Claim a held payment by providing the preimage |
117-
| `Bolt11FailForHash` | Reject a held payment |
116+
| `Bolt11ClaimForId` | Claim a held payment by its payment ID and preimage |
117+
| `Bolt11FailForId` | Reject a held payment by its payment ID |
118118

119119
### BOLT11 JIT Channels (LSPS2)
120120

@@ -231,11 +231,11 @@ optional Basic Auth. See [Configuration](configuration.md#metrics) for setup.
231231
Hodl invoices allow you to inspect and conditionally accept incoming payments:
232232

233233
1. **Create the invoice:** Call `Bolt11ReceiveForHash` with a payment hash you control.
234-
2. **Wait for payment:** Subscribe to events via `SubscribeEvents` and watch for a
235-
`PaymentClaimable` event matching your payment hash.
234+
2. **Wait for payment:** Subscribe via `SubscribeEvents`. Save the payment ID from the matching
235+
`PaymentClaimable` event.
236236
3. **Decide:**
237-
- **Accept:** Call `Bolt11ClaimForHash` with the preimage corresponding to the payment hash.
238-
- **Reject:** Call `Bolt11FailForHash` with the payment hash.
237+
- **Accept:** Call `Bolt11ClaimForId` with the payment ID and corresponding preimage.
238+
- **Reject:** Call `Bolt11FailForId` with the payment ID.
239239

240240
The payment is held in a pending state until you explicitly claim or fail it. **You must
241241
always call one of these.** If you do neither, the HTLC will eventually time out, which

e2e-tests/tests/e2e.rs

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,15 +1418,11 @@ async fn test_hodl_invoice_claim() {
14181418

14191419
setup_funded_channel(&bitcoind, &server_a, &server_b, 100_000).await;
14201420

1421-
// Test three claim variants: (preimage, amount, hash)
1422-
let test_cases: Vec<([u8; 32], Option<&str>, bool)> = vec![
1423-
([42u8; 32], Some("10000000msat"), true), // all args
1424-
([44u8; 32], Some("10000000msat"), false), // preimage + amount
1425-
([45u8; 32], None, true), // preimage + hash
1426-
([46u8; 32], None, false), // preimage only
1427-
];
1428-
1429-
for (preimage_bytes, amount, include_hash) in &test_cases {
1421+
// Test claiming with and without amount verification.
1422+
let test_cases: Vec<([u8; 32], Option<&str>)> =
1423+
vec![([42u8; 32], Some("10000000msat")), ([46u8; 32], None)];
1424+
1425+
for (preimage_bytes, amount) in &test_cases {
14301426
let preimage_hex = preimage_bytes.to_lower_hex_string();
14311427
let payment_hash_hex =
14321428
sha256::Hash::hash(preimage_bytes).to_byte_array().to_lower_hex_string();
@@ -1452,24 +1448,18 @@ async fn test_hodl_invoice_claim() {
14521448
// Wait for PaymentClaimable event on B (drain other events)
14531449
let claimable =
14541450
wait_for_event(&mut events_b, |e| matches!(e, Event::PaymentClaimable(_))).await;
1455-
assert!(matches!(
1456-
&claimable.event,
1457-
Some(Event::PaymentClaimable(event))
1458-
if event.claim_deadline.is_some()
1459-
&& event
1460-
.payment
1461-
.as_ref()
1462-
.is_some_and(|p| !p.payment_id.is_empty())
1463-
));
1451+
let Some(Event::PaymentClaimable(claimable_event)) = &claimable.event else {
1452+
panic!("expected PaymentClaimable");
1453+
};
1454+
assert!(claimable_event.claim_deadline.is_some());
1455+
assert!(!claimable_event.payment_id.is_empty());
14641456

14651457
// Claim the payment on B
1466-
let mut args: Vec<&str> = vec!["bolt11-claim-for-hash", &preimage_hex];
1458+
let mut args: Vec<&str> =
1459+
vec!["bolt11-claim-for-id", &claimable_event.payment_id, &preimage_hex];
14671460
if let Some(amt) = amount {
14681461
args.extend(["-c", amt]);
14691462
}
1470-
if *include_hash {
1471-
args.extend(["-p", &payment_hash_hex]);
1472-
}
14731463
run_cli(&server_b, &args);
14741464

14751465
// Wait for PaymentSuccessful on A after claim (drain other events)
@@ -1521,10 +1511,10 @@ async fn test_hodl_invoice_fail() {
15211511
let Some(Event::PaymentClaimable(claimable)) = &event_b.event else {
15221512
panic!("expected PaymentClaimable");
15231513
};
1524-
assert!(!claimable.payment.as_ref().unwrap().payment_id.is_empty());
1514+
assert!(!claimable.payment_id.is_empty());
15251515

15261516
// Fail the payment on B using CLI
1527-
run_cli(&server_b, &["bolt11-fail-for-hash", &payment_hash_hex]);
1517+
run_cli(&server_b, &["bolt11-fail-for-id", &claimable.payment_id]);
15281518

15291519
// Verify PaymentFailed on A
15301520
let event_a = wait_for_event(&mut events_a, |e| matches!(e, Event::PaymentFailed(_))).await;

ldk-server-cli/src/main.rs

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use ldk_server_client::error::LdkServerErrorCode::{
2323
AuthError, InternalError, InternalServerError, InvalidRequestError, LightningError,
2424
};
2525
use ldk_server_client::ldk_server_grpc::api::{
26-
Bolt11ClaimForHashRequest, Bolt11ClaimForHashResponse, Bolt11FailForHashRequest,
27-
Bolt11FailForHashResponse, Bolt11ReceiveForHashRequest, Bolt11ReceiveForHashResponse,
26+
Bolt11ClaimForIdRequest, Bolt11ClaimForIdResponse, Bolt11FailForIdRequest,
27+
Bolt11FailForIdResponse, Bolt11ReceiveForHashRequest, Bolt11ReceiveForHashResponse,
2828
Bolt11ReceiveRequest, Bolt11ReceiveResponse, Bolt11ReceiveVariableAmountViaJitChannelRequest,
2929
Bolt11ReceiveVariableAmountViaJitChannelResponse, Bolt11ReceiveViaJitChannelRequest,
3030
Bolt11ReceiveViaJitChannelResponse, Bolt11SendRequest, Bolt11SendResponse,
@@ -167,7 +167,9 @@ enum Commands {
167167
expiry_secs: Option<u32>,
168168
},
169169
#[command(about = "Claim a held payment by providing the preimage")]
170-
Bolt11ClaimForHash {
170+
Bolt11ClaimForId {
171+
#[arg(help = "The hex-encoded 32-byte payment ID from PaymentClaimable")]
172+
payment_id: String,
171173
#[arg(help = "The hex-encoded 32-byte payment preimage")]
172174
preimage: String,
173175
#[arg(
@@ -176,17 +178,11 @@ enum Commands {
176178
help = "The claimable amount, e.g. 50sat or 50000msat, only used for verifying we are claiming the expected amount"
177179
)]
178180
claimable_amount: Option<Amount>,
179-
#[arg(
180-
short,
181-
long,
182-
help = "The hex-encoded 32-byte payment hash, used to verify the preimage matches"
183-
)]
184-
payment_hash: Option<String>,
185181
},
186182
#[command(about = "Fail/reject a held payment")]
187-
Bolt11FailForHash {
188-
#[arg(help = "The hex-encoded 32-byte payment hash")]
189-
payment_hash: String,
183+
Bolt11FailForId {
184+
#[arg(help = "The hex-encoded 32-byte payment ID from PaymentClaimable")]
185+
payment_id: String,
190186
},
191187
#[command(about = "Create a fixed-amount BOLT11 invoice to receive via an LSPS2 JIT channel")]
192188
Bolt11ReceiveViaJitChannel {
@@ -744,20 +740,20 @@ async fn main() {
744740
client.bolt11_receive_for_hash(request).await,
745741
);
746742
},
747-
Commands::Bolt11ClaimForHash { preimage, claimable_amount, payment_hash } => {
748-
handle_response_result::<_, Bolt11ClaimForHashResponse>(
743+
Commands::Bolt11ClaimForId { payment_id, preimage, claimable_amount } => {
744+
handle_response_result::<_, Bolt11ClaimForIdResponse>(
749745
client
750-
.bolt11_claim_for_hash(Bolt11ClaimForHashRequest {
751-
payment_hash,
746+
.bolt11_claim_for_id(Bolt11ClaimForIdRequest {
747+
payment_id,
752748
claimable_amount_msat: claimable_amount.map(|a| a.to_msat()),
753749
preimage,
754750
})
755751
.await,
756752
);
757753
},
758-
Commands::Bolt11FailForHash { payment_hash } => {
759-
handle_response_result::<_, Bolt11FailForHashResponse>(
760-
client.bolt11_fail_for_hash(Bolt11FailForHashRequest { payment_hash }).await,
754+
Commands::Bolt11FailForId { payment_id } => {
755+
handle_response_result::<_, Bolt11FailForIdResponse>(
756+
client.bolt11_fail_for_id(Bolt11FailForIdRequest { payment_id }).await,
761757
);
762758
},
763759
Commands::Bolt11ReceiveViaJitChannel {

ldk-server-client/src/client.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use hyper::body::HttpBody as _;
1616
use hyper::{Body as HyperBody, Client as HyperClient, Request as HyperRequest, Version};
1717
use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};
1818
use ldk_server_grpc::api::{
19-
Bolt11ClaimForHashRequest, Bolt11ClaimForHashResponse, Bolt11FailForHashRequest,
20-
Bolt11FailForHashResponse, Bolt11ReceiveForHashRequest, Bolt11ReceiveForHashResponse,
19+
Bolt11ClaimForIdRequest, Bolt11ClaimForIdResponse, Bolt11FailForIdRequest,
20+
Bolt11FailForIdResponse, Bolt11ReceiveForHashRequest, Bolt11ReceiveForHashResponse,
2121
Bolt11ReceiveRequest, Bolt11ReceiveResponse, Bolt11ReceiveVariableAmountViaJitChannelRequest,
2222
Bolt11ReceiveVariableAmountViaJitChannelResponse, Bolt11ReceiveViaJitChannelRequest,
2323
Bolt11ReceiveViaJitChannelResponse, Bolt11SendRequest, Bolt11SendResponse,
@@ -42,7 +42,7 @@ use ldk_server_grpc::api::{
4242
VerifySignatureResponse,
4343
};
4444
use ldk_server_grpc::endpoints::{
45-
BOLT11_CLAIM_FOR_HASH_PATH, BOLT11_FAIL_FOR_HASH_PATH, BOLT11_RECEIVE_FOR_HASH_PATH,
45+
BOLT11_CLAIM_FOR_ID_PATH, BOLT11_FAIL_FOR_ID_PATH, BOLT11_RECEIVE_FOR_HASH_PATH,
4646
BOLT11_RECEIVE_PATH, BOLT11_RECEIVE_VARIABLE_AMOUNT_VIA_JIT_CHANNEL_PATH,
4747
BOLT11_RECEIVE_VIA_JIT_CHANNEL_PATH, BOLT11_SEND_PATH, BOLT11_SEND_UNDERPAYING_PATH,
4848
BOLT12_CREATE_PAYER_PROOF_PATH, BOLT12_RECEIVE_PATH, BOLT12_SEND_PATH, CLOSE_CHANNEL_PATH,
@@ -210,18 +210,18 @@ impl LdkServerClient {
210210
self.grpc_unary(&request, BOLT11_RECEIVE_FOR_HASH_PATH).await
211211
}
212212

213-
/// Manually claim a payment for a given payment hash.
214-
pub async fn bolt11_claim_for_hash(
215-
&self, request: Bolt11ClaimForHashRequest,
216-
) -> Result<Bolt11ClaimForHashResponse, LdkServerError> {
217-
self.grpc_unary(&request, BOLT11_CLAIM_FOR_HASH_PATH).await
213+
/// Manually claim a payment for a given payment ID.
214+
pub async fn bolt11_claim_for_id(
215+
&self, request: Bolt11ClaimForIdRequest,
216+
) -> Result<Bolt11ClaimForIdResponse, LdkServerError> {
217+
self.grpc_unary(&request, BOLT11_CLAIM_FOR_ID_PATH).await
218218
}
219219

220-
/// Manually fail a payment for a given payment hash.
221-
pub async fn bolt11_fail_for_hash(
222-
&self, request: Bolt11FailForHashRequest,
223-
) -> Result<Bolt11FailForHashResponse, LdkServerError> {
224-
self.grpc_unary(&request, BOLT11_FAIL_FOR_HASH_PATH).await
220+
/// Manually fail a payment for a given payment ID.
221+
pub async fn bolt11_fail_for_id(
222+
&self, request: Bolt11FailForIdRequest,
223+
) -> Result<Bolt11FailForIdResponse, LdkServerError> {
224+
self.grpc_unary(&request, BOLT11_FAIL_FOR_ID_PATH).await
225225
}
226226

227227
/// Retrieve a new fixed-amount BOLT11 invoice for receiving via an LSPS2 JIT channel.

ldk-server-grpc/src/api.rs

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ pub struct Bolt11ReceiveResponse {
191191
}
192192
/// Return a BOLT11 payable invoice for a given payment hash.
193193
/// The inbound payment will NOT be automatically claimed upon arrival.
194-
/// Instead, the payment will need to be manually claimed by calling `Bolt11ClaimForHash`
195-
/// or manually failed by calling `Bolt11FailForHash`.
194+
/// Instead, the payment will need to be manually claimed by calling `Bolt11ClaimForId`
195+
/// or manually failed by calling `Bolt11FailForId`.
196196
/// See more:
197197
/// - <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_for_hash>
198198
/// - <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_variable_amount_for_hash>
@@ -229,19 +229,18 @@ pub struct Bolt11ReceiveForHashResponse {
229229
#[prost(string, tag = "1")]
230230
pub invoice: ::prost::alloc::string::String,
231231
}
232-
/// Manually claim a payment for a given payment hash with the corresponding preimage.
232+
/// Manually claim a payment for a given payment ID with the corresponding preimage.
233233
/// This should be used to claim payments created via `Bolt11ReceiveForHash`.
234-
/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.claim_for_hash>
234+
/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.claim_for_id>
235235
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
236236
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
237237
#[cfg_attr(feature = "serde", serde(default))]
238238
#[allow(clippy::derive_partial_eq_without_eq)]
239239
#[derive(Clone, PartialEq, ::prost::Message)]
240-
pub struct Bolt11ClaimForHashRequest {
241-
/// The hex-encoded 32-byte payment hash.
242-
/// If provided, it will be used to verify that the preimage matches.
243-
#[prost(string, optional, tag = "1")]
244-
pub payment_hash: ::core::option::Option<::prost::alloc::string::String>,
240+
pub struct Bolt11ClaimForIdRequest {
241+
/// The hex-encoded 32-byte payment ID from `PaymentClaimable`.
242+
#[prost(string, tag = "1")]
243+
pub payment_id: ::prost::alloc::string::String,
245244
/// The amount in millisatoshi that is claimable.
246245
/// If not provided, skips amount verification.
247246
#[prost(uint64, optional, tag = "2")]
@@ -250,33 +249,33 @@ pub struct Bolt11ClaimForHashRequest {
250249
#[prost(string, tag = "3")]
251250
pub preimage: ::prost::alloc::string::String,
252251
}
253-
/// The response for the `Bolt11ClaimForHash` RPC. On failure, a gRPC error status is returned.
252+
/// The response for the `Bolt11ClaimForId` RPC. On failure, a gRPC error status is returned.
254253
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
255254
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
256255
#[cfg_attr(feature = "serde", serde(default))]
257256
#[allow(clippy::derive_partial_eq_without_eq)]
258257
#[derive(Clone, PartialEq, ::prost::Message)]
259-
pub struct Bolt11ClaimForHashResponse {}
260-
/// Manually fail a payment for a given payment hash.
258+
pub struct Bolt11ClaimForIdResponse {}
259+
/// Manually fail a payment for a given payment ID.
261260
/// This should be used to reject payments created via `Bolt11ReceiveForHash`.
262-
/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.fail_for_hash>
261+
/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.fail_for_id>
263262
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
264263
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
265264
#[cfg_attr(feature = "serde", serde(default))]
266265
#[allow(clippy::derive_partial_eq_without_eq)]
267266
#[derive(Clone, PartialEq, ::prost::Message)]
268-
pub struct Bolt11FailForHashRequest {
269-
/// The hex-encoded 32-byte payment hash.
267+
pub struct Bolt11FailForIdRequest {
268+
/// The hex-encoded 32-byte payment ID from `PaymentClaimable`.
270269
#[prost(string, tag = "1")]
271-
pub payment_hash: ::prost::alloc::string::String,
270+
pub payment_id: ::prost::alloc::string::String,
272271
}
273-
/// The response for the `Bolt11FailForHash` RPC. On failure, a gRPC error status is returned.
272+
/// The response for the `Bolt11FailForId` RPC. On failure, a gRPC error status is returned.
274273
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
275274
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
276275
#[cfg_attr(feature = "serde", serde(default))]
277276
#[allow(clippy::derive_partial_eq_without_eq)]
278277
#[derive(Clone, PartialEq, ::prost::Message)]
279-
pub struct Bolt11FailForHashResponse {}
278+
pub struct Bolt11FailForIdResponse {}
280279
/// Return a BOLT11 payable invoice that can be used to request and receive a payment via an
281280
/// LSPS2 just-in-time channel.
282281
/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_via_jit_channel>

ldk-server-grpc/src/endpoints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ pub const ONCHAIN_RECEIVE_PATH: &str = "OnchainReceive";
1616
pub const ONCHAIN_SEND_PATH: &str = "OnchainSend";
1717
pub const BOLT11_RECEIVE_PATH: &str = "Bolt11Receive";
1818
pub const BOLT11_RECEIVE_FOR_HASH_PATH: &str = "Bolt11ReceiveForHash";
19-
pub const BOLT11_CLAIM_FOR_HASH_PATH: &str = "Bolt11ClaimForHash";
20-
pub const BOLT11_FAIL_FOR_HASH_PATH: &str = "Bolt11FailForHash";
19+
pub const BOLT11_CLAIM_FOR_ID_PATH: &str = "Bolt11ClaimForId";
20+
pub const BOLT11_FAIL_FOR_ID_PATH: &str = "Bolt11FailForId";
2121
pub const BOLT11_RECEIVE_VIA_JIT_CHANNEL_PATH: &str = "Bolt11ReceiveViaJitChannel";
2222
pub const BOLT11_RECEIVE_VARIABLE_AMOUNT_VIA_JIT_CHANNEL_PATH: &str =
2323
"Bolt11ReceiveVariableAmountViaJitChannel";

ldk-server-grpc/src/proto/api.proto

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ message Bolt11ReceiveResponse {
157157

158158
// Return a BOLT11 payable invoice for a given payment hash.
159159
// The inbound payment will NOT be automatically claimed upon arrival.
160-
// Instead, the payment will need to be manually claimed by calling `Bolt11ClaimForHash`
161-
// or manually failed by calling `Bolt11FailForHash`.
160+
// Instead, the payment will need to be manually claimed by calling `Bolt11ClaimForId`
161+
// or manually failed by calling `Bolt11FailForId`.
162162
// See more:
163163
// - https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_for_hash
164164
// - https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_variable_amount_for_hash
@@ -187,14 +187,13 @@ message Bolt11ReceiveForHashResponse {
187187
string invoice = 1;
188188
}
189189

190-
// Manually claim a payment for a given payment hash with the corresponding preimage.
190+
// Manually claim a payment for a given payment ID with the corresponding preimage.
191191
// This should be used to claim payments created via `Bolt11ReceiveForHash`.
192-
// See more: https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.claim_for_hash
193-
message Bolt11ClaimForHashRequest {
192+
// See more: https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.claim_for_id
193+
message Bolt11ClaimForIdRequest {
194194

195-
// The hex-encoded 32-byte payment hash.
196-
// If provided, it will be used to verify that the preimage matches.
197-
optional string payment_hash = 1;
195+
// The hex-encoded 32-byte payment ID from `PaymentClaimable`.
196+
string payment_id = 1;
198197

199198
// The amount in millisatoshi that is claimable.
200199
// If not provided, skips amount verification.
@@ -204,20 +203,20 @@ message Bolt11ClaimForHashRequest {
204203
string preimage = 3;
205204
}
206205

207-
// The response for the `Bolt11ClaimForHash` RPC. On failure, a gRPC error status is returned.
208-
message Bolt11ClaimForHashResponse {}
206+
// The response for the `Bolt11ClaimForId` RPC. On failure, a gRPC error status is returned.
207+
message Bolt11ClaimForIdResponse {}
209208

210-
// Manually fail a payment for a given payment hash.
209+
// Manually fail a payment for a given payment ID.
211210
// This should be used to reject payments created via `Bolt11ReceiveForHash`.
212-
// See more: https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.fail_for_hash
213-
message Bolt11FailForHashRequest {
211+
// See more: https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.fail_for_id
212+
message Bolt11FailForIdRequest {
214213

215-
// The hex-encoded 32-byte payment hash.
216-
string payment_hash = 1;
214+
// The hex-encoded 32-byte payment ID from `PaymentClaimable`.
215+
string payment_id = 1;
217216
}
218217

219-
// The response for the `Bolt11FailForHash` RPC. On failure, a gRPC error status is returned.
220-
message Bolt11FailForHashResponse {}
218+
// The response for the `Bolt11FailForId` RPC. On failure, a gRPC error status is returned.
219+
message Bolt11FailForIdResponse {}
221220

222221
// Return a BOLT11 payable invoice that can be used to request and receive a payment via an
223222
// LSPS2 just-in-time channel.
@@ -968,10 +967,10 @@ service LightningNode {
968967
rpc Bolt11Receive(Bolt11ReceiveRequest) returns (Bolt11ReceiveResponse);
969968
// Return a BOLT11 payable invoice for a given payment hash.
970969
rpc Bolt11ReceiveForHash(Bolt11ReceiveForHashRequest) returns (Bolt11ReceiveForHashResponse);
971-
// Manually claim a payment for a given payment hash.
972-
rpc Bolt11ClaimForHash(Bolt11ClaimForHashRequest) returns (Bolt11ClaimForHashResponse);
973-
// Manually fail a payment for a given payment hash.
974-
rpc Bolt11FailForHash(Bolt11FailForHashRequest) returns (Bolt11FailForHashResponse);
970+
// Manually claim a payment for a given payment ID.
971+
rpc Bolt11ClaimForId(Bolt11ClaimForIdRequest) returns (Bolt11ClaimForIdResponse);
972+
// Manually fail a payment for a given payment ID.
973+
rpc Bolt11FailForId(Bolt11FailForIdRequest) returns (Bolt11FailForIdResponse);
975974
// Return a BOLT11 invoice for receiving via a JIT channel.
976975
rpc Bolt11ReceiveViaJitChannel(Bolt11ReceiveViaJitChannelRequest) returns (Bolt11ReceiveViaJitChannelResponse);
977976
// Return a variable-amount BOLT11 invoice for receiving via a JIT channel.

0 commit comments

Comments
 (0)