Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6c75e0b
pytest: test for splicing while channel is not announced yet.
rustyrussell Oct 2, 2025
23dbd46
lightningd: cancel watching original funding when we switch to the ne…
rustyrussell Oct 2, 2025
a281444
lightningd: fix crash in channel_control.
rustyrussell Oct 2, 2025
65a9736
pytest: add test that we notice height change of sendpsbt with no cha…
rustyrussell Oct 2, 2025
1c62048
wallet: make sure to watch all txids in transactions table.
rustyrussell Oct 2, 2025
39cc195
memleak: make notleak() work even before memleak is initalized.
rustyrussell Oct 2, 2025
0562ebf
common: add new_htable() macro to allocate, initialize and setup meml…
rustyrussell Oct 2, 2025
5a57ae8
lightningd: try harder to ensure uniqueness in --dev-save-plugin-io n…
rustyrussell Oct 2, 2025
b7f4b97
bitcoin: remove unused scriptpubkey_opreturn_padded.
rustyrussell Oct 2, 2025
ba34d99
autogenerate-rpc-examples.py: add examples for listchainmoves and lis…
rustyrussell Oct 2, 2025
7b03963
lightningd: remove unused `start_time` field in bitcoind_getfilteredb…
rustyrussell Oct 2, 2025
9fe47b1
tests: use timemono not time_now() for duration measurement.
rustyrussell Oct 2, 2025
c217e3a
lightningd: fix scb remote_to_self_delay information.
rustyrussell Oct 2, 2025
a4b0778
common: add randbytes() wrapper to override cryptographic entropy: $C…
rustyrussell Oct 2, 2025
da31fb4
global: replace randombytes_buf() with randbytes() wrapper.
rustyrussell Oct 2, 2025
7165e43
pseudorand: make the results in deterministic mode per-caller.
rustyrussell Oct 2, 2025
adb8890
gossipd: remove --dev-gossip-time setting, we'll use CLN_DEV_SET_TIME.
rustyrussell Oct 2, 2025
894d7d2
connectd, gossipd, pay, bcli: use timemono when solely measuring dura…
rustyrussell Oct 2, 2025
5351bf3
common/clock_time: wrapper for time_now() so we can override it.
rustyrussell Oct 2, 2025
cfccbca
global: use clock_time in place of time_now().
rustyrussell Oct 7, 2025
eab9fba
lightningd: introduce some changes for dual open id randomness even w…
rustyrussell Oct 7, 2025
638f4e4
wallet: make utxo order deterministic if CLN_DEV_ENTROPY_SEED set.
rustyrussell Oct 7, 2025
03aef52
topology: in deterministic mode, only return one best candidate for l…
rustyrussell Oct 7, 2025
7af1344
lightningd: add --dev-ignore-idb to not complain about bitcoind in in…
rustyrussell Oct 7, 2025
29e993d
pyln-testing: introduce canned blocks support to bitcoind fixture.
rustyrussell Oct 7, 2025
16e83b4
autogenerate-rpc-examples.py: disable entropy for generation.
rustyrussell Oct 7, 2025
d0ae8e3
autogenerate-rpc-examples.py: remove example mangling.
rustyrussell Oct 7, 2025
86f923b
autogenerate-rpc-examples.py: remove unused vars
rustyrussell Oct 7, 2025
0d935cd
tests/autogenerate-rpc-examples.py: always use largest UTXO for fundc…
rustyrussell Oct 7, 2025
e190807
autogenerate-rpc-examples.py: canned blocks.
rustyrussell Oct 7, 2025
26e0188
autogenerate-rpc-examples.py: ensure blockheights are consistent.
rustyrussell Oct 7, 2025
20a0f8c
autogenerate-rpc-examples.py: use fixed port numbers.
rustyrussell Oct 7, 2025
4d20798
autogenerate-rpc-examples.py: more refinement.
rustyrussell Oct 7, 2025
52cdce6
autogenerate-rpc-examples.py: more block generation and synchronization.
rustyrussell Oct 7, 2025
1576700
autogenerate-rpc-examples.py: rewrite problematic examples.
rustyrussell Oct 7, 2025
00f8c1c
doc: actually run the example generation.
rustyrussell Oct 7, 2025
c455c51
CI: re-enable docs examples checks.
rustyrussell Oct 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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]>
  • Loading branch information
