From f4d7c0b6de03813c4d85d493e1626eedecf2d3d2 Mon Sep 17 00:00:00 2001 From: amackillop Date: Fri, 26 Jun 2026 11:27:49 -0700 Subject: [PATCH] Fix LSPS4 test call sites against current API The integration_tests_rust target did not compile. PR #38 (b0dee51, "Carry a configured fee claim into register_node") added an issuer_pubkeys field to LSPS4ServiceConfig and a fee_claim argument to set_liquidity_source_lsps4, but left the test call sites on the old signatures. The PR #36 merge that rewrote the LSPS4 tier test branched before #38, so it reintroduced the stale 2-argument calls rather than fixing them. Pass issuer_pubkeys: vec![] (no key grants a non-standard fee policy, the default) and fee_claim None, matching what the service used before the field existed. Pure compile fix, no behaviour change. --- tests/integration_tests_rust.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests_rust.rs b/tests/integration_tests_rust.rs index 751410095..173bc33e1 100644 --- a/tests/integration_tests_rust.rs +++ b/tests/integration_tests_rust.rs @@ -2019,6 +2019,7 @@ async fn lsps4_client_service_integration() { channel_over_provisioning_ppm, forwarding_fee_proportional_millionths: forwarding_fee_ppm, channel_size_tiers: vec![], + issuer_pubkeys: vec![], }; let service_config = random_config(true); @@ -2034,7 +2035,7 @@ async fn lsps4_client_service_integration() { let client_config = random_config(true); setup_builder!(client_builder, client_config.node_config); client_builder.set_chain_source_esplora(esplora_url.clone(), Some(sync_config)); - client_builder.set_liquidity_source_lsps4(service_node_id, service_listen_addr); + client_builder.set_liquidity_source_lsps4(service_node_id, service_listen_addr, None); let client_node = client_builder.build().unwrap(); client_node.start().unwrap(); @@ -2169,6 +2170,7 @@ async fn lsps4_jit_channel_grows_via_splicing() { channel_over_provisioning_ppm: 0, forwarding_fee_proportional_millionths: forwarding_fee_ppm, channel_size_tiers: vec![100_000, 500_000, 1_000_000], + issuer_pubkeys: vec![], }; let service_config = random_config(true); @@ -2184,7 +2186,7 @@ async fn lsps4_jit_channel_grows_via_splicing() { let client_config = random_config(true); setup_builder!(client_builder, client_config.node_config); client_builder.set_chain_source_esplora(esplora_url.clone(), Some(sync_config)); - client_builder.set_liquidity_source_lsps4(service_node_id, service_listen_addr); + client_builder.set_liquidity_source_lsps4(service_node_id, service_listen_addr, None); let client_node = client_builder.build().unwrap(); client_node.start().unwrap();