Skip to content

Commit 6ecbca1

Browse files
committed
Bump LDK to latest main
We bump our LDK dependency to commit 7fe3268475551b0664d315bfbc860416ca8fc774.
1 parent ba16c92 commit 6ecbca1

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ default = []
3939
#lightning-liquidity = { version = "0.2.0", features = ["std"] }
4040
#lightning-macros = { version = "0.2.0" }
4141

42-
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["std"] }
43-
lightning-types = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5" }
44-
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["std"] }
45-
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5" }
46-
lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["tokio"] }
47-
lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5" }
48-
lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5" }
49-
lightning-block-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["rest-client", "rpc-client", "tokio"] }
50-
lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["esplora-async-https", "time", "electrum-rustls-ring"] }
51-
lightning-liquidity = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["std"] }
52-
lightning-macros = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5" }
42+
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["std"] }
43+
lightning-types = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774" }
44+
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["std"] }
45+
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774" }
46+
lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["tokio"] }
47+
lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774" }
48+
lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774" }
49+
lightning-block-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["rest-client", "rpc-client", "tokio"] }
50+
lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["esplora-async-https", "time", "electrum-rustls-ring"] }
51+
lightning-liquidity = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["std"] }
52+
lightning-macros = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774" }
5353

5454
bdk_chain = { version = "0.23.0", default-features = false, features = ["std"] }
5555
bdk_esplora = { version = "0.22.0", default-features = false, features = ["async-https-rustls", "tokio"]}
@@ -78,13 +78,13 @@ log = { version = "0.4.22", default-features = false, features = ["std"]}
7878
vss-client = { package = "vss-client-ng", version = "0.4" }
7979
prost = { version = "0.11.6", default-features = false}
8080
#bitcoin-payment-instructions = { version = "0.6" }
81-
bitcoin-payment-instructions = { git = "https://github.com/tnull/bitcoin-payment-instructions", rev = "6796e87525d6c564e1332354a808730e2ba2ebf8" }
81+
bitcoin-payment-instructions = { git = "https://github.com/tnull/bitcoin-payment-instructions", rev = "b9f9991b42e9d71b3ca966818a93b158cf8f6c40" }
8282

8383
[target.'cfg(windows)'.dependencies]
8484
winapi = { version = "0.3", features = ["winbase"] }
8585

8686
[dev-dependencies]
87-
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e9ce486a425933041b319ac72512227353310dc5", features = ["std", "_test_utils"] }
87+
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "7fe3268475551b0664d315bfbc860416ca8fc774", features = ["std", "_test_utils"] }
8888
proptest = "1.0.0"
8989
regex = "1.5.6"
9090
criterion = { version = "0.7.0", features = ["async_tokio"] }

src/builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ use lightning::routing::scoring::{
3232
ProbabilisticScoringFeeParameters,
3333
};
3434
use lightning::sign::{EntropySource, NodeSigner};
35+
use lightning::util::config::HTLCInterceptionFlags;
3536
use lightning::util::persist::{
3637
KVStore, CHANNEL_MANAGER_PERSISTENCE_KEY, CHANNEL_MANAGER_PERSISTENCE_PRIMARY_NAMESPACE,
3738
CHANNEL_MANAGER_PERSISTENCE_SECONDARY_NAMESPACE,
@@ -1434,7 +1435,7 @@ fn build_with_store_internal(
14341435
if liquidity_source_config.and_then(|lsc| lsc.lsps2_service.as_ref()).is_some() {
14351436
// If we act as an LSPS2 service, we need to be able to intercept HTLCs and forward the
14361437
// information to the service handler.
1437-
user_config.accept_intercept_htlcs = true;
1438+
user_config.htlc_interception_flags = HTLCInterceptionFlags::ToInterceptSCIDs.into();
14381439

14391440
// If we act as an LSPS2 service, we allow forwarding to unannounced channels.
14401441
user_config.accept_forwards_to_priv_channels = true;

src/payment/bolt11.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ impl Bolt11Payment {
9898
}
9999

100100
let invoice = maybe_deref(invoice);
101-
let payment_hash = PaymentHash(invoice.payment_hash().to_byte_array());
102-
let payment_id = PaymentId(invoice.payment_hash().to_byte_array());
101+
let payment_hash = invoice.payment_hash();
102+
let payment_id = PaymentId(invoice.payment_hash().0);
103103
if let Some(payment) = self.payment_store.get(&payment_id) {
104104
if payment.status == PaymentStatus::Pending
105105
|| payment.status == PaymentStatus::Succeeded
@@ -204,8 +204,8 @@ impl Bolt11Payment {
204204
}
205205
}
206206

207-
let payment_hash = PaymentHash(invoice.payment_hash().to_byte_array());
208-
let payment_id = PaymentId(invoice.payment_hash().to_byte_array());
207+
let payment_hash = invoice.payment_hash();
208+
let payment_id = PaymentId(invoice.payment_hash().0);
209209
if let Some(payment) = self.payment_store.get(&payment_id) {
210210
if payment.status == PaymentStatus::Pending
211211
|| payment.status == PaymentStatus::Succeeded
@@ -494,7 +494,7 @@ impl Bolt11Payment {
494494
}
495495
};
496496

497-
let payment_hash = PaymentHash(invoice.payment_hash().to_byte_array());
497+
let payment_hash = invoice.payment_hash();
498498
let payment_secret = invoice.payment_secret();
499499
let id = PaymentId(payment_hash.0);
500500
let preimage = if manual_claim_payment_hash.is_none() {
@@ -712,7 +712,7 @@ impl Bolt11Payment {
712712
})?;
713713

714714
// Register payment in payment store.
715-
let payment_hash = PaymentHash(invoice.payment_hash().to_byte_array());
715+
let payment_hash = invoice.payment_hash();
716716
let payment_secret = invoice.payment_secret();
717717
let lsp_fee_limits = LSPFeeLimits {
718718
max_total_opening_fee_msat: lsp_total_opening_fee,

0 commit comments

Comments
 (0)