Skip to content

Commit 313c0f2

Browse files
committed
Add test vector for extended queries
1 parent 30485af commit 313c0f2

File tree

1 file changed

+263
-0
lines changed

1 file changed

+263
-0
lines changed

bolt07/extended-queries.json

+263
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
[
2+
{
3+
"hex": "01070f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206000186a0000005dc",
4+
"msg": {
5+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
6+
"firstBlockNum": 100000,
7+
"numberOfBlocks": 1500,
8+
"tlvStream": {
9+
"records": [],
10+
"unknown": []
11+
},
12+
"type": "QueryChannelRange"
13+
}
14+
},
15+
{
16+
"hex": "01070f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206000088b800000064010103",
17+
"msg": {
18+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
19+
"firstBlockNum": 35000,
20+
"numberOfBlocks": 100,
21+
"tlvStream": {
22+
"records": [
23+
"WANT_TIMESTAMPS | WANT_CHECKSUMS"
24+
],
25+
"unknown": []
26+
},
27+
"type": "QueryChannelRange"
28+
}
29+
},
30+
{
31+
"hex": "01080f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206000b8a06000005dc01001900000000000000008e0000000000003c69000000000045a6c4",
32+
"msg": {
33+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
34+
"complete": 1,
35+
"firstBlockNum": 756230,
36+
"numberOfBlocks": 1500,
37+
"shortChannelIds": {
38+
"array": [
39+
"0x0x142",
40+
"0x0x15465",
41+
"0x69x42692"
42+
],
43+
"encoding": "UNCOMPRESSED"
44+
},
45+
"type": "ReplyChannelRange"
46+
}
47+
},
48+
{
49+
"hex": "01080f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206000006400000006e01001601789c636000833e08659309a65878be010010a9023a",
50+
"msg": {
51+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
52+
"complete": 1,
53+
"firstBlockNum": 1600,
54+
"numberOfBlocks": 110,
55+
"shortChannelIds": {
56+
"array": [
57+
"0x0x142",
58+
"0x0x15465",
59+
"0x4x3318"
60+
],
61+
"encoding": "COMPRESSED_ZLIB"
62+
},
63+
"type": "ReplyChannelRange"
64+
}
65+
},
66+
{
67+
"hex": "01080f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e22060001ddde000005dc01001900000000000000304300000000000778d6000000000046e1c1011900000282c1000e77c5000778ad00490ab00000b57800955bff031800000457000008ae00000d050000115c000015b300001a0a",
68+
"msg": {
69+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
70+
"checksums": {
71+
"checksums": [
72+
{
73+
"checksum1": 1111,
74+
"checksum2": 2222
75+
},
76+
{
77+
"checksum1": 3333,
78+
"checksum2": 4444
79+
},
80+
{
81+
"checksum1": 5555,
82+
"checksum2": 6666
83+
}
84+
]
85+
},
86+
"complete": 1,
87+
"firstBlockNum": 122334,
88+
"numberOfBlocks": 1500,
89+
"shortChannelIds": {
90+
"array": [
91+
"0x0x12355",
92+
"0x7x30934",
93+
"0x70x57793"
94+
],
95+
"encoding": "UNCOMPRESSED"
96+
},
97+
"timestamps": {
98+
"encoding": "UNCOMPRESSED",
99+
"timestamps": [
100+
{
101+
"timestamp1": 164545,
102+
"timestamp2": 948165
103+
},
104+
{
105+
"timestamp1": 489645,
106+
"timestamp2": 4786864
107+
},
108+
{
109+
"timestamp1": 46456,
110+
"timestamp2": 9788415
111+
}
112+
]
113+
},
114+
"type": "ReplyChannelRange"
115+
}
116+
},
117+
{
118+
"hex": "01080f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e22060001ddde000005dc01001801789c63600001036730c55e710d4cbb3d3c080017c303b1012201789c63606a3ac8c0577e9481bd622d8327d7060686ad150c53a3ff0300554707db031800000457000008ae00000d050000115c000015b300001a0a",
119+
"msg": {
120+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
121+
"checksums": {
122+
"checksums": [
123+
{
124+
"checksum1": 1111,
125+
"checksum2": 2222
126+
},
127+
{
128+
"checksum1": 3333,
129+
"checksum2": 4444
130+
},
131+
{
132+
"checksum1": 5555,
133+
"checksum2": 6666
134+
}
135+
]
136+
},
137+
"complete": 1,
138+
"firstBlockNum": 122334,
139+
"numberOfBlocks": 1500,
140+
"shortChannelIds": {
141+
"array": [
142+
"0x0x12355",
143+
"0x7x30934",
144+
"0x70x57793"
145+
],
146+
"encoding": "COMPRESSED_ZLIB"
147+
},
148+
"timestamps": {
149+
"encoding": "COMPRESSED_ZLIB",
150+
"timestamps": [
151+
{
152+
"timestamp1": 164545,
153+
"timestamp2": 948165
154+
},
155+
{
156+
"timestamp1": 489645,
157+
"timestamp2": 4786864
158+
},
159+
{
160+
"timestamp1": 46456,
161+
"timestamp2": 9788415
162+
}
163+
]
164+
},
165+
"type": "ReplyChannelRange"
166+
}
167+
},
168+
{
169+
"hex": "01050f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206001900000000000000008e0000000000003c69000000000045a6c4",
170+
"msg": {
171+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
172+
"shortChannelIds": {
173+
"array": [
174+
"0x0x142",
175+
"0x0x15465",
176+
"0x69x42692"
177+
],
178+
"encoding": "UNCOMPRESSED"
179+
},
180+
"tlvStream": {
181+
"records": [],
182+
"unknown": []
183+
},
184+
"type": "QueryShortChannelIds"
185+
}
186+
},
187+
{
188+
"hex": "01050f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206001801789c63600001c12b608a69e73e30edbaec0800203b040e",
189+
"msg": {
190+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
191+
"shortChannelIds": {
192+
"array": [
193+
"0x0x4564",
194+
"0x2x47550",
195+
"0x69x42692"
196+
],
197+
"encoding": "COMPRESSED_ZLIB"
198+
},
199+
"tlvStream": {
200+
"records": [],
201+
"unknown": []
202+
},
203+
"type": "QueryShortChannelIds"
204+
}
205+
},
206+
{
207+
"hex": "01050f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e22060019000000000000002fc80000000000003cc4000000000045a6c4010c01789c6364620100000e0008",
208+
"msg": {
209+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
210+
"shortChannelIds": {
211+
"array": [
212+
"0x0x12232",
213+
"0x0x15556",
214+
"0x69x42692"
215+
],
216+
"encoding": "UNCOMPRESSED"
217+
},
218+
"tlvStream": {
219+
"records": [
220+
{
221+
"array": [
222+
1,
223+
2,
224+
4
225+
],
226+
"encoding": "COMPRESSED_ZLIB"
227+
}
228+
],
229+
"unknown": []
230+
},
231+
"type": "QueryShortChannelIds"
232+
}
233+
},
234+
{
235+
"hex": "01050f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206001801789c63600001f30a30c5b0cd144cb92e3b020017c6034a010c01789c6364620100000e0008",
236+
"msg": {
237+
"chainHash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
238+
"shortChannelIds": {
239+
"array": [
240+
"0x0x14200",
241+
"0x0x46645",
242+
"0x69x42692"
243+
],
244+
"encoding": "COMPRESSED_ZLIB"
245+
},
246+
"tlvStream": {
247+
"records": [
248+
{
249+
"array": [
250+
1,
251+
2,
252+
4
253+
],
254+
"encoding": "COMPRESSED_ZLIB"
255+
}
256+
],
257+
"unknown": []
258+
},
259+
"type": "QueryShortChannelIds"
260+
}
261+
}
262+
]
263+

0 commit comments

Comments
 (0)