Skip to content

Commit 9967e7d

Browse files
committed
doc: actually run the example generation.
This is `make update-doc-examples-newchain`, which creates the canned blocks (and, since it's the first time, the bitcoind wallet). Signed-off-by: Rusty Russell <[email protected]>
1 parent 3822cf0 commit 9967e7d

File tree

116 files changed

+7104
-3094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+7104
-3094
lines changed

contrib/msggen/msggen/schema.json

Lines changed: 3558 additions & 1553 deletions
Large diffs are not rendered by default.

doc/schemas/addpsbtoutput.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
}
9494
},
9595
"response": {
96-
"psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
96+
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==",
9797
"estimated_added_weight": 172,
98-
"outnum": 1
98+
"outnum": 0
9999
}
100100
},
101101
{
@@ -104,11 +104,11 @@
104104
"method": "addpsbtoutput",
105105
"params": [
106106
3333333,
107-
"cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"
107+
"cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA="
108108
]
109109
},
110110
"response": {
111-
"psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",
111+
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=",
112112
"estimated_added_weight": 172,
113113
"outnum": 1
114114
}
@@ -119,14 +119,14 @@
119119
"method": "addpsbtoutput",
120120
"params": {
121121
"satoshi": 3333333,
122-
"initialpsbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",
123-
"destination": "bcrt1p5201010101010101010101010101010101010101010101010101010101"
122+
"initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=",
123+
"destination": "bcrt1p52spc7t99z0wu444elxahxzkcu86gakzvnfp7ugudf567am2uspsuneuq9"
124124
}
125125
},
126126
"response": {
127-
"psbt": "cHNidP8BAgpsbt300303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303",
127+
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA",
128128
"estimated_added_weight": 172,
129-
"outnum": 1
129+
"outnum": 2
130130
}
131131
}
132132
]