rustyrussell committed Oct 7, 2025
commit 00f8c1cc4229893da40a220e1400312bf4310147
5,111 changes: 3,558 additions & 1,553 deletions contrib/msggen/msggen/schema.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions doc/schemas/addpsbtoutput.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
}
},
"response": {
"psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAA==",
"estimated_added_weight": 172,
"outnum": 1
"outnum": 0
}
},
{
Expand All @@ -104,11 +104,11 @@
"method": "addpsbtoutput",
"params": [
3333333,
"cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"
"cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA="
]
},
"response": {
"psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=",
"estimated_added_weight": 172,
"outnum": 1
}
Expand All @@ -119,14 +119,14 @@
"method": "addpsbtoutput",
"params": {
"satoshi": 3333333,
"initialpsbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",
"destination": "bcrt1p5201010101010101010101010101010101010101010101010101010101"
"initialpsbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=",
"destination": "bcrt1p52spc7t99z0wu444elxahxzkcu86gakzvnfp7ugudf567am2uspsuneuq9"
}
},
"response": {
"psbt": "cHNidP8BAgpsbt300303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQEDAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQABAwjV3DIAAAAAAAEEIlEgoqAceWUonu5Wtc/N25hWxw+kdsJk0h9xHGppr3dq5AMA",
"estimated_added_weight": 172,
"outnum": 1
"outnum": 2
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/askrene-age.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"method": "askrene-age",
"params": {
"layer": "test_layers",
"cutoff": 1738000000
"cutoff": 1738000001
}
},
"response": {
Expand Down
8 changes: 4 additions & 4 deletions doc/schemas/askrene-bias-channel.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@
"method": "askrene-bias-channel",
"params": {
"layer": "test_layers",
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"bias": 1
}
},
"response": {
"biases": [
{
"layer": "test_layers",
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"bias": 1
}
]
Expand All @@ -135,7 +135,7 @@
"method": "askrene-bias-channel",
"params": [
"test_layers",
"109x1x1/1",
"110x1x0/1",
-5,
"bigger bias"
]
Expand All @@ -144,7 +144,7 @@
"biases": [
{
"layer": "test_layers",
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"description": "bigger bias",
"bias": -5
}
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/askrene-create-channel.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"method": "askrene-create-channel",
"params": {
"layer": "test_layers",
"source": "nodeid030303030303030303030303030303030303030303030303030303030303",
"destination": "nodeid010101010101010101010101010101010101010101010101010101010101",
"source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
"destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
"short_channel_id": "0x0x1",
"capacity_msat": "1000000sat"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/askrene-disable-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"method": "askrene-disable-node",
"params": {
"layer": "test_layers",
"node": "nodeid010101010101010101010101010101010101010101010101010101010101"
"node": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518"
}
},
"response": {}
Expand Down
16 changes: 8 additions & 8 deletions doc/schemas/askrene-listlayers.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@
"layer": "test_layers",
"persistent": false,
"disabled_nodes": [
"nodeid010101010101010101010101010101010101010101010101010101010101"
"0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518"
],
"created_channels": [
{
"source": "nodeid010101010101010101010101010101010101010101010101010101010101",
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
"destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
"short_channel_id": "0x0x1",
"capacity_msat": 1000000000
}
Expand All @@ -292,7 +292,7 @@
],
"biases": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"description": "bigger bias",
"bias": -5
}
Expand All @@ -313,12 +313,12 @@
"layer": "test_layers",
"persistent": false,
"disabled_nodes": [
"nodeid010101010101010101010101010101010101010101010101010101010101"
"0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518"
],
"created_channels": [
{
"source": "nodeid010101010101010101010101010101010101010101010101010101010101",
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518",
"destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d",
"short_channel_id": "0x0x1",
"capacity_msat": 1000000000
}
Expand All @@ -342,7 +342,7 @@
],
"biases": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"description": "bigger bias",
"bias": -5
}
Expand Down
20 changes: 10 additions & 10 deletions doc/schemas/askrene-listreservations.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,28 +79,28 @@
"response": {
"reservations": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"amount_msat": 1250000,
"age_in_seconds": 2,
"command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\""
"command_id": "examples.py:askrene-reserve#1/cln:askrene-reserve#2"
},
{
"short_channel_id_dir": "123x1x1/0",
"amount_msat": 1250001,
"short_channel_id_dir": "110x1x0/1",
"amount_msat": 1250000000000,
"age_in_seconds": 2,
"command_id": "\"-c:askrene-reserve#62/cln:askrene-reserve#122\""
"command_id": "examples.py:askrene-reserve#2/cln:askrene-reserve#3"
},
{
"short_channel_id_dir": "109x1x1/1",
"amount_msat": 1250000000000,
"short_channel_id_dir": "124x1x1/0",
"amount_msat": 1250001,
"age_in_seconds": 2,
"command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\""
"command_id": "examples.py:askrene-reserve#3/cln:askrene-reserve#4"
},
{
"short_channel_id_dir": "123x1x1/0",
"short_channel_id_dir": "124x1x1/0",
"amount_msat": 1250000000000,
"age_in_seconds": 2,
"command_id": "\"-c:askrene-reserve#66/cln:askrene-reserve#126\""
"command_id": "examples.py:askrene-reserve#4/cln:askrene-reserve#5"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions doc/schemas/askrene-reserve.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"params": {
"path": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"amount_msat": 1250000
},
{
"short_channel_id_dir": "123x1x1/0",
"short_channel_id_dir": "124x1x1/0",
"amount_msat": 1250001
}
]
Expand All @@ -85,11 +85,11 @@
"params": {
"path": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"amount_msat": 1250000000000
},
{
"short_channel_id_dir": "123x1x1/0",
"short_channel_id_dir": "124x1x1/0",
"amount_msat": 1250000000000
}
]
Expand Down
8 changes: 4 additions & 4 deletions doc/schemas/askrene-unreserve.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"params": {
"path": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"amount_msat": 1250000
},
{
"short_channel_id_dir": "123x1x1/0",
"short_channel_id_dir": "124x1x1/0",
"amount_msat": 1250001
}
]
Expand All @@ -85,11 +85,11 @@
"params": {
"path": [
{
"short_channel_id_dir": "109x1x1/1",
"short_channel_id_dir": "110x1x0/1",
"amount_msat": 1250000000000
},
{
"short_channel_id_dir": "123x1x1/0",
"short_channel_id_dir": "124x1x1/0",
"amount_msat": 1250000000000
}
]
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/autoclean-once.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@
"response": {
"autoclean": {
"succeededpays": {
"cleaned": 7,
"uncleaned": 0
"cleaned": 0,
"uncleaned": 7
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/autoclean-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
},
"succeededpays": {
"enabled": false,
"cleaned": 7
"cleaned": 0
},
"failedpays": {
"enabled": false,
Expand Down
6 changes: 3 additions & 3 deletions doc/schemas/bkpr-channelsapy.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"response": {
"channels_apy": [
{
"account": "channelid0120000120000120000120000120000120000120000120000120000",
"account": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7",
"routed_out_msat": 1000000,
"routed_in_msat": 510091208,
"lease_fee_paid_msat": 0,
Expand All @@ -235,7 +235,7 @@
"apy_total": "0.0160%"
},
{
"account": "channelid0230000230000230000230000230000230000230000230000230000",
"account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
"routed_out_msat": 510190102,
"routed_in_msat": 0,
"lease_fee_paid_msat": 0,
Expand All @@ -256,7 +256,7 @@
"apy_total_initial": "0.0161%"
},
{
"account": "channelid0250000250000250000250000250000250000250000250000250000",
"account": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f",
"routed_out_msat": 500000000,
"routed_in_msat": 0,
"lease_fee_paid_msat": 0,
Expand Down
8 changes: 4 additions & 4 deletions doc/schemas/bkpr-editdescriptionbyoutpoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
"id": "example:bkpr-editdescriptionbyoutpoint#1",
"method": "bkpr-editdescriptionbyoutpoint",
"params": {
"outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1",
"outpoint": "0c609c5643e2f316985989417c48044311cf2c1fb2113a03af7d7d51b4874ac5:1",
"description": "edited utxo description"
}
},
Expand All @@ -284,9 +284,9 @@
"credit_msat": 200000000000,
"debit_msat": 0,
"currency": "bcrt",
"outpoint": "txidbk0101010101010101010101010101010101010101010101010101010101:1",
"timestamp": 1738510000,
"blockheight": 110,
"outpoint": "0c609c5643e2f316985989417c48044311cf2c1fb2113a03af7d7d51b4874ac5:1",
"timestamp": 1738000001,
"blockheight": 106,
"description": "edited utxo description"
}
]
Expand Down
8 changes: 4 additions & 4 deletions doc/schemas/bkpr-editdescriptionbypaymentid.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,23 +265,23 @@
"id": "example:bkpr-editdescriptionbypaymentid#1",
"method": "bkpr-editdescriptionbypaymentid",
"params": {
"payment_id": "paymentid0000202020202020202020202020202020202020202020202020202",
"payment_id": "f61aef012557d6496699642e71e2bacda5670b5377c6357fa40485813facc628",
"description": "edited invoice description from description send some sats l2 to l3"
}
},
"response": {
"updated": [
{
"account": "channelid0230000230000230000230000230000230000230000230000230000",
"account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2",
"type": "channel",
"tag": "invoice",
"credit_msat": 500000000,
"debit_msat": 0,
"currency": "bcrt",
"payment_id": "paymentid0000202020202020202020202020202020202020202020202020202",
"payment_id": "f61aef012557d6496699642e71e2bacda5670b5377c6357fa40485813facc628",
"part_id": 0,
"timestamp": 1738520000,
"description": "edited invoice description from description send some sats l2 to l3",
"timestamp": 1738000007,
"is_rebalance": false
}
]
Expand Down
10 changes: 5 additions & 5 deletions doc/schemas/bkpr-inspect.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,18 @@
"id": "example:bkpr-inspect#1",
"method": "bkpr-inspect",
"params": {
"account": "channelid0230200230200230200230200230200230200230200230200230200"
"account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3"
}
},
"response": {
"txs": [
{
"txid": "channeltxid230200230200230200230200230200230200230200230200230200",
"blockheight": 123,
"fees_paid_msat": 5020000,
"txid": "148a366c9a72e40af01daca6acc24e0a5648d0efb7e01f4708f23412d9deba69",
"blockheight": 124,
"fees_paid_msat": 6652000,
"outputs": [
{
"account": "channelid0230200230200230200230200230200230200230200230200230200",
"account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3",
"outnum": 1,
"output_tag": "channel_open",
"output_value_msat": 1000000000,
Expand Down
Loading