Skip to content

Commit a555133

Browse files
authored
Merge pull request #840 from tnull/2026-03-bump-ldk
Bump LDK to `49912057` and `bitcoin-payment-instructions` to `e9d7c07d`
2 parents 63c7f9b + ff231e3 commit a555133

File tree

5 files changed

+21
-23
lines changed

5 files changed

+21
-23
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 = "128ead25e8d62b0262b71711631220983c48756a", features = ["std"] }
43-
lightning-types = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a" }
44-
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a", features = ["std"] }
45-
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a" }
46-
lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a", features = ["tokio"] }
47-
lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a" }
48-
lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a" }
49-
lightning-block-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a", features = ["rest-client", "rpc-client", "tokio"] }
50-
lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a", features = ["esplora-async-https", "time", "electrum-rustls-ring"] }
51-
lightning-liquidity = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a", features = ["std"] }
52-
lightning-macros = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a" }
42+
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["std"] }
43+
lightning-types = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953" }
44+
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["std"] }
45+
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953" }
46+
lightning-persister = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["tokio"] }
47+
lightning-background-processor = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953" }
48+
lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953" }
49+
lightning-block-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["rest-client", "rpc-client", "tokio"] }
50+
lightning-transaction-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["esplora-async-https", "time", "electrum-rustls-ring"] }
51+
lightning-liquidity = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["std"] }
52+
lightning-macros = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953" }
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"]}
@@ -79,13 +79,13 @@ async-trait = { version = "0.1", default-features = false }
7979
vss-client = { package = "vss-client-ng", version = "0.5" }
8080
prost = { version = "0.11.6", default-features = false}
8181
#bitcoin-payment-instructions = { version = "0.6" }
82-
bitcoin-payment-instructions = { git = "https://github.com/carlaKC/bitcoin-payment-instructions", rev = "c22c9b836b70d4c915dd28701e11083a8b558d56" }
82+
bitcoin-payment-instructions = { git = "https://github.com/tnull/bitcoin-payment-instructions", rev = "e9d7c07d7affc7714b023c853a65771e45277467" }
8383

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

8787
[dev-dependencies]
88-
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "128ead25e8d62b0262b71711631220983c48756a", features = ["std", "_test_utils"] }
88+
lightning = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "49912057895ddfbd69d503de67c80d5576c09953", features = ["std", "_test_utils"] }
8989
rand = { version = "0.9.2", default-features = false, features = ["std", "thread_rng", "os_rng"] }
9090
proptest = "1.0.0"
9191
regex = "1.5.6"

bindings/ldk_node.udl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ dictionary LSPS1ChannelInfo {
300300
[Remote]
301301
enum LSPS1PaymentState {
302302
"ExpectPayment",
303+
"Hold",
303304
"Paid",
304305
"Refunded",
305306
};

src/builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,6 @@ fn build_with_store_internal(
17961796
Arc::clone(&wallet),
17971797
Arc::clone(&channel_manager),
17981798
Arc::clone(&keys_manager),
1799-
Arc::clone(&chain_source),
18001799
Arc::clone(&tx_broadcaster),
18011800
Arc::clone(&kv_store),
18021801
Arc::clone(&config),

src/liquidity.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use lightning_types::payment::PaymentHash;
3939
use tokio::sync::oneshot;
4040

4141
use crate::builder::BuildError;
42-
use crate::chain::ChainSource;
4342
use crate::connection::ConnectionManager;
4443
use crate::logger::{log_debug, log_error, log_info, LdkLogger, Logger};
4544
use crate::runtime::Runtime;
@@ -155,7 +154,6 @@ where
155154
wallet: Arc<Wallet>,
156155
channel_manager: Arc<ChannelManager>,
157156
keys_manager: Arc<KeysManager>,
158-
chain_source: Arc<ChainSource>,
159157
tx_broadcaster: Arc<Broadcaster>,
160158
kv_store: Arc<DynStore>,
161159
config: Arc<Config>,
@@ -168,8 +166,7 @@ where
168166
{
169167
pub(crate) fn new(
170168
wallet: Arc<Wallet>, channel_manager: Arc<ChannelManager>, keys_manager: Arc<KeysManager>,
171-
chain_source: Arc<ChainSource>, tx_broadcaster: Arc<Broadcaster>, kv_store: Arc<DynStore>,
172-
config: Arc<Config>, logger: L,
169+
tx_broadcaster: Arc<Broadcaster>, kv_store: Arc<DynStore>, config: Arc<Config>, logger: L,
173170
) -> Self {
174171
let lsps1_client = None;
175172
let lsps2_client = None;
@@ -181,7 +178,6 @@ where
181178
wallet,
182179
channel_manager,
183180
keys_manager,
184-
chain_source,
185181
tx_broadcaster,
186182
kv_store,
187183
config,
@@ -239,7 +235,12 @@ where
239235
let lsps2_service_config = Some(s.ldk_service_config.clone());
240236
let lsps5_service_config = None;
241237
let advertise_service = s.service_config.advertise_service;
242-
LiquidityServiceConfig { lsps2_service_config, lsps5_service_config, advertise_service }
238+
LiquidityServiceConfig {
239+
lsps1_service_config: None,
240+
lsps2_service_config,
241+
lsps5_service_config,
242+
advertise_service,
243+
}
243244
});
244245

245246
let lsps1_client_config = self.lsps1_client.as_ref().map(|s| s.ldk_client_config.clone());
@@ -256,8 +257,6 @@ where
256257
Arc::clone(&self.keys_manager),
257258
Arc::clone(&self.keys_manager),
258259
Arc::clone(&self.channel_manager),
259-
Some(Arc::clone(&self.chain_source)),
260-
None,
261260
Arc::clone(&self.kv_store),
262261
Arc::clone(&self.tx_broadcaster),
263262
liquidity_service_config,

src/types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ pub(crate) type LiquidityManager = lightning_liquidity::LiquidityManager<
231231
Arc<KeysManager>,
232232
Arc<KeysManager>,
233233
Arc<ChannelManager>,
234-
Arc<ChainSource>,
235234
Arc<DynStore>,
236235
DefaultTimeProvider,
237236
Arc<Broadcaster>,

0 commit comments

Comments
 (0)