doc/schemas/askrene-age.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"method": "askrene-age",
6868
"params": {
6969
"layer": "test_layers",
70-
"cutoff": 1738000000
70+
"cutoff": 1738000001
7171
}
7272
},
7373
"response": {

doc/schemas/askrene-bias-channel.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@
115115
"method": "askrene-bias-channel",
116116
"params": {
117117
"layer": "test_layers",
118-
"short_channel_id_dir": "109x1x1/1",
118+
"short_channel_id_dir": "110x1x0/1",
119119
"bias": 1
120120
}
121121
},
122122
"response": {
123123
"biases": [
124124
{
125125
"layer": "test_layers",
126-
"short_channel_id_dir": "109x1x1/1",
126+
"short_channel_id_dir": "110x1x0/1",
127127
"bias": 1
128128
}
129129
]
@@ -135,7 +135,7 @@
135135
"method": "askrene-bias-channel",
136136
"params": [
137137
"test_layers",
138-
"109x1x1/1",
138+
"110x1x0/1",
139139
-5,
140140
"bigger bias"
141141
]
@@ -144,7 +144,7 @@
144144
"biases": [
145145
{
146146
"layer": "test_layers",
147-
"short_channel_id_dir": "109x1x1/1",
147+
"short_channel_id_dir": "110x1x0/1",
148148
"description": "bigger bias",
149149
"bias": -5
150150
}

doc/schemas/askrene-create-channel.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"method": "askrene-create-channel",
7777
"params": {
7878
"layer": "test_layers",
79-
"source": "nodeid030303030303030303030303030303030303030303030303030303030303",
80-
"destination": "nodeid010101010101010101010101010101010101010101010101010101010101",
79+
"source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
80+
"destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
8181
"short_channel_id": "0x0x1",
8282
"capacity_msat": "1000000sat"
8383
}

doc/schemas/askrene-disable-node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"method": "askrene-disable-node",
5454
"params": {
5555
"layer": "test_layers",
56-
"node": "nodeid010101010101010101010101010101010101010101010101010101010101"
56+
"node": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518"
5757
}
5858
},
5959
"response": {}

doc/schemas/askrene-listlayers.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@
263263
"layer": "test_layers",
264264
"persistent": false,
265265
"disabled_nodes": [
266-
"nodeid010101010101010101010101010101010101010101010101010101010101"
266+
"0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518"
267267
],
268268
"created_channels": [
269269
{
270-
"source": "nodeid010101010101010101010101010101010101010101010101010101010101",
271-
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
270+
"source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
271+
"destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
272272
"short_channel_id": "0x0x1",
273273
"capacity_msat": 1000000000
274274
}
@@ -292,7 +292,7 @@
292292
],
293293
"biases": [
294294
{
295-
"short_channel_id_dir": "109x1x1/1",
295+
"short_channel_id_dir": "110x1x0/1",
296296
"description": "bigger bias",
297297
"bias": -5
298298
}
@@ -313,12 +313,12 @@
313313
"layer": "test_layers",
314314
"persistent": false,
315315
"disabled_nodes": [
316-
"nodeid010101010101010101010101010101010101010101010101010101010101"
316+
"0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518"
317317
],
318318
"created_channels": [
319319
{
320-
"source": "nodeid010101010101010101010101010101010101010101010101010101010101",
321-
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
320+
"source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
321+
"destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
322322
"short_channel_id": "0x0x1",
323323
"capacity_msat": 1000000000
324324
}
@@ -342,7 +342,7 @@
342342
],
343343
"biases": [
344344
{
345-
"short_channel_id_dir": "109x1x1/1",
345+
"short_channel_id_dir": "110x1x0/1",
346346
"description": "bigger bias",
347347
"bias": -5
348348
}

doc/schemas/askrene-listreservations.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,28 @@
7979
"response": {
8080
"reservations": [
8181
{
82-
"short_channel_id_dir": "109x1x1/1",
82+
"short_channel_id_dir": "110x1x0/1",
8383
"amount_msat": 1250000,
8484
"age_in_seconds": 2,
85-
"command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\""
85+
"command_id": "examples.py:askrene-reserve#1/cln:askrene-reserve#2"
8686
},
8787
{
88-
"short_channel_id_dir": "123x1x1/0",
89-
"amount_msat": 1250001,
88+
"short_channel_id_dir": "110x1x0/1",
89+
"amount_msat": 1250000000000,
9090
"age_in_seconds": 2,
91-
"command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\""
91+
"command_id": "examples.py:askrene-reserve#2/cln:askrene-reserve#3"
9292
},
9393
{
94-
"short_channel_id_dir": "109x1x1/1",
95-
"amount_msat": 1250000000000,
94+
"short_channel_id_dir": "124x1x1/0",
95+
"amount_msat": 1250001,
9696
"age_in_seconds": 2,
97-
"command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\""
97+
"command_id": "examples.py:askrene-reserve#3/cln:askrene-reserve#4"
9898
},
9999
{
100-
"short_channel_id_dir": "123x1x1/0",
100+
"short_channel_id_dir": "124x1x1/0",
101101
"amount_msat": 1250000000000,
102102
"age_in_seconds": 2,
103-
"command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\""
103+
"command_id": "examples.py:askrene-reserve#4/cln:askrene-reserve#5"
104104
}
105105
]
106106
}

doc/schemas/askrene-reserve.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
"params": {
6767
"path": [
6868
{
69-
"short_channel_id_dir": "109x1x1/1",
69+
"short_channel_id_dir": "110x1x0/1",
7070
"amount_msat": 1250000
7171
},
7272
{
73-
"short_channel_id_dir": "123x1x1/0",
73+
"short_channel_id_dir": "124x1x1/0",
7474
"amount_msat": 1250001
7575
}
7676
]
@@ -85,11 +85,11 @@
8585
"params": {
8686
"path": [
8787
{
88-
"short_channel_id_dir": "109x1x1/1",
88+
"short_channel_id_dir": "110x1x0/1",
8989
"amount_msat": 1250000000000
9090
},
9191
{
92-
"short_channel_id_dir": "123x1x1/0",
92+
"short_channel_id_dir": "124x1x1/0",
9393
"amount_msat": 1250000000000
9494
}
9595
]

doc/schemas/askrene-unreserve.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
"params": {
6767
"path": [
6868
{
69-
"short_channel_id_dir": "109x1x1/1",
69+
"short_channel_id_dir": "110x1x0/1",
7070
"amount_msat": 1250000
7171
},
7272
{
73-
"short_channel_id_dir": "123x1x1/0",
73+
"short_channel_id_dir": "124x1x1/0",
7474
"amount_msat": 1250001
7575
}
7676
]
@@ -85,11 +85,11 @@
8585
"params": {
8686
"path": [
8787
{
88-
"short_channel_id_dir": "109x1x1/1",
88+
"short_channel_id_dir": "110x1x0/1",
8989
"amount_msat": 1250000000000
9090
},
9191
{
92-
"short_channel_id_dir": "123x1x1/0",
92+
"short_channel_id_dir": "124x1x1/0",
9393
"amount_msat": 1250000000000
9494
}
9595
]

0 commit comments

Comments
 (0)