Skip to content

Commit 09825ac

Browse files
committed
Update LDK dependency to 0.0.115
1 parent 040b0e4 commit 09825ac

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

Cargo.toml

+7-15
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ description = "A ready-to-go node implementation built using LDK."
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
#lightning = { version = "0.0.114", features = ["max_level_trace", "std"] }
13-
#lightning-invoice = { version = "0.22" }
14-
#lightning-net-tokio = { version = "0.0.114" }
15-
#lightning-persister = { version = "0.0.114" }
16-
#lightning-background-processor = { version = "0.0.114" }
17-
#lightning-rapid-gossip-sync = { version = "0.0.114" }
18-
#lightning-transaction-sync = { version = "0.0.114", features = ["esplora-async"] }
12+
lightning = { version = "0.0.115", features = ["max_level_trace", "std"] }
13+
lightning-invoice = { version = "0.23" }
14+
lightning-net-tokio = { version = "0.0.115" }
15+
lightning-persister = { version = "0.0.115" }
16+
lightning-background-processor = { version = "0.0.115" }
17+
lightning-rapid-gossip-sync = { version = "0.0.115" }
18+
lightning-transaction-sync = { version = "0.0.115", features = ["esplora-async-https"] }
1919

2020
#lightning = { git = "https://github.com/lightningdevkit/rust-lightning", branch="main", features = ["max_level_trace", "std"] }
2121
#lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", branch="main" }
@@ -25,14 +25,6 @@ description = "A ready-to-go node implementation built using LDK."
2525
#lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch="main" }
2626
#lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", branch="main", features = ["esplora-async"] }
2727

28-
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506", features = ["max_level_trace", "std"] }
29-
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506" }
30-
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506" }
31-
lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506" }
32-
lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506" }
33-
lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506" }
34-
lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev="2ebbe6f30467cd7f0688673f7bfbac297e5c3506", features = ["esplora-async"] }
35-
3628
#lightning = { path = "../rust-lightning/lightning", features = ["max_level_trace", "std"] }
3729
#lightning-invoice = { path = "../rust-lightning/lightning-invoice" }
3830
#lightning-net-tokio = { path = "../rust-lightning/lightning-net-tokio" }

src/event.rs

+1
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ where
351351
via_channel_id: _,
352352
via_user_channel_id: _,
353353
claim_deadline: _,
354+
onion_fields: _,
354355
} => {
355356
if let Some(info) = self.payment_store.get(&payment_hash) {
356357
if info.status == PaymentStatus::Succeeded {

src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ impl Node {
11911191
let route_params = RouteParameters { payment_params, final_value_msat: amount_msat };
11921192

11931193
let retry_strategy = Retry::Timeout(LDK_PAYMENT_RETRY_TIMEOUT);
1194-
let recipient_fields = RecipientOnionFields { payment_secret };
1194+
let recipient_fields = RecipientOnionFields { payment_secret, payment_metadata: None };
11951195

11961196
match self
11971197
.channel_manager
@@ -1259,7 +1259,8 @@ impl Node {
12591259
),
12601260
final_value_msat: amount_msat,
12611261
};
1262-
let recipient_fields = RecipientOnionFields { payment_secret: None };
1262+
let recipient_fields =
1263+
RecipientOnionFields { payment_secret: None, payment_metadata: None };
12631264

12641265
match self.channel_manager.send_spontaneous_payment_with_retry(
12651266
Some(payment_preimage),

0 commit comments

Comments
 (0)