Skip to content

tests: Add interoperability tests for BOLT12 (Offers) with CLN#905

Open
alexgrad42 wants to merge 1 commit into
lightningdevkit:mainfrom
alexgrad42:feature/add_bolt12_scenario_coverage_to_interop_tests
Open

tests: Add interoperability tests for BOLT12 (Offers) with CLN#905
alexgrad42 wants to merge 1 commit into
lightningdevkit:mainfrom
alexgrad42:feature/add_bolt12_scenario_coverage_to_interop_tests

Conversation

@alexgrad42
Copy link
Copy Markdown

Activates scenarios for BOLT12 offer payments between ldk-node and Core Lightning (CLN) inside integration tests

Fix #856

@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented May 17, 2026

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot ldk-reviews-bot requested a review from tnull May 17, 2026 09:54
@alexgrad42 alexgrad42 force-pushed the feature/add_bolt12_scenario_coverage_to_interop_tests branch 2 times, most recently from bf29202 to bd238f7 Compare May 17, 2026 10:22
Copy link
Copy Markdown
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! Some comments.

Comment thread tests/common/scenarios/mod.rs Outdated
Comment thread tests/common/scenarios/mod.rs Outdated
Comment thread tests/common/scenarios/mod.rs Outdated
Comment thread tests/common/scenarios/mod.rs Outdated
@alexgrad42 alexgrad42 force-pushed the feature/add_bolt12_scenario_coverage_to_interop_tests branch 3 times, most recently from a41fc0a to bb198e7 Compare May 19, 2026 16:21
Activates scenarios for BOLT12 offer payments between
ldk-node and Core Lightning (CLN) inside integration tests

Fix lightningdevkit#856
@alexgrad42 alexgrad42 force-pushed the feature/add_bolt12_scenario_coverage_to_interop_tests branch from bb198e7 to a6eddd4 Compare May 19, 2026 17:35
Comment thread tests/common/eclair.rs
async fn create_offer(
&self, amount_msat: u64, description: &str,
) -> Result<String, TestFailure> {
Err(self.make_error("create_offer is not supported on Eclair".to_string()))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think this shouldn't be true anymore, no? Can you double-check that the latest docker image really doesn't support BOLT12? If it does we should def. un-ignore the Eclair BOLT12 test coverage in this PR.

async fn test_splice_in() {
run_interop_scenario(setup_clients(), splice_in_scenario).await;
async fn test_splice_in_bolt11() {
run_interop_scenario(setup_clients(), splice_in_bolt12_scenario).await;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex:

  • [P3] Run the BOLT11 splice scenario — /home/tnull/workspace/ldk-node/tests/integration_tests_eclair.rs:87-87
    When the ignored Eclair splice test is run, this *_bolt11 test executes the BOLT12 splice scenario instead, so it never covers the BOLT11 path and will fail for Eclair's current lack of BOLT12 support. This should call splice_in_bolt11_scenario.

Comment thread tests/common/cln.rs
});

let response: serde_json::Value = self
.rpc(move |c| c.call("offer", params))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex:

  • [P1] Borrow CLN RPC parameter values — /home/tnull/workspace/ldk-node/tests/common/cln.rs:205-205
    Under the CLN integration build, LightningRPC::call takes the params by reference, matching the existing &json!(...)/&params call sites. Passing the new serde_json::Value by value here, and again for fetchinvoice, will fail to type-check under --cfg cln_test; pass a borrow instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add BOLT12 scenario coverage to interop test harness

3 participants