diff --git a/libs/Cargo.lock b/libs/Cargo.lock index 452e54580..4201176ad 100644 --- a/libs/Cargo.lock +++ b/libs/Cargo.lock @@ -1343,7 +1343,7 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "gl-client" version = "0.2.0" -source = "git+https://github.com/Blockstream/greenlight.git?rev=15a54334d913f6a009467f6ce0e43e4f6e2dee5f#15a54334d913f6a009467f6ce0e43e4f6e2dee5f" +source = "git+https://github.com/Blockstream/greenlight.git?rev=3c91b2e9667cc26b57ee316cbb99dc9bb8e1a866#3c91b2e9667cc26b57ee316cbb99dc9bb8e1a866" dependencies = [ "anyhow", "async-trait", diff --git a/libs/sdk-core/Cargo.toml b/libs/sdk-core/Cargo.toml index 274bb74e9..107f656d7 100644 --- a/libs/sdk-core/Cargo.toml +++ b/libs/sdk-core/Cargo.toml @@ -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" diff --git a/libs/sdk-core/src/greenlight/node_api.rs b/libs/sdk-core/src/greenlight/node_api.rs index bc334d44d..813fb478f 100644 --- a/libs/sdk-core/src/greenlight/node_api.rs +++ b/libs/sdk-core/src/greenlight/node_api.rs @@ -1135,6 +1135,8 @@ impl NodeAPI for Greenlight { ) -> NodeResult { 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, @@ -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)) diff --git a/tools/sdk-cli/Cargo.lock b/tools/sdk-cli/Cargo.lock index 4168cfd57..80f695761 100644 --- a/tools/sdk-cli/Cargo.lock +++ b/tools/sdk-cli/Cargo.lock @@ -1241,7 +1241,7 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "gl-client" version = "0.2.0" -source = "git+https://github.com/Blockstream/greenlight.git?rev=15a54334d913f6a009467f6ce0e43e4f6e2dee5f#15a54334d913f6a009467f6ce0e43e4f6e2dee5f" +source = "git+https://github.com/Blockstream/greenlight.git?rev=3c91b2e9667cc26b57ee316cbb99dc9bb8e1a866#3c91b2e9667cc26b57ee316cbb99dc9bb8e1a866" dependencies = [ "anyhow", "async-trait",