Skip to content

Commit ae1deb1

Browse files
committed
Move ldk-node dependency to github commit version.
1 parent 5840bad commit ae1deb1

File tree

4 files changed

+19
-41
lines changed

4 files changed

+19
-41
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- name: Pin packages to allow for MSRV
3535
if: matrix.msrv
3636
run: |
37-
cargo update -p hashlink --precise "0.8.2" --verbose # hashlink 0.8.3 requires hashbrown 0.14, requiring 1.64.0
3837
cargo update -p regex --precise "1.9.6" --verbose # regex 1.10.0 requires rustc 1.65.0
3938
cargo update -p home --precise "0.5.5" --verbose # home v0.5.9 requires rustc 1.70 or newer
4039
cargo update -p tokio --precise "1.38.1" --verbose # tokio v1.39.0 requires rustc 1.70 or newer

Cargo.lock

Lines changed: 15 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ldk-server/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
ldk-node = { version = "0.4.0", default-features = false }
7+
ldk-node = { git = "https://github.com/lightningdevkit/ldk-node.git", rev = "2095d878be10923845bcdd1dd039ab0e670e723d" }
88
serde = { version = "1.0.203", default-features = false, features = ["derive"] }
99
serde_json = { version = "1.0.118", default-features = false }
1010
hyper = { version = "1", default-features = false, features = ["server", "http1"] }
@@ -15,7 +15,7 @@ prost = { version = "0.11.6", default-features = false, features = ["std"] }
1515
ldk-server-protos = { path = "../ldk-server-protos" }
1616
bytes = "1.4.0"
1717
hex = { package = "hex-conservative", version = "0.2.1", default-features = false }
18-
rusqlite = { version = "0.28.0", features = ["bundled"] }
18+
rusqlite = { version = "0.31.0", features = ["bundled"] }
1919

2020
[dev-dependencies]
2121
rand = "0.8.5"

ldk-server/src/api/onchain_send.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ pub(crate) fn handle_onchain_send_request(
1717
(Some(amount_sats), None) => {
1818
node.onchain_payment().send_to_address(&address, amount_sats)?
1919
},
20-
(None, Some(true)) => node.onchain_payment().send_all_to_address(&address)?,
20+
// Retain existing api behaviour to not retain reserves on `send_all_to_address`.
21+
(None, Some(true)) => node.onchain_payment().send_all_to_address(&address, false)?,
2122
_ => return Err(ldk_node::NodeError::InvalidAmount),
2223
};
2324
let response = OnchainSendResponse { txid: txid.to_string() };

0 commit comments

Comments
 (0)