Skip to content

Commit 174f0a0

Browse files
committed
Update to latest ldk-node
1 parent 82cf511 commit 174f0a0

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

orange-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _cashu-tests = ["_test-utils", "cdk-ldk-node", "cdk/mint", "cdk-sqlite", "cdk-ax
2323
[dependencies]
2424
graduated-rebalancer = { path = "../graduated-rebalancer", version = "0.1.0" }
2525

26-
ldk-node = { git = "https://github.com/benthecarman/ldk-node.git", rev = "492e6eafcbe0e84f1e1b38268a4d9ad20337929d" }
26+
ldk-node = { git = "https://github.com/benthecarman/ldk-node.git", rev = "3ed1d13451239c54616e9f3fe75fa1f748807b15" }
2727
lightning-macros = "0.2.0-beta1"
2828
bitcoin-payment-instructions = { workspace = true }
2929
chrono = { version = "0.4", default-features = false }

orange-sdk/src/lightning_wallet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ impl LightningWallet {
302302
.inner
303303
.ldk_node
304304
.bolt12_payment()
305-
.send_using_amount(offer, amount.milli_sats(), None, None),
305+
.send_using_amount(offer, amount.milli_sats(), None, None, None),
306306
PaymentMethod::OnChain(address) => {
307307
let amount_sats = amount.sats().map_err(|_| NodeError::InvalidAmount)?;
308308

@@ -332,7 +332,7 @@ impl LightningWallet {
332332
self.inner.ldk_node.splice_out(
333333
&chan.user_channel_id,
334334
chan.counterparty_node_id,
335-
address.clone(),
335+
address,
336336
amount_sats,
337337
)?;
338338

orange-sdk/src/trusted_wallet/dummy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ impl TrustedWalletInterface for DummyTrustedWallet {
338338
let id = self
339339
.ldk_node
340340
.bolt12_payment()
341-
.send_using_amount(&offer, amount.milli_sats(), None, None)
341+
.send_using_amount(&offer, amount.milli_sats(), None, None, None)
342342
.unwrap()
343343
.0;
344344

orange-sdk/tests/test_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ fn create_lsp(uuid: Uuid, bitcoind: &Bitcoind) -> Arc<Node> {
142142
min_channel_lifetime: 10_000,
143143
min_channel_opening_fee_msat: 0,
144144
max_client_to_self_delay: 1024,
145+
client_trusts_lsp: true,
145146
};
146147
builder.set_liquidity_provider_lsps2(lsps2_service_config);
147148

0 commit comments

Comments
 (0)