Skip to content

Commit 133878e

Browse files
pinheadmzclaude
andcommitted
test: open channels from all implementations in one block
Add a channel opened by CLN and a second channel opened by the same LDK node to block 503, which already has channel opens from LDK and lnd. This checks that funding transactions from all four implementations land at their index in one block, and covers LDK's one-at-a-time channel opens per node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6404e33 commit 133878e

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎test/data/ln_mixed/network.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ nodes:
5656
target: tank-0003-ln
5757
capacity: 100000
5858
push_amt: 50000
59+
# Block 503 has channel opens from all four implementations
60+
- id:
61+
block: 503
62+
index: 3
63+
target: tank-0000-ln
64+
capacity: 100000
65+
push_amt: 50000
5966

6067
- name: tank-0003
6168
addnode:
@@ -95,6 +102,13 @@ nodes:
95102
target: tank-0002-ln
96103
capacity: 100000
97104
push_amt: 50000
105+
# Opened after the first one, which LDK's wallet must have seen first
106+
- id:
107+
block: 503
108+
index: 4
109+
target: tank-0003-ln
110+
capacity: 100000
111+
push_amt: 50000
98112

99113
- name: tank-0006
100114
addnode:

‎test/ln_mixed_test.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
(502, 1, "tank-0003-ln", "tank-0000-ln"),
2929
(503, 1, "tank-0005-ln", "tank-0002-ln"),
3030
(503, 2, "tank-0000-ln", "tank-0006-ln"),
31+
(503, 3, "tank-0002-ln", "tank-0000-ln"),
32+
(503, 4, "tank-0005-ln", "tank-0003-ln"),
3133
]
3234

3335

0 commit comments

Comments
 (0)