Skip to content

Commit

Permalink
bump trampoline PR to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jul 8, 2024
1 parent 43fb528 commit 90bffef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/sdk-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hex = { workspace = true }
# The switch to 0.2 will happen with https://github.com/breez/breez-sdk/pull/724
gl-client = { git = "https://github.com/Blockstream/greenlight.git", features = [
"permissive",
], rev = "15a54334d913f6a009467f6ce0e43e4f6e2dee5f" }
], rev = "3c91b2e9667cc26b57ee316cbb99dc9bb8e1a866" }
zbase32 = "0.1.2"
base64 = { workspace = true }
chrono = "0.4"
Expand Down
5 changes: 5 additions & 0 deletions libs/sdk-core/src/greenlight/node_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,8 @@ impl NodeAPI for Greenlight {
) -> NodeResult<Payment> {
let invoice = parse_invoice(&bolt11)?;
validate_network(invoice.clone(), self.sdk_config.network)?;
let description = invoice.description;

let label = serde_json::to_string(&PaymentLabel {
trampoline: true,
client_label: label,
Expand All @@ -1147,6 +1149,9 @@ impl NodeAPI for Greenlight {
trmp_node_id: trampoline_node_id,
amount_msat,
label,
description: description.unwrap_or_default(),
maxdelay: 0,
maxfeepercent: 0.0,
};
let result = self
.with_keep_alive(client.trampoline_pay(request))
Expand Down
2 changes: 1 addition & 1 deletion tools/sdk-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90bffef

Please sign in to comment.