From 80e7c7d096d289f7581982dcb2e71769b38c0f2d Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Thu, 8 Aug 2024 14:00:34 -0700 Subject: [PATCH] doc: Fixing example values --- doc/schemas/lightning-addpsbtoutput.json | 6 +- doc/schemas/lightning-bkpr-channelsapy.json | 24 +- doc/schemas/lightning-bkpr-inspect.json | 14 +- .../lightning-bkpr-listaccountevents.json | 296 +-- doc/schemas/lightning-bkpr-listbalances.json | 6 +- doc/schemas/lightning-bkpr-listincome.json | 188 +- doc/schemas/lightning-check.json | 4 +- doc/schemas/lightning-close.json | 8 +- doc/schemas/lightning-commando.json | 18 +- doc/schemas/lightning-connect.json | 8 +- doc/schemas/lightning-createinvoice.json | 8 +- doc/schemas/lightning-createonion.json | 22 +- doc/schemas/lightning-decode.json | 12 +- doc/schemas/lightning-decodepay.json | 12 +- doc/schemas/lightning-delforward.json | 4 +- doc/schemas/lightning-delinvoice.json | 16 +- doc/schemas/lightning-delpay.json | 30 +- doc/schemas/lightning-dev-forget-channel.json | 6 +- .../lightning-disableinvoicerequest.json | 6 +- doc/schemas/lightning-disableoffer.json | 6 +- doc/schemas/lightning-emergencyrecover.json | 6 +- doc/schemas/lightning-fetchinvoice.json | 8 +- doc/schemas/lightning-fundchannel.json | 12 +- .../lightning-fundchannel_complete.json | 8 +- doc/schemas/lightning-fundpsbt.json | 4 +- doc/schemas/lightning-getinfo.json | 19 +- doc/schemas/lightning-getlog.json | 28 +- doc/schemas/lightning-getroute.json | 8 +- doc/schemas/lightning-invoice.json | 16 +- doc/schemas/lightning-invoicerequest.json | 8 +- doc/schemas/lightning-keysend.json | 20 +- doc/schemas/lightning-listchannels.json | 58 +- doc/schemas/lightning-listconfigs.json | 18 +- doc/schemas/lightning-listforwards.json | 112 +- doc/schemas/lightning-listfunds.json | 18 +- doc/schemas/lightning-listhtlcs.json | 90 +- .../lightning-listinvoicerequests.json | 14 +- doc/schemas/lightning-listinvoices.json | 90 +- doc/schemas/lightning-listnodes.json | 20 +- doc/schemas/lightning-listoffers.json | 14 +- doc/schemas/lightning-listpays.json | 62 +- doc/schemas/lightning-listpeerchannels.json | 44 +- doc/schemas/lightning-listpeers.json | 16 +- doc/schemas/lightning-listsendpays.json | 92 +- doc/schemas/lightning-listtransactions.json | 72 +- doc/schemas/lightning-multifundchannel.json | 26 +- doc/schemas/lightning-multiwithdraw.json | 8 +- doc/schemas/lightning-openchannel_abort.json | 4 +- doc/schemas/lightning-openchannel_bump.json | 30 +- doc/schemas/lightning-openchannel_init.json | 12 +- doc/schemas/lightning-openchannel_signed.json | 20 +- doc/schemas/lightning-openchannel_update.json | 20 +- doc/schemas/lightning-pay.json | 16 +- doc/schemas/lightning-preapproveinvoice.json | 4 +- doc/schemas/lightning-recoverchannel.json | 18 +- doc/schemas/lightning-renepay.json | 20 +- doc/schemas/lightning-renepaystatus.json | 10 +- doc/schemas/lightning-reserveinputs.json | 12 +- doc/schemas/lightning-sendinvoice.json | 12 +- doc/schemas/lightning-sendonion.json | 10 +- doc/schemas/lightning-sendpay.json | 12 +- doc/schemas/lightning-sendpsbt.json | 6 +- doc/schemas/lightning-setchannel.json | 6 +- doc/schemas/lightning-showrunes.json | 8 +- doc/schemas/lightning-signinvoice.json | 8 +- doc/schemas/lightning-signpsbt.json | 8 +- doc/schemas/lightning-splice_init.json | 10 +- doc/schemas/lightning-splice_signed.json | 20 +- doc/schemas/lightning-splice_update.json | 12 +- doc/schemas/lightning-sql-template.json | 10 +- doc/schemas/lightning-staticbackup.json | 12 +- doc/schemas/lightning-txdiscard.json | 12 +- doc/schemas/lightning-txprepare.json | 12 +- doc/schemas/lightning-txsend.json | 16 +- doc/schemas/lightning-unreserveinputs.json | 4 +- doc/schemas/lightning-upgradewallet.json | 6 +- doc/schemas/lightning-utxopsbt.json | 12 +- doc/schemas/lightning-wait.json | 22 +- doc/schemas/lightning-waitanyinvoice.json | 31 +- doc/schemas/lightning-waitblockheight.json | 4 +- doc/schemas/lightning-waitinvoice.json | 32 +- doc/schemas/lightning-waitsendpay.json | 10 +- doc/schemas/lightning-withdraw.json | 14 +- tests/autogenerate-rpc-examples.py | 2306 +++++++++-------- 84 files changed, 2174 insertions(+), 2192 deletions(-) diff --git a/doc/schemas/lightning-addpsbtoutput.json b/doc/schemas/lightning-addpsbtoutput.json index fd8eac769a86..bd91151310c5 100644 --- a/doc/schemas/lightning-addpsbtoutput.json +++ b/doc/schemas/lightning-addpsbtoutput.json @@ -106,11 +106,7 @@ "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=" ] }, - "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQABBQECAQYBAwH7BAIAAAAAAQMIQEIPAAAAAAABBCJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbAAEDCNXcMgAAAAAAAQQiUSA2cYCeVGcxdSZII2urHpalr5osmF2lPbYRaw1nKyPcmQA=", - "estimated_added_weight": 172, - "outnum": 1 - } + "response": null }, { "request": { diff --git a/doc/schemas/lightning-bkpr-channelsapy.json b/doc/schemas/lightning-bkpr-channelsapy.json index 9a8f90888823..cfd27bf95b04 100644 --- a/doc/schemas/lightning-bkpr-channelsapy.json +++ b/doc/schemas/lightning-bkpr-channelsapy.json @@ -214,7 +214,7 @@ "response": { "channels_apy": [ { - "account": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", + "account": "channelid0120000120000120000120000120000120000120000120000120000", "routed_out_msat": 1000000, "routed_in_msat": 510081208, "lease_fee_paid_msat": 0, @@ -229,12 +229,12 @@ "utilization_in": "51.0081%", "utilization_in_initial": "51.0081%", "apy_out": "0.0000%", - "apy_in": "0.0252%", - "apy_in_initial": "0.0252%", - "apy_total": "0.0252%" + "apy_in": "0.0264%", + "apy_in_initial": "0.0264%", + "apy_total": "0.0264%" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "routed_out_msat": 510181102, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -255,7 +255,7 @@ "apy_total_initial": "0.0505%" }, { - "account": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", + "account": "channelid0250000250000250000250000250000250000250000250000250000", "routed_out_msat": 500000000, "routed_in_msat": 0, "lease_fee_paid_msat": 0, @@ -291,12 +291,12 @@ "utilization_out_initial": "50.5591%", "utilization_in": "17.0027%", "utilization_in_initial": "51.0081%", - "apy_out": "0.0084%", - "apy_out_initial": "0.0126%", - "apy_in": "0.0084%", - "apy_in_initial": "0.0252%", - "apy_total": "0.0168%", - "apy_total_initial": "0.0168%" + "apy_out": "0.0088%", + "apy_out_initial": "0.0132%", + "apy_in": "0.0088%", + "apy_in_initial": "0.0264%", + "apy_total": "0.0176%", + "apy_total_initial": "0.0176%" } ] } diff --git a/doc/schemas/lightning-bkpr-inspect.json b/doc/schemas/lightning-bkpr-inspect.json index 9ad2510b264e..c5f9495e1da7 100644 --- a/doc/schemas/lightning-bkpr-inspect.json +++ b/doc/schemas/lightning-bkpr-inspect.json @@ -212,31 +212,31 @@ "id": "example:bkpr-inspect#1", "method": "bkpr-inspect", "params": { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" + "account": "channelid0230000230000230000230000230000230000230000230000230000" } }, "response": { "txs": [ { - "txid": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483", + "txid": "txidchannel023000023000023000023000023000023000023000023000023000", "blockheight": 111, "fees_paid_msat": 4927000, "outputs": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", - "outnum": 0, + "account": "channelid0230000230000230000230000230000230000230000230000230000", + "outnum": 1, "output_tag": "channel_open", "output_value_msat": 1000000000, "credit_msat": 1000000000, "currency": "bcrt", "spend_tag": "channel_close", - "spending_txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "spending_txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c", "debit_msat": 489818898 } ] }, { - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c", "blockheight": 121, "fees_paid_msat": 2895898, "outputs": [ @@ -255,7 +255,7 @@ "output_value_msat": 510181000, "credit_msat": 510181000, "currency": "bcrt", - "originating_account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" + "originating_account": "channelid0230000230000230000230000230000230000230000230000230000" } ] } diff --git a/doc/schemas/lightning-bkpr-listaccountevents.json b/doc/schemas/lightning-bkpr-listaccountevents.json index d60d1c17533f..82c0a29918a0 100644 --- a/doc/schemas/lightning-bkpr-listaccountevents.json +++ b/doc/schemas/lightning-bkpr-listaccountevents.json @@ -271,19 +271,19 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0", - "timestamp": 1722303635, + "outpoint": "9ae6be6428ba4cb9024fb8875fdd182947ec7ecd9b5add4ec58c6a52a81533ae:0", + "timestamp": 1723160993, "blockheight": 105 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", "tag": "channel_open", "credit_msat": 0, "debit_msat": 0, "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "timestamp": 1722303653, + "outpoint": "txidchannel023000023000023000023000023000023000023000023000023000:1", + "timestamp": 1723161011, "blockheight": 111 }, { @@ -293,8 +293,8 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0", - "timestamp": 1722303656, + "outpoint": "ad1ade01faab5e830af50bb6794796bc8fad3cb21342a20d466720b87b6581ce:0", + "timestamp": 1723161014, "blockheight": 112 }, { @@ -304,9 +304,9 @@ "credit_msat": 0, "debit_msat": 2000000000, "currency": "bcrt", - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0", - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2", - "timestamp": 1722303659, + "outpoint": "ad1ade01faab5e830af50bb6794796bc8fad3cb21342a20d466720b87b6581ce:0", + "txid": "txidchannel034000034000034000034000034000034000034000034000034000", + "timestamp": 1723161017, "blockheight": 113 }, { @@ -316,19 +316,8 @@ "credit_msat": 995073000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:0", - "timestamp": 1722303659, - "blockheight": 113 - }, - { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", - "type": "chain", - "tag": "channel_open", - "credit_msat": 1000000000, - "debit_msat": 0, - "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:1", - "timestamp": 1722303659, + "outpoint": "txidchannel034000034000034000034000034000034000034000034000034000:0", + "timestamp": 1723161017, "blockheight": 113 }, { @@ -338,8 +327,8 @@ "credit_msat": 1004927000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161017, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" }, { "account": "wallet", @@ -348,160 +337,171 @@ "credit_msat": 0, "debit_msat": 1004927000, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161017, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" + }, + { + "account": "channelid0340000340000340000340000340000340000340000340000340000", + "type": "chain", + "tag": "channel_open", + "credit_msat": 1000000000, + "debit_msat": 0, + "currency": "bcrt", + "outpoint": "txidchannel034000034000034000034000034000034000034000034000034000:1", + "timestamp": 1723161018, + "blockheight": 113 }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "type": "onchain_fee", "tag": "onchain_fee", "credit_msat": 4927000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161018, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", + "payment_id": "865cc18e70e884dec6673e3a820de57bdbd9792e40795c434928c37800f7696a", "part_id": 0, - "timestamp": 1722303673, + "timestamp": 1723161032, "description": "description send some sats l2 to l3", "is_rebalance": false }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "type": "channel", "tag": "invoice", "credit_msat": 0, "debit_msat": 500000000, "currency": "bcrt", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166", + "payment_id": "5086a7f2617af2a0b60a4ce8c4d3fd948cafa43cce35388dcd47a9637a1e3c0b", "part_id": 0, - "timestamp": 1722303675, + "timestamp": 1723161034, "description": "description send some sats l3 to l4", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_id": "paymenthashinvl0310003100031000310003100031000310003100031000310", "part_id": 0, - "timestamp": 1722303677, + "timestamp": 1723161036, "description": "Invoice description l31", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_id": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf", "part_id": 0, - "timestamp": 1722303679, + "timestamp": 1723161038, "description": "keysend", "is_rebalance": false }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "type": "channel", "tag": "routed", "credit_msat": 0, "debit_msat": 10000000, "fees_msat": 101, "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_id": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", "part_id": 0, - "timestamp": 1722303682, + "timestamp": 1723161041, "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "routed", "credit_msat": 10000101, "debit_msat": 0, "fees_msat": 101, "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_id": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", "part_id": 0, - "timestamp": 1722303682, + "timestamp": 1723161041, "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_id": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "part_id": 0, - "timestamp": 1722303686, + "timestamp": 1723161045, "description": "keysend", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 50000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", + "payment_id": "paymenthashinvl0320003200032000320003200032000320003200032000320", "part_id": 0, - "timestamp": 1722303688, + "timestamp": 1723161047, "description": "l32 description", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 100000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", + "payment_id": "paymenthashinvl0330003300033000330003300033000330003300033000310", "part_id": 0, - "timestamp": 1722303689, + "timestamp": 1723161049, "description": "l33 description", "is_rebalance": false }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "type": "channel", "tag": "routed", "credit_msat": 0, "debit_msat": 1000, "fees_msat": 1, "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_id": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "part_id": 0, - "timestamp": 1722303692, + "timestamp": 1723161052, "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "routed", "credit_msat": 1001, "debit_msat": 0, "fees_msat": 1, "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_id": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "part_id": 0, - "timestamp": 1722303692, + "timestamp": 1723161052, "is_rebalance": false }, { @@ -511,67 +511,67 @@ "credit_msat": 510181000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:1", - "timestamp": 1722303693, + "outpoint": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c:1", + "timestamp": 1723161054, "blockheight": 121 }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", "tag": "channel_close", "credit_msat": 0, - "debit_msat": 489999000, + "debit_msat": 510181102, "currency": "bcrt", - "outpoint": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2:1", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", - "timestamp": 1722303693, + "outpoint": "txidchannel023000023000023000023000023000023000023000023000023000:1", + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c", + "timestamp": 1723161054, "blockheight": 121 }, { "account": "external", - "origin": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "origin": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", "tag": "to_them", - "credit_msat": 510001000, + "credit_msat": 486923000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e:1", - "timestamp": 1722303693, + "outpoint": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c:0", + "timestamp": 1723161054, "blockheight": 121 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "type": "chain", "tag": "channel_close", "credit_msat": 0, - "debit_msat": 510181102, + "debit_msat": 489999000, "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "timestamp": 1722303693, + "outpoint": "txidchannel034000034000034000034000034000034000034000034000034000:1", + "txid": "8e8019987280a2adf91eba416fff703d3e145efca47965931fb570bf8bab78f9", + "timestamp": 1723161054, "blockheight": 121 }, { "account": "external", - "origin": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "origin": "channelid0340000340000340000340000340000340000340000340000340000", "type": "chain", "tag": "to_them", - "credit_msat": 486923000, + "credit_msat": 510001000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:0", - "timestamp": 1722303693, + "outpoint": "8e8019987280a2adf91eba416fff703d3e145efca47965931fb570bf8bab78f9:1", + "timestamp": 1723161054, "blockheight": 121 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "onchain_fee", "tag": "onchain_fee", "credit_msat": 102, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" + "timestamp": 1723161054, + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c" }, { "account": "ecabe6d86abdd57565b3fb7e7c5d724e60ca1a07633951769b5dbfa48dc884b3", @@ -580,8 +580,8 @@ "credit_msat": 0, "debit_msat": 0, "currency": "bcrt", - "outpoint": "f2f4e67dbf2791a3b57dd986418156b116b452c5fc27b077da7c529db82f06f5:1", - "timestamp": 1722303702, + "outpoint": "eb296b2d0e5415d3e449c90e412c075c14a8290c0a8aae0c87f6d95ca075f3ee:1", + "timestamp": 1723161063, "blockheight": 123 }, { @@ -591,22 +591,10 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0", - "timestamp": 1722303705, + "outpoint": "634c3d655e9c94e22e78416f7f1b88dc5b1a69e837cf7b5f02bc446fdb105648:0", + "timestamp": 1723161066, "blockheight": 124 }, - { - "account": "wallet", - "type": "chain", - "tag": "withdrawal", - "credit_msat": 0, - "debit_msat": 510181000, - "currency": "bcrt", - "outpoint": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305:1", - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee", - "timestamp": 1722303708, - "blockheight": 125 - }, { "account": "wallet", "type": "chain", @@ -614,20 +602,20 @@ "credit_msat": 0, "debit_msat": 2000000000, "currency": "bcrt", - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0", - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee", - "timestamp": 1722303708, + "outpoint": "634c3d655e9c94e22e78416f7f1b88dc5b1a69e837cf7b5f02bc446fdb105648:0", + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd", + "timestamp": 1723161069, "blockheight": 125 }, { "account": "wallet", "type": "chain", "tag": "deposit", - "credit_msat": 1503221000, + "credit_msat": 995073000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee:0", - "timestamp": 1722303708, + "outpoint": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd:1", + "timestamp": 1723161069, "blockheight": 125 }, { @@ -637,39 +625,39 @@ "credit_msat": 1000000000, "debit_msat": 0, "currency": "bcrt", - "outpoint": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee:1", - "timestamp": 1722303708, + "outpoint": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd:0", + "timestamp": 1723161069, "blockheight": 125 }, { "account": "wallet", "type": "onchain_fee", "tag": "onchain_fee", - "credit_msat": 1006960000, + "credit_msat": 1004927000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" }, { "account": "wallet", "type": "onchain_fee", "tag": "onchain_fee", "credit_msat": 0, - "debit_msat": 1006960000, + "debit_msat": 1004927000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" }, { "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "type": "onchain_fee", "tag": "onchain_fee", - "credit_msat": 6960000, + "credit_msat": 4927000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" } ] } @@ -679,147 +667,147 @@ "id": "example:bkpr-listaccountevents#2", "method": "bkpr-listaccountevents", "params": [ - "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2" + "channelid0230000230000230000230000230000230000230000230000230000" ] }, "response": { "events": [ { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", "tag": "channel_open", "credit_msat": 0, "debit_msat": 0, "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "timestamp": 1722303653, + "outpoint": "txidchannel023000023000023000023000023000023000023000023000023000:1", + "timestamp": 1723161011, "blockheight": 111 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", + "payment_id": "865cc18e70e884dec6673e3a820de57bdbd9792e40795c434928c37800f7696a", "part_id": 0, - "timestamp": 1722303673, + "timestamp": 1723161032, "description": "description send some sats l2 to l3", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_id": "paymenthashinvl0310003100031000310003100031000310003100031000310", "part_id": 0, - "timestamp": 1722303677, + "timestamp": 1723161036, "description": "Invoice description l31", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_id": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf", "part_id": 0, - "timestamp": 1722303679, + "timestamp": 1723161038, "description": "keysend", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "routed", "credit_msat": 10000101, "debit_msat": 0, "fees_msat": 101, "currency": "bcrt", - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_id": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", "part_id": 0, - "timestamp": 1722303682, + "timestamp": 1723161041, "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_id": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "part_id": 0, - "timestamp": 1722303686, + "timestamp": 1723161045, "description": "keysend", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 50000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", + "payment_id": "paymenthashinvl0320003200032000320003200032000320003200032000320", "part_id": 0, - "timestamp": 1722303688, + "timestamp": 1723161047, "description": "l32 description", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "invoice", "credit_msat": 100000, "debit_msat": 0, "currency": "bcrt", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", + "payment_id": "paymenthashinvl0330003300033000330003300033000330003300033000310", "part_id": 0, - "timestamp": 1722303689, + "timestamp": 1723161049, "description": "l33 description", "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "channel", "tag": "routed", "credit_msat": 1001, "debit_msat": 0, "fees_msat": 1, "currency": "bcrt", - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_id": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "part_id": 0, - "timestamp": 1722303692, + "timestamp": 1723161052, "is_rebalance": false }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "chain", "tag": "channel_close", "credit_msat": 0, "debit_msat": 510181102, "currency": "bcrt", - "outpoint": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483:0", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", - "timestamp": 1722303693, + "outpoint": "txidchannel023000023000023000023000023000023000023000023000023000:1", + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c", + "timestamp": 1723161054, "blockheight": 121 }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "type": "onchain_fee", "tag": "onchain_fee", "credit_msat": 102, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" + "timestamp": 1723161054, + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c" } ] } diff --git a/doc/schemas/lightning-bkpr-listbalances.json b/doc/schemas/lightning-bkpr-listbalances.json index 1f795ceffbcf..837ed45f6c07 100644 --- a/doc/schemas/lightning-bkpr-listbalances.json +++ b/doc/schemas/lightning-bkpr-listbalances.json @@ -148,13 +148,13 @@ "account": "wallet", "balances": [ { - "balance_msat": 202498294000, + "balance_msat": 202500327000, "coin_type": "bcrt" } ] }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "we_opened": false, "account_closed": true, @@ -168,7 +168,7 @@ ] }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "peer_id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", "we_opened": true, "account_closed": true, diff --git a/doc/schemas/lightning-bkpr-listincome.json b/doc/schemas/lightning-bkpr-listincome.json index 4ccd146b82ea..87e1d12be508 100644 --- a/doc/schemas/lightning-bkpr-listincome.json +++ b/doc/schemas/lightning-bkpr-listincome.json @@ -144,8 +144,8 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1723160993, + "outpoint": "9ae6be6428ba4cb9024fb8875fdd182947ec7ecd9b5add4ec58c6a52a81533ae:0" }, { "account": "wallet", @@ -153,114 +153,114 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303656, - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0" + "timestamp": 1723161014, + "outpoint": "ad1ade01faab5e830af50bb6794796bc8fad3cb21342a20d466720b87b6581ce:0" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303673, + "timestamp": 1723161032, "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" + "payment_id": "865cc18e70e884dec6673e3a820de57bdbd9792e40795c434928c37800f7696a" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "invoice", "credit_msat": 0, "debit_msat": 500000000, "currency": "bcrt", - "timestamp": 1722303675, + "timestamp": 1723161034, "description": "description send some sats l3 to l4", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166" + "payment_id": "5086a7f2617af2a0b60a4ce8c4d3fd948cafa43cce35388dcd47a9637a1e3c0b" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303677, + "timestamp": 1723161036, "description": "Invoice description l31", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" + "payment_id": "paymenthashinvl0310003100031000310003100031000310003100031000310" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303679, + "timestamp": 1723161038, "description": "keysend", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b" + "payment_id": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "routed", "credit_msat": 101, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303682, - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b" + "timestamp": 1723161041, + "payment_id": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303686, + "timestamp": 1723161045, "description": "keysend", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259" + "payment_id": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 50000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303688, + "timestamp": 1723161047, "description": "l32 description", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e" + "payment_id": "paymenthashinvl0320003200032000320003200032000320003200032000320" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 100000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303689, + "timestamp": 1723161049, "description": "l33 description", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68" + "payment_id": "paymenthashinvl0330003300033000330003300033000330003300033000310" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "routed", "credit_msat": 1, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303692, - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "timestamp": 1723161052, + "payment_id": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 102, "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" + "timestamp": 1723161054, + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 4927000, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161018, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" }, { "account": "wallet", @@ -268,17 +268,17 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303705, - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0" + "timestamp": 1723161066, + "outpoint": "634c3d655e9c94e22e78416f7f1b88dc5b1a69e837cf7b5f02bc446fdb105648:0" }, { "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "tag": "onchain_fee", "credit_msat": 0, - "debit_msat": 6960000, + "debit_msat": 4927000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" } ] } @@ -299,8 +299,8 @@ "credit_msat": 200000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303635, - "outpoint": "386ad532212a5cffd753a39c2d7260793e0c885fc28bc1235362c2b133a4f6a4:0" + "timestamp": 1723160993, + "outpoint": "9ae6be6428ba4cb9024fb8875fdd182947ec7ecd9b5add4ec58c6a52a81533ae:0" }, { "account": "wallet", @@ -308,8 +308,8 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303656, - "outpoint": "b19a249c64f2c952b4b9a400bdec159b56af2af63939c9ecb8fd937f344a7056:0" + "timestamp": 1723161014, + "outpoint": "ad1ade01faab5e830af50bb6794796bc8fad3cb21342a20d466720b87b6581ce:0" }, { "account": "wallet", @@ -317,8 +317,8 @@ "credit_msat": 0, "debit_msat": 1004927000, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161017, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" }, { "account": "wallet", @@ -326,114 +326,114 @@ "credit_msat": 1004927000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161017, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 4927000, "currency": "bcrt", - "timestamp": 1722303659, - "txid": "5aab7d37b6ed1d78de32f4f91122ab9bbf0924b21732206b63ce06639ecc3fe2" + "timestamp": 1723161018, + "txid": "txidchannel034000034000034000034000034000034000034000034000034000" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 500000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303673, + "timestamp": 1723161032, "description": "description send some sats l2 to l3", - "payment_id": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670" + "payment_id": "865cc18e70e884dec6673e3a820de57bdbd9792e40795c434928c37800f7696a" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "invoice", "credit_msat": 0, "debit_msat": 500000000, "currency": "bcrt", - "timestamp": 1722303675, + "timestamp": 1723161034, "description": "description send some sats l3 to l4", - "payment_id": "365522e0e6c2fe84987153324cc9fac02986855d849bbd650426ba6064463166" + "payment_id": "5086a7f2617af2a0b60a4ce8c4d3fd948cafa43cce35388dcd47a9637a1e3c0b" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303677, + "timestamp": 1723161036, "description": "Invoice description l31", - "payment_id": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" + "payment_id": "paymenthashinvl0310003100031000310003100031000310003100031000310" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303679, + "timestamp": 1723161038, "description": "keysend", - "payment_id": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b" + "payment_id": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "routed", "credit_msat": 101, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303682, - "payment_id": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b" + "timestamp": 1723161041, + "payment_id": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 10000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303686, + "timestamp": 1723161045, "description": "keysend", - "payment_id": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259" + "payment_id": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 50000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303688, + "timestamp": 1723161047, "description": "l32 description", - "payment_id": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e" + "payment_id": "paymenthashinvl0320003200032000320003200032000320003200032000320" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "invoice", "credit_msat": 100000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303689, + "timestamp": 1723161049, "description": "l33 description", - "payment_id": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68" + "payment_id": "paymenthashinvl0330003300033000330003300033000330003300033000310" }, { - "account": "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "account": "channelid0340000340000340000340000340000340000340000340000340000", "tag": "routed", "credit_msat": 1, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303692, - "payment_id": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "timestamp": 1723161052, + "payment_id": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20" }, { - "account": "a397dd9b3e44afcb67f3f3ce1d649b74a8ade63e35505985e4cc1828634f69a2", + "account": "channelid0230000230000230000230000230000230000230000230000230000", "tag": "onchain_fee", "credit_msat": 0, "debit_msat": 102, "currency": "bcrt", - "timestamp": 1722303693, - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305" + "timestamp": 1723161054, + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c" }, { "account": "wallet", @@ -441,35 +441,35 @@ "credit_msat": 2000000000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303705, - "outpoint": "4c4b46acfd0c9d4b8393a2c3fbc27cb70bfa9270bf47ade3348c4acd949b770b:0" + "timestamp": 1723161066, + "outpoint": "634c3d655e9c94e22e78416f7f1b88dc5b1a69e837cf7b5f02bc446fdb105648:0" }, { "account": "wallet", "tag": "onchain_fee", "credit_msat": 0, - "debit_msat": 1006960000, + "debit_msat": 1004927000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" }, { "account": "wallet", "tag": "onchain_fee", - "credit_msat": 1006960000, + "credit_msat": 1004927000, "debit_msat": 0, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" }, { "account": "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "tag": "onchain_fee", "credit_msat": 0, - "debit_msat": 6960000, + "debit_msat": 4927000, "currency": "bcrt", - "timestamp": 1722303708, - "txid": "416618f92bc774497a510c55f8aee76e80135bc0abe1933ebe473eeb07b41dee" + "timestamp": 1723161069, + "txid": "edb0c3495677aa64feef829a5ddf4019e02b8dec875ec77639cf790a1697defd" } ] } diff --git a/doc/schemas/lightning-check.json b/doc/schemas/lightning-check.json index 09ea287c7587..9ac261ceac27 100644 --- a/doc/schemas/lightning-check.json +++ b/doc/schemas/lightning-check.json @@ -55,13 +55,13 @@ "amount_msat": 1011, "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "delay": 20, - "channel": "111x1x0" + "channel": "111x1x1" }, { "amount_msat": 1000, "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", "delay": 10, - "channel": "113x1x1" + "channel": "113x1x0" } ], "payment_hash": "0000000000000000000000000000000000000000000000000000000000000000" diff --git a/doc/schemas/lightning-close.json b/doc/schemas/lightning-close.json index 5b79881e9567..c08af5ae5e44 100644 --- a/doc/schemas/lightning-close.json +++ b/doc/schemas/lightning-close.json @@ -165,8 +165,8 @@ } }, "response": { - "tx": "020000000001018304b0bbf2ea662c053e0377df4652059bb107eb5312989471c2ef7e51f023cd0000000000ffffffff020b6e07000000000022512085d72025e78fd08bb61119f0987ab0041f50561ada6e130c645343db8c44c2afe5c8070000000000225120a7583f0c421663b8ca76fa579018b40682ef8553d73fd061cd8f216ecdced6a304004730440220369e36994b74172c67b738891a22a8f7cf3ad3d6051a1c08b641277c2b129134022060b96175b5046a0e8814c03076da885e4546f11e72188582473f0ca901001a0b0147304402206733aaa116b30474dfcdcc2ce48fbc6f222ed0eae7ac6e4c95da6a6f2a2105a502200ab85229e9981e0364ab1bef38e9a581067a9c7d9fe30487e34fd8e13eff56320147522102d595ae92b3544c3250fb772f214ad8d4c51425033740a5bcc357190add6d7e7a2102d6063d022691b2490ab454dee73a57c6ff5d308352b461ece69f3c284f2c241252ae00000000", - "txid": "70e0466dc2e74f25afe38df6a85d5e8857079873a6d5eda4732806a7ac427305", + "tx": "0200000000010104fb5bf39c160ff953bff3de0d1200ea01a419f72967e317909b207897719c910100000000ffffffff020b6e07000000000022512085d72025e78fd08bb61119f0987ab0041f50561ada6e130c645343db8c44c2afe5c8070000000000225120a7583f0c421663b8ca76fa579018b40682ef8553d73fd061cd8f216ecdced6a30400473044022047caca31841f616caa2e3d2496c4bc327338fa9e373fdb10de4e851429f3058202207cccd46c09356dc6637dfff182590209812266e2d41823459625eeb40eeea18f0147304402200af3308d17cb2fa3f9912f6cae786d862f59977dc60a9fcffaf1bdc7c05f7836022016b389e9c89c2d80c7c8c03ce328b77cc93cb63d53b460d26dee49c1726224ac0147522102d595ae92b3544c3250fb772f214ad8d4c51425033740a5bcc357190add6d7e7a2102d6063d022691b2490ab454dee73a57c6ff5d308352b461ece69f3c284f2c241252ae00000000", + "txid": "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c", "type": "mutual" } }, @@ -180,8 +180,8 @@ } }, "response": { - "tx": "02000000000101e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0100000000ffffffff02746f070000000000160014730274d976305fe63d212c880cf89fd0f082728731c80700000000002251202bdd81f95d64ed2cc37d2eae725de428c91bff072d7503d87446970eedc63030040047304402205834de4c5c994a50f3ba5406534254b68e35836f98b4d5371b78225a79d087dd02201f54e1ae045e9a33dd3dd5a2b589903f305af5ead515a8e55feb2447b090415c0147304402202dd2efc52e5b4a78cbc1cf5664a0a3e3a5e67e16b0de37fc6818dbb838b6be17022062a071e81ecaec4808a44b049e091fa60b5fcf9e7f7bbdf85bc564a0a467e13601475221021c29746e4136ddff456483df3980c2d0d5f31c93ef5ded564f7294a10d7414aa2103c47b1b2afcfd68c7b86c0976adb9a4f0835bc78242fced745d78433497a867d652ae00000000", - "txid": "2849a5c5cd182ebec02d18ba6348bb01e70a544d0ce9aa8b5533fb09d24c969e", + "tx": "020000000001017186aa97726339b4e70584b1e3b120c93fc132f11637eb25beff7f1427926a1a0100000000ffffffff02746f070000000000160014730274d976305fe63d212c880cf89fd0f082728731c80700000000002251202bdd81f95d64ed2cc37d2eae725de428c91bff072d7503d87446970eedc630300400473044022005ab849fec5d16996b806eceefb3ba22f7b15a1f59693ab9584548f484bb177b02201f2aba45719b59b1e7809c27a434886aa9edb8cc86d0c39f9365106319004f90014730440220741c191ff596dd7998a6ce61ae18246ac7d7ce0b4ed6eca8b8966c32a2bb1ad4022010010f84790374b6f202b89dbbad4139eca88d925406163c946b8699cba8a01001475221021c29746e4136ddff456483df3980c2d0d5f31c93ef5ded564f7294a10d7414aa2103c47b1b2afcfd68c7b86c0976adb9a4f0835bc78242fced745d78433497a867d652ae00000000", + "txid": "8e8019987280a2adf91eba416fff703d3e145efca47965931fb570bf8bab78f9", "type": "mutual" } } diff --git a/doc/schemas/lightning-commando.json b/doc/schemas/lightning-commando.json index 3db442e701b1..379a33297366 100644 --- a/doc/schemas/lightning-commando.json +++ b/doc/schemas/lightning-commando.json @@ -97,7 +97,7 @@ }, "response": { "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "alias": "SILENTARTIST", "color": "022d22", "num_peers": 3, "num_pending_channels": 0, @@ -108,11 +108,11 @@ { "type": "ipv4", "address": "127.0.0.1", - "port": 41219 + "port": 19735 } ], - "version": "v24.05-190-g5fd2f9c-modded", - "blockheight": 130, + "version": "v24.08", + "blockheight": 129, "network": "regtest", "fees_collected_msat": 106, "lightning-dir": "/tmp/.lightning/regtest", @@ -144,7 +144,7 @@ "connected": true, "num_channels": 2, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19736" ], "features": "08a0802a8a59a1" } @@ -160,19 +160,19 @@ "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", "method": "pay", "params": { - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", + "bolt11": "lnbcrt1pnt2k0nsp5fumcrr3dahtqsdfln49ffeltssy87aned4ram55vpg7zcxhweesspp522j990adncrxrgxd9w74j57yy29787sufk2ktfpxmw4f42pqs6yqdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp99qxpqysgqtvql99aqyda9ujvgwy20qgnxw0ur552asmsg0nan7t2kully30qsvh6dgvs7ky5rlxm6lse7umv4egal2u0l6nmmcg0g0rtugk8hk4gq3htryr", "amount_msat": 9900 } } }, "response": { "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "created_at": 1722303715.008808, + "payment_hash": "52a452bfad9e0661a0cd2bbd5953c4228be3fa1c4d9565a426dbaa9aa8208688", + "created_at": 1723161075.367543, "parts": 1, "amount_msat": 9900, "amount_sent_msat": 9900, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "payment_preimage": "7401fefd4d82ac5d2c40bc27241a2e29637c53526b7ba497976e95bbec856fde", "status": "complete" } } diff --git a/doc/schemas/lightning-connect.json b/doc/schemas/lightning-connect.json index 41a36c231b5e..ea9e5b20de29 100644 --- a/doc/schemas/lightning-connect.json +++ b/doc/schemas/lightning-connect.json @@ -191,7 +191,7 @@ "params": { "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "host": "localhost", - "port": 41219 + "port": 19735 } }, "response": { @@ -201,7 +201,7 @@ "address": { "type": "ipv4", "address": "127.0.0.1", - "port": 41219 + "port": 19735 } } }, @@ -212,7 +212,7 @@ "params": { "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "host": "localhost", - "port": 34785 + "port": 19736 } }, "response": { @@ -222,7 +222,7 @@ "address": { "type": "ipv4", "address": "127.0.0.1", - "port": 34785 + "port": 19736 } } } diff --git a/doc/schemas/lightning-createinvoice.json b/doc/schemas/lightning-createinvoice.json index 28dbfc9cf31c..9e4c7157028b 100644 --- a/doc/schemas/lightning-createinvoice.json +++ b/doc/schemas/lightning-createinvoice.json @@ -210,19 +210,19 @@ "id": "example:createinvoice#1", "method": "createinvoice", "params": { - "invstring": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq4sjk5smmjpgu6v8k7xc7q5evf370kdvt8s8t6x9he6jh9sgagxyqw8l7ctdldf8vgyz3pdfwr4hn9r6u5xvd48w2f2atu752zwqsulspwpxne4", + "invstring": "lnbcrt100n1pnt2000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000", "label": "lbl_l13", "preimage": "0101010101010101010101010101010101010101010101010101010101010101" } }, "response": { "label": "lbl_l13", - "bolt11": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqcjq9fq26ph2skcsm65xjwnw3crgygpampszjcvqs8aw2zf3jzcxqg4dh58fm8mxul29vh5urpyjkll9m4dq3807xcmq2q9yvgd5qt7qp695qvu", - "payment_hash": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793", + "bolt11": "lnbcrt1u1pnt2k0nsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq3vhyun9uf37y06dsmstzcc2hj92r20hf4zs2py66xmc62y8uerjjkwf434r4vy9gp5pwq76mev3pwty6097ydeh0sc45z9fhy8qzewspe5cs3t", + "payment_hash": "paymenthashinvl0130001300013000130001300013000130001300013000310", "amount_msat": 100000, "status": "unpaid", "description": "l13 description", - "expires_at": 1722908514, + "expires_at": 1713100000, "created_index": 7 } } diff --git a/doc/schemas/lightning-createonion.json b/doc/schemas/lightning-createonion.json index bcf1faa7fff4..62789be800e9 100644 --- a/doc/schemas/lightning-createonion.json +++ b/doc/schemas/lightning-createonion.json @@ -108,7 +108,7 @@ "hops": [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "payload": "11020203e9040187060800006f0000010001" }, { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", @@ -116,18 +116,18 @@ }, { "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "payload": "2b020203e80401810822be52bcb8dcbd9522567294892aa0de500f4fdc7809fb7a3f77d195873d6ec52103e8" } ], - "assocdata": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "assocdata": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20" } }, "response": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "00021d194283ab99dbbae50081eb3311dd538e20f81444ad161a041a958b0e5d518bbf77af181b1b049f9f40f3df40240e6c1bf9e0604fcdbf8a62c03d38ed0db4c606e3455e4a43c28510b4bb259bd5dac01122dd11312f4d1b5a1f6d97c6740941606ac0575ba77fb265a20d2d06c701bfaae24403b4353fa7017b695c49a0f3c056f8ef9c9fbd001c7428d9b2e36bf87e62a1c0d84d2dad7edcc7ff83679e0da46c3354b8e5f426b05576dfab02de79d209e827859c1aa0e4b25bfbd796d6fa3b7c818d20bfbed0ee8bc61bf96f3d5f2a7fb80b80c61e7caae142c878283057d338dacb91132ffb05036270e891579507f2e9bc759d75629b698128d6bc6c8e6b44208eae4c525f98e2efbc5aae79a97bce2b471d29865a7a6b427a3c288cd48d839eb23b5fa9a1eed62afd762921d541978ec8363cd186191d8b3e0d3e52d74fb17652889286a650e36c2cf60f0d3adbe2440cfbe332240f87f1933f35eb2d4e5bc542198c3d3bd1bc957a07a84ca6348c9dc2afff05a7441dc4be7e71e6babb8cf9a12255d967d2afb56e293d4d0c6b8b11c175b9c5c3e9d866b47ab2e2e88dab537b0f7c97f8d3ddfc62260824dde819edc8852bc91921bb0810daaa9f1179a1f94fa9a9bc5cef8f6e598c8e82544ede00b4d2beff581a23fc875758ff727fb652c30cc67f684154b8c347195aef0b511df270efc5f2af14e673b748ac7d8af74b1607b2a3900542ef971bfc98f6feda54c06c7d58508a91f477431adc0ca016f676ad6f5610a84e8864647a35efca7ee6b145ebc4676cf6cbcaf4a1127a5f5ee16bc088c162df4342bcde8554f7d48526561f19d92abcf7984f8a5ebb5c01846386cbfc5f84b59233812d2bc870cddf0bc3920938d844ebcd306ee768100cae57d14798025ee123e2cddb8f062c7246a83b0c1fa639bfb4895969ecd52aca093c860c4f49a880fb37a31647645d4738c426468891dbc03197f0de0f9ca9ca7c8ad464e38ed579d65d29f421ffccc956aa61edcdbd8f880d4e68fc43439b02d98ebdbc01be0a61915b1705e30197c57ee7230bfd300ead85e0a0190e225f8d3b9720b6bd30d27e6ccbc979c33c462c6c813ee3761e5eba47b705676f2b42392011ad2154e3f5bab78a1a69695c46a77ca727312d08d5ddc96a2e46f99270c305e107e2f062b45eea0ef9ec6dc58abd15e28fc134f5e97a6897a3a9dba5ad0cc978deff3e75559cf39a81a43dc1e19000acd080241477026edbf6941583b84688a77bba67b9a67fd54e3d0516f422205f4dbf9f23c69262bd223b2aa65b72ad7933f96db368b1f632ddd0c75297a8ebaa622731d9c75fc79fe5ffcc44b10cd19975c823883d695acc3ccf654207db61dbff1d60643ed47132b487c36fad98a8596f0ecceef74687b637727d80cc000cf8baa42892ce9af21e3d68caf1ad44c58ce759da9f2b101c53350f5cf9730ab4ed197d9a7b92495fd2cb385c9233c0cafc615ab4cb587149cad268b7b467745190ce32de05b70b0920737e383bc096c9faa49cdfb29da3e737a0163e6b45fc661f706ca64c45d8a2f2d1681abe52312a30d73aa622ba0536de6a6c2574f0b7aaf078bd3c80a4a7c4474fb294d19180431b54451a90560537e44d5217d70a27008d729ff987c29aa591adc386d7791ffab87f9069bdc151d9a84e82f87c7cc4631bf9e5b22a1771c4f8580f80f016efd9eaf2a98f7981c716221cb71c8c347e7189d1124776002356064381cd71e13fbdfab88efe3502e31ba2370d8ff1f9e540fb2b2d29cdc732de0de685b9aed314e05d4bceb3377e6fbd0dce1dd084e234de46741ea5d1a1a6aceb53ff9d2344f47d5239696384bac1078e12ba59f0d7a66536c9e4bd73bb82d8c5c37ac1a7a9ea854a4ead53a48535feb3a5d14ad9b5dd0a7a4ae250", "shared_secrets": [ - "7d856ece68ddf5a89b909f888bc0c37207800a6cdba89db12a7cf7e7c26e5209", - "d1dfacfabba80f07461b890fc660440a105460b687c21bf78f7e6050c2889a98", - "46ff1895fde58206d5b437d39bb149995456ede6b9af75c0135210efbff23333" + "86e906cc95556a312f397c418a147bfe0ae26f59ba5609dc9605b98603ab57e2", + "72c55a0db65e2c400e268f5b4bfeb75b072a2c92064f0b5b1b0109eccf4370b9", + "2df67fc23e33a818fb46e7f962b8734bab441439281c2a8f2145faf15afc5b4d" ] } }, @@ -139,7 +139,7 @@ [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payload": "11020203e9040187060800006f0000010000" + "payload": "11020203e9040187060800006f0000010001" }, { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", @@ -147,15 +147,15 @@ }, { "pubkey": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payload": "2b020203e80401810822810248b37c63b882804cf746c5b1d7595d26713d89a443ec5808a18ed2327a1903e8" + "payload": "2b020203e80401810822be52bcb8dcbd9522567294892aa0de500f4fdc7809fb7a3f77d195873d6ec52103e8" } ], - "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "4141414141414141414141414141414141414141414141414141414141414141" ] }, "response": { - "onion": "0002eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f2836866191c78fd992bdb6323814526c8ea3ab57e22cd7739942f3a3f117d1191ed07d90599edc15c1d83a85b3f00350f4ec0f4b78894d38499e802a15843122723857ebddb629cf308d485de6bdbef80209059e3409ee47154e1b7e8f20d7ce02826c734601240c31ea9fa2c0caea8677b0db9e98835e762cb32e42da32f60bd000fe44350e8e87b69d83363c41d8d22f1639e8701901d74b64bf51f1c21cdc785b54dc5a6ba39fc75f956b60a372f6421a84f6001b294487baf1bb049b7bd901c5854c0999a82095874b02da90021a685f7c77f4b724a3d27489c091807b32bcdfb2c68f69b50c0b43c78288c333dbb007874f36fcf224fbc2ed89690f64a62b5ecfe6275750eb1a5575f689ca6d59c9a570689372db120cf6a29177caaace5ac671a3607d37a3048af18d1d736ac8a4dde8efc4884f8eab23cdc8cb15170471ee7b416b5cf089dee8ab8ac3eea6700a6040839c1e86f6d2b5acf9c7bac856cae96e9d1b7142f91ac4818cf0007a23100ae621470ac2552116f30948f21602237d12d29f58ca73f10f05b38f7b4b728fcfd8aafc1a82502aae3081c4bc8a77771aef16247bcf26d8569140441c405a3c21a649a8439797f45e7c37a2025318f4c88e3eba454fd4cc37e9978b59fa7b1e41af450523713fdad8070c7abdeea299474c99b2bde737e8c8ad79cb9fdd70a935ad29504d185bf100a339d203cd929030454a6450132255fea11ba0c6a520fa7cc3b8638f8032a61c492f7f9d1ec591a851f25df9238945ae467126b64019f21a71a2d3ef46cdd7b61773ad632dc77e0bda7d06b493efe940d9b975ebb85c423a83d24966f5e2ae2ec9c3b2257cc21a4989dd016d688865ba5245667c302e408dc56ffdf4282ad834f0c5af1ce49b3997fe397faf6874cac24ae346b4e72e468506c0e724efe6f805e0fd115de39b6fa29d05e11bbe2ec27548517f93ebd7b977b13237ab9c40ff5766f7263ea1f2eabba460600cd7da082fcf8d0a7bd37054abfd6040f886dde48cf600612b5b73a44026e79d46336de73f2ea5fbfc9603ccd89f6954e5093b6bfe556e6f67deb0878128049186f7ac6ef461a56c2bb4f24a9679fb386e06052c3da2f367f14bc41ec191f5b0b7b3ccad1f2cc58c863c49055c889b8b04b6b6cbaec50d0d103d4ea0da75952a730b07cea0da43914b5ab3f30b5104d9a75eb003da0b5b97bf9eb9081194cc5b50362041a972841bdafde31909929237ed5b94c88dd05126cdb3fd25add0c777c2ad021e1a0e7140d6c4c2005cb353a7a6a747ee75467c052f55faa485cbcf3758eafba7a8ef00d1481cc0f05af539116f443cb02a7b30a3de899dc66cb0781ccccf5c8d93b34be0665d11cbca55cd7a424b958124edf1289c7f4fc19c1be8fc7a861ce47c43a641bafdb195e1c74a1fbf69dbd518013f3dbf2860818b5a3e6f1dd36a5546bfd416e9714dec29818ecd1aeeb29c319b407c497621248d232680417486698a3e1262f03a8bc6441d1de40ae351dae4527a8efe25fc68a3f1571aa556edd6bfb9db7caba4d2c02bab003c43055f5d3ebf961735c3b1f4cd3e0a96038697a95cceac08c0aff084450cf571f81c95d468826aa4292997ccfeba32db77c4c22a9d3caa0a37a8a961ac2f2c8a6965687143bc93c620503839fd7bd7fc2e6d9c966586b713f824b8e9d3de55cb1b81f9204b92dfaa066920c0910e62e59650e904e05b94bde3e467d45719d6a3b85a71c8ff1dcca5a5f497928db5f64c55aad93513e87f4f0c93a6fa5a9afe929cf8223ea509f584913844044aa23a4afa4bc0ad975f4904aab5d77b5e51511460a3b7a982d3b0adcf3fd2ffc2494d16add2825a929fc7c4f0c97159e6fa6aba8569433", + "onion": "0002eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f2836866191c78fd992bdb6323814526c8ea3ab57e22ccbb6f749776894b5b84fff69af14f47f78be0baaadfa86349d5b496eaefeb655fd38499e802a15843122723857ebddb629cf3d67efcf7e504aa20004861ac8b01d02f8671a53780cb4805a580d06cb5dfdeaf1ea9fa2c0caea8677b0d86b97c3e47bce6923213c0e08fac0906b62afdad6824500b1cbaf014627e4e5b9e8701901d74b64bf51f1c21cdc785b54dc5a6ba39fc75f956b60a372f6421a84f6001b294487baf1bb049b7bd901c5854c0999a82095874b02da90021a685f7c77f4b724a3d27489c091807b32bcdfb2c68f69b50c0b43c78288c333dbb007874f36fcf224fbc2ed89690f64a62b5ecfe6275750eb1a5575f689ca6d59c9a570689372db120cf6a29177caaace5ac671a3607d37a3048af18d1d736ac8a4dde8efc4884f8eab23cdc8cb15170471ee7b416b5cf089dee8ab8ac3eea6700a6040839c1e86f6d2b5acf9c7bac856cae96e9d1b7142f91ac4818cf0007a23100ae621470ac2552116f30948f21602237d12d29f58ca73f10f05b38f7b4b728fcfd8aafc1a82502aae3081c4bc8a77771aef16247bcf26d8569140441c405a3c21a649a8439797f45e7c37a2025318f4c88e3eba454fd4cc37e9978b59fa7b1e41af450523713fdad8070c7abdeea299474c99b2bde737e8c8ad79cb9fdd70a935ad29504d185bf100a339d203cd929030454a6450132255fea11ba0c6a520fa7cc3b8638f8032a61c492f7f9d1ec591a851f25df9238945ae467126b64019f21a71a2d3ef46cdd7b61773ad632dc77e0bda7d06b493efe940d9b975ebb85c423a83d24966f5e2ae2ec9c3b2257cc21a4989dd016d688865ba5245667c302e408dc56ffdf4282ad834f0c5af1ce49b3997fe397faf6874cac24ae346b4e72e468506c0e724efe6f805e0fd115de39b6fa29d05e11bbe2ec27548517f93ebd7b977b13237ab9c40ff5766f7263ea1f2eabba460600cd7da082fcf8d0a7bd37054abfd6040f886dde48cf600612b5b73a44026e79d46336de73f2ea5fbfc9603ccd89f6954e5093b6bfe556e6f67deb0878128049186f7ac6ef461a56c2bb4f24a9679fb386e06052c3da2f367f14bc41ec191f5b0b7b3ccad1f2cc58c863c49055c889b8b04b6b6cbaec50d0d103d4ea0da75952a730b07cea0da43914b5ab3f30b5104d9a75eb003da0b5b97bf9eb9081194cc5b50362041a972841bdafde31909929237ed5b94c88dd05126cdb3fd25add0c777c2ad021e1a0e7140d6c4c2005cb353a7a6a747ee75467c052f55faa485cbcf3758eafba7a8ef00d1481cc0f05af539116f443cb02a7b30a3de899dc66cb0781ccccf5c8d93b34be0665d11cbca55cd7a424b958124edf1289c7f4fc19c1be8fc7a861ce47c43a641bafdb195e1c74a1fbf69dbd518013f3dbf2860818b5a3e6f1dd36a5546bfd416e9714dec29818ecd1aeeb29c319b407c497621248d232680417486698a3e1262f03a8bc6441d1de40ae351dae4527a8efe25fc68a3f1571aa556edd6bfb9db7caba4d2c02bab003c43055f5d3ebf961735c3b1f4cd3e0a96038697a95cceac08c0aff084450cf571f81c95d468826aa4292997ccfeba32db77c4c22a9d3caa0a37a8a961ac2f2c8a6965687143bc93c620503839fd7bd7fc2e6d9c966586b713f824b8e9d3de55cb1b81f9204b92dfaa066920c0910e62e59650e904e05b94bde3e467d45719d6a3b85a71c8ff1dcca5a5f497928db5f64c55aad93513e87f4f0c93a6fa5a9afe929cf8223ea509f584913844044aa23a4afa4bc0ad975f4904aab5d77b5e51511460a3b7a21cbba335b99bb526526223a942a6c13f0befee200b11b4ddbd329027cbe720b", "shared_secrets": [ "2d7581974cde41b42da1d0a3147704aae5a71e8987fa30dc920c8cdf784b661d", "bb599b824ce9e123c8cb27cd50a996e5035b8ae903356dcbff224496aab3a891", diff --git a/doc/schemas/lightning-decode.json b/doc/schemas/lightning-decode.json index 0523f2def593..68a689894233 100644 --- a/doc/schemas/lightning-decode.json +++ b/doc/schemas/lightning-decode.json @@ -2302,33 +2302,33 @@ "id": "example:decode#2", "method": "decode", "params": [ - "lnbcrt2u1pn2s3xxsp5cpcdj2cy5wpd2nphp2evrp9kqymxf9434zftkmdd6dlgmy8cu78qpp58yq5qf3h0694xwymzjs5e8eejce83vjmxv6cpwqv8cs9e05dxe4qdqcdserygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq9wlpxf8ur0q798646w94tduf6wfkaw7m0ecmxepgatd4utvsyvcy0pku9t8m39rlsjzhe8x53mup5jkn0f84clfj3ctc6qj09t35wxspycpup2" + "lnbcrt100n1pnt2000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000" ] }, "response": { "type": "bolt11 invoice", "currency": "bcrt", - "created_at": 1722303686, + "created_at": 1723161045, "expiry": 604800, "payee": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "amount_msat": 200000, "description": "l22 description", "min_final_cltv_expiry": 5, - "payment_secret": "c070d92b04a382d54c370ab2c184b601366496b1a892bb6dadd37e8d90f8e78e", + "payment_secret": "paymentsecretinvl00220002200022000220002200022000220002200022000", "features": "02024100", "routes": [ [ { "pubkey": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "short_channel_id": "111x1x1", "fee_base_msat": 1, "fee_proportional_millionths": 10, "cltv_expiry_delta": 6 } ] ], - "payment_hash": "39014026377e8b53389b14a14c9f39963278b25b333580b80c3e205cbe8d366a", - "signature": "304402202bbe1324fc1bc1e29f55d38b55b789d3936ebbdb7e71b36428eadb5e2d90233002204786dc2acfb8947f84857c9cd48ef81a4ad37a4f5c7d328e178d024f2ae3471a", + "payment_hash": "paymenthashinvl0220002200022000220002200022000220002200022000310", + "signature": "3045022100e26290a57769dc5e5078c4bbac8fe2e5e108523fa5d84e09d722023fc40be72102205901bb062b29b080078731894d34b37c87e5e48eb8de585de328958e0f4ef06f", "valid": true } } diff --git a/doc/schemas/lightning-decodepay.json b/doc/schemas/lightning-decodepay.json index 5a31a934b5c9..6be8983f5602 100644 --- a/doc/schemas/lightning-decodepay.json +++ b/doc/schemas/lightning-decodepay.json @@ -266,32 +266,32 @@ "id": "example:decodepay#1", "method": "decodepay", "params": { - "bolt11": "lnbcrt100n1pn2s3xxsp5s4wvy67lduz0tpxzmw0x0m8z5krfn6ppeu3a9t559tcdxquqwjfqpp5r0zx30ded4lpxp7vrdxqenmwr9rqftn93dcymvmuaxpu8y5zxunqdqcdscnzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyk0lnqhsl07405jsqzyyaheu3dhxdv6s498ex97yvacs04gf6carplepnh5drlse8spy8nluz4uwj78h47ez6hak9md2s8mtg6yy5tcqt8yfsj" + "bolt11": "lnbcrt100n1pnt2000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000" } }, "response": { "currency": "bcrt", - "created_at": 1722303686, + "created_at": 1723161045, "expiry": 604800, "payee": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", "amount_msat": 10000, "description": "l11 description", "min_final_cltv_expiry": 5, - "payment_secret": "855cc26bdf6f04f584c2db9e67ece2a58699e821cf23d2ae942af0d303807492", + "payment_secret": "paymentsecretinvl00110001100011000110001100011000110001100011000", "features": "02024100", "routes": [ [ { "pubkey": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "fee_base_msat": 1, "fee_proportional_millionths": 10, "cltv_expiry_delta": 6 } ] ], - "payment_hash": "1bc468bdb96d7e1307cc1b4c0ccf6e194604ae658b704db37ce983c392823726", - "signature": "30440220259ff982f0fbfd57d25000884edf3c8b6e66b350a94f9317c4677107d509d63a022030ff219de8d1fe193c0243cffc1578e978f7afb22d5fb62edaa81f6b46884a2f" + "payment_hash": "paymenthashinvl0110001100011000110001100011000110001100011000310", + "signature": "3045022100f68c63644c4c4bff9a3c3031f43441b185e4c379daf471e7b15cdb23bcd2216e0220604d4ce8918caf8dfe828b57fbe2343df1a2b018c8563a3e7afaa04743c6e5fb" } } ] diff --git a/doc/schemas/lightning-delforward.json b/doc/schemas/lightning-delforward.json index 671795446a4d..ff149e9a20c5 100644 --- a/doc/schemas/lightning-delforward.json +++ b/doc/schemas/lightning-delforward.json @@ -65,7 +65,7 @@ "id": "example:delforward#1", "method": "delforward", "params": { - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 4, "status": "local_failed" } @@ -77,7 +77,7 @@ "id": "example:delforward#2", "method": "delforward", "params": [ - "109x1x1", + "109x1x0", 19, "failed" ] diff --git a/doc/schemas/lightning-delinvoice.json b/doc/schemas/lightning-delinvoice.json index 66e492503ef5..ff82f330af83 100644 --- a/doc/schemas/lightning-delinvoice.json +++ b/doc/schemas/lightning-delinvoice.json @@ -301,12 +301,12 @@ }, "response": { "label": "lbl_l36", - "bolt11": "lnbcrt500u1pn2s3fwsp5e6nltgzk3yqn5033r6z2q32pzduys3zs5dtzc5cjs60ppcgytrsqpp5ykhhcxzcqeng2gfggmsdja3x8h0qmkl35lw9z7n99pfkg8w0s8asdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwn7uwmy3x8u9c4ea0ka0yp3qvs0w9m7459g65kalm553vusctq8kseaph7tav4ryjfghnhu0ggjhhkrqmafarqkdsrzsk8stcvdmpmcqwfsajc", - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "bolt11": "lnbcrt500u1pnt2k3msp5nulzpql6mmajs32hjch008f0feut0w402xgwztsq2hche4jyszwspp5vzecw92mvwmffuzgj82r7hu58sdkyglh0gsrgzuxfept6llh72nsdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqva89y70xvqgrmnu0zltgwq0stuk6qgmu72qnlttqx9kkwpvqr8jykfpv3uhg6spyh5zfn29c85w8p3xurwfdj67skzfndyk0mxrkwasqlc5ml9", + "payment_hash": "60b387155b63b694f04891d43f5f943c1b6223f77a20340b864e42bd7ff7f2a7", "amount_msat": 50000000, "status": "unpaid", "description": "l36 description", - "expires_at": 1722908590, + "expires_at": 1723765947, "created_index": 9 } }, @@ -322,15 +322,15 @@ }, "response": { "label": "lbl_l37", - "bolt11": "lnbcrt500u1pn2s3fwsp5g96a3t3kn2we3ulrepd8eg4nw900wc324r06zlpr8py7p4zyftrspp5ggs9vzev5gcgthdysjrk0pcjgl3r5fwy4zgw6m48kk9nwx4h9slqdqcdsenwgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwkmgxwugmtjvf9cu324h87x5ux3cwa6glefyfxvergy3mw8gwtnzg05mrf69yz0dafk4n7u7asaxh2nx5jsylwvqttzxmr9krpc9rlsquhqkt4", - "payment_hash": "4220560b2ca23085dda4848767871247e23a25c4a890ed6ea7b58b371ab72c3e", + "bolt11": "lnbcrt500u1pnt2k3msp5tr8sxnf8a060cwt3fdqsx3h4tml5fm54hkkxxdhqz8xg04gxmeeqpp5fgyzaqca8wrxukx4wdh04n385k9lq2w3s4unsw48ml4wt3084hrqdqcdsenwgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq0ftwz4458tg0dv0p7te5cgfql5nx94kq550c8pa5y5kdf6uswnmhz0vhjptu23kgjef7fygdpeflsjs8f0s2sa82nv264fr4334uvqcpx944aw", + "payment_hash": "4a082e831d3b866e58d5736eface27a58bf029d18579383aa7dfeae5c5e7adc6", "amount_msat": 50000000, "status": "paid", "pay_index": 9, "amount_received_msat": 50000000, - "paid_at": 1722303802, - "payment_preimage": "e876ca5ae4ed9897178b2b3a17997256ad669335eb9201e05e3c97ffb83c634b", - "expires_at": 1722908590, + "paid_at": 1723161159, + "payment_preimage": "a6da4e8cc8dd289b69cfa9015cf0c9bfa8cf396cc6ab54c1f2d6b876d195c754", + "expires_at": 1723765947, "created_index": 10, "updated_index": 9 } diff --git a/doc/schemas/lightning-delpay.json b/doc/schemas/lightning-delpay.json index 4d900f71e981..165975c4d7cb 100644 --- a/doc/schemas/lightning-delpay.json +++ b/doc/schemas/lightning-delpay.json @@ -212,7 +212,7 @@ "id": "example:delpay#1", "method": "delpay", "params": { - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "ad461b30618762749f006ace61bc7f8685d24f32b8555cee5384ff89601f89e6", "status": "complete" } }, @@ -221,17 +221,17 @@ { "created_index": 1, "id": 1, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "ad461b30618762749f006ace61bc7f8685d24f32b8555cee5384ff89601f89e6", "groupid": 1, "updated_index": 1, "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "amount_msat": 500000000, "amount_sent_msat": 500000000, - "created_at": 1722303670, - "completed_at": 1722303671, + "created_at": 1723161029, + "completed_at": 1723161030, "status": "complete", - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4" + "payment_preimage": "e5815b3a279dd722500a0c3dfa7e3a214815e173fdc2a3215d391e281aa5a785", + "bolt11": "lnbcrt5m1pnt2kw9sp5mh4fyw80k8c3zxkx6hfgmh4msj7gg7spr2rf7e66kulj4jfwm49qpp544rpkvrpsa38f8cqdt8xr0rls6zaynejhp24emjnsnlcjcql38nqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqj7ez5u6pz9cp6jyzxn9u07ppgwnquak0k676rfvruvnwwfuws5msje06nc9s74dzwqn7r0x7rpwhmlzwest59j7s0820mwnr9zpjylcqaygvrg" } ] } @@ -241,7 +241,7 @@ "id": "example:delpay#2", "method": "delpay", "params": [ - "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "60b387155b63b694f04891d43f5f943c1b6223f77a20340b864e42bd7ff7f2a7", "failed" ] }, @@ -250,16 +250,16 @@ { "created_index": 20, "id": 20, - "payment_hash": "25af7c1858066685212846e0d976263dde0ddbf1a7dc517a652853641dcf81fb", + "payment_hash": "60b387155b63b694f04891d43f5f943c1b6223f77a20340b864e42bd7ff7f2a7", "groupid": 1, "updated_index": 19, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 50000000, "amount_sent_msat": 50000501, - "created_at": 1722303803, - "completed_at": 1722303806, + "created_at": 1723161159, + "completed_at": 1723161163, "status": "failed", - "bolt11": "lnbcrt500u1pn2s3fwsp5e6nltgzk3yqn5033r6z2q32pzduys3zs5dtzc5cjs60ppcgytrsqpp5ykhhcxzcqeng2gfggmsdja3x8h0qmkl35lw9z7n99pfkg8w0s8asdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqwn7uwmy3x8u9c4ea0ka0yp3qvs0w9m7459g65kalm553vusctq8kseaph7tav4ryjfghnhu0ggjhhkrqmafarqkdsrzsk8stcvdmpmcqwfsajc" + "bolt11": "lnbcrt500u1pnt2k3msp5nulzpql6mmajs32hjch008f0feut0w402xgwztsq2hche4jyszwspp5vzecw92mvwmffuzgj82r7hu58sdkyglh0gsrgzuxfept6llh72nsdqcdsenvgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqva89y70xvqgrmnu0zltgwq0stuk6qgmu72qnlttqx9kkwpvqr8jykfpv3uhg6spyh5zfn29c85w8p3xurwfdj67skzfndyk0mxrkwasqlc5ml9" } ] } @@ -269,7 +269,7 @@ "id": "example:delpay#3", "method": "delpay", "params": { - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "319a74c85b5f654fe37079a4a6dddbc8dbcc6152b51d1206822e81f577464d77", "status": "failed", "groupid": 1, "partid": 2 @@ -280,15 +280,15 @@ { "created_index": 17, "id": 17, - "payment_hash": "647252f7e45fce7bb964523206874f40f58fbb7b208bc08967caa0e2404990c9", + "payment_hash": "319a74c85b5f654fe37079a4a6dddbc8dbcc6152b51d1206822e81f577464d77", "groupid": 1, "updated_index": 16, "partid": 2, "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", "amount_msat": 1000000, "amount_sent_msat": 1000000, - "created_at": 1722303798, - "completed_at": 1722303799, + "created_at": 1723161154, + "completed_at": 1723161155, "status": "failed" } ] diff --git a/doc/schemas/lightning-dev-forget-channel.json b/doc/schemas/lightning-dev-forget-channel.json index d25477d3dbf0..77706e52f08d 100644 --- a/doc/schemas/lightning-dev-forget-channel.json +++ b/doc/schemas/lightning-dev-forget-channel.json @@ -104,7 +104,7 @@ "response": { "forced": false, "funding_unspent": false, - "funding_txid": "c40c9d52aaac47f76c67163a2efc005df189b36b855b0ad209da7d0d066358b1" + "funding_txid": "txidchannel025000025000025000025000025000025000025000025000025000" } }, { @@ -116,14 +116,14 @@ "method": "dev-forget-channel", "params": { "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "short_channel_id": "111x1x1", "force": true } }, "response": { "forced": true, "funding_unspent": false, - "funding_txid": "cd23f0517eefc27194981253eb07b19b055246df77033e052c66eaf2bbb00483" + "funding_txid": "txidchannel023000023000023000023000023000023000023000023000023000" } } ] diff --git a/doc/schemas/lightning-disableinvoicerequest.json b/doc/schemas/lightning-disableinvoicerequest.json index e0cf5f50b1bb..5d11c89c9505 100644 --- a/doc/schemas/lightning-disableinvoicerequest.json +++ b/doc/schemas/lightning-disableinvoicerequest.json @@ -93,14 +93,14 @@ "id": "example:disableinvoicerequest#1", "method": "disableinvoicerequest", "params": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9" + "invreq_id": "dfd5175cf111403edd413bcf7586f84f9a1add15d71e0bee0ac477dba29d9590" } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "dfd5175cf111403edd413bcf7586f84f9a1add15d71e0bee0ac477dba29d9590", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lnr1qqgffnvv3r5u6s2xkka0uj78p5mv2zsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgru2dqmze048w9avxr7pukaqqpua7xemxdxshwuytxw308avxl7zjul9fn6ku8lt98g0t799r3446da2lg7x0zgk4uq0q440mldh2c3n", "used": false } } diff --git a/doc/schemas/lightning-disableoffer.json b/doc/schemas/lightning-disableoffer.json index 4afc623fa4f0..ed05b383cc41 100644 --- a/doc/schemas/lightning-disableoffer.json +++ b/doc/schemas/lightning-disableoffer.json @@ -92,14 +92,14 @@ "id": "example:disableoffer#1", "method": "disableoffer", "params": { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24" + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000" } }, "response": { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": false, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000000bolt12000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023", "used": false } } diff --git a/doc/schemas/lightning-emergencyrecover.json b/doc/schemas/lightning-emergencyrecover.json index 4fe17dde586b..26ad71c59975 100644 --- a/doc/schemas/lightning-emergencyrecover.json +++ b/doc/schemas/lightning-emergencyrecover.json @@ -57,9 +57,9 @@ }, "response": { "stubs": [ - "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9", - "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9" + "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", + "channelid0250000250000250000250000250000250000250000250000250000", + "e13472d6512413eb1bf03b9a0bb391d0e4152fd337fa6d1014e3de5e131918d9" ] } } diff --git a/doc/schemas/lightning-fetchinvoice.json b/doc/schemas/lightning-fetchinvoice.json index 078a8de402d9..94c833e5b33b 100644 --- a/doc/schemas/lightning-fetchinvoice.json +++ b/doc/schemas/lightning-fetchinvoice.json @@ -190,12 +190,12 @@ "id": "example:fetchinvoice#1", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000000bolt12000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021", "payer_note": "Thanks for the fish!" } }, "response": { - "invoice": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", + "invoice": "lni1qqgvw6ll0rde2kudadexeuk8zlj5sq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggz98qp4zu9wl3pt3sf79tz5j4ch6ucn8cuxs4djssrmd4x55t3wj44j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgzaet06nvpwh85lh9egg0fhuexutpzdqr26p9numyrzg3um5rprcnqzqnga8awfgjvzxhckehptq27mpewgwzle8wslypm8ejn626pg9eaksqryu9qnzfwvhggnrj6wg82f92m866uf6ktjt2t3ry6pnvhgn3tkej3g33kcm7pg5xx9neuq4t5glzp46dzfgsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv664na9gyrwk097eymw0t2h8ehhr0vs24vzuwqzw7wh629pjhcljpumwtgh4d2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqs8a62zz3kq94w29lzy7vjcqrkhjzqnv4k2r87uc2h5t7rmlqrjxqvj452dzc22ewl5k6utpe2vtfqe48fl78uqjdudcdd8g7ausf9wr7", "changes": {} } }, @@ -204,13 +204,13 @@ "id": "example:fetchinvoice#2", "method": "fetchinvoice", "params": { - "offer": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "offer": "lno1qgsq000000bolt12000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022", "amount_msat": 2000000, "quantity": 2 } }, "response": { - "invoice": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", + "invoice": "lni1qqgt2f5hkx9rww642wx5zj0xun72qq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssyfuvstwwnwvn8rpmdqmd6208dakptmp7utzhlatrq49wddjyp5k05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq0tcvy95a36qnel96xma5uzpdhr8xz99vd77a3mz7y3f3rujsp6svqgzs0cnys7s388xk7x2spwsr9vzsssnat5g7l0f5glvtms45teqt3jqqvkpvfp6r56gv6qgc25t7qp4jm9043xchu3rax3dg6qh4pkanhdfg3pfjqdznym02nhsutxk88h7hkv7msdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3nt2k054qsvndhaku8z8r6ce9y067xfdcyw8v5nxr5y2yj9dkd8swm645cgcp42qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgrht0wksh2f5lkvl3m2lrrcgrad8tc2v59c8yfdmgvpun27399mzcqjg5y4qe2qaf9rdewqfvtut40xzhwjnd35v7tmwxas0k36fws0e", "changes": {} } } diff --git a/doc/schemas/lightning-fundchannel.json b/doc/schemas/lightning-fundchannel.json index a952ebd2c446..f4189d531d99 100644 --- a/doc/schemas/lightning-fundchannel.json +++ b/doc/schemas/lightning-fundchannel.json @@ -248,8 +248,8 @@ } }, "response": { - "tx": "02000000000101a4f6a433b1c2625323c18bc25f880c3e7960722d9ca353d7ff5c2a2132d56a380000000000fdffffff0240420f0000000000220020b41521751a8eb257315f73a531763071cc39b7cece470f630fd5149fe7b7057a816cdc0b00000000225120a5410daebf4fc3cba618a840af497fbec4c3a084534f2b7b6a7d30bf35f8f566024730440220700ee63053ba1fea998685e721016c15cf7809fd77698560230457e122566f220220181aaa01f472ec575edc532bc612c749e7a3829f5616fc3289fd4dc7d96e98d8012102c8a8f25ed135cd671c88bd4e407bb3746678cfacbcf65ce89f8efc2aa0abe53596000000", - "txid": "8326851788c6da23bc883c960affc6126f766348c131eda53d73bc06f0bd90ff", + "tx": "02000000000102ae3315a8526a8cc54edd5a9bcd7eec472918dd5f87b84f02b94cba2864bee69a0000000000fdffffff3cbf1db93315a092c33743e2566a675e3f10f923609b72a4d3ddcc026264d8bb0100000000fdffffff0240420f0000000000220020b41521751a8eb257315f73a531763071cc39b7cece470f630fd5149fe7b7057a752de40b00000000225120a5410daebf4fc3cba618a840af497fbec4c3a084534f2b7b6a7d30bf35f8f5660247304402203eab28dafd60e3f8a69795415aa761a180c163c606eb5ede451b87ce3d98fd5102202e678e7378c845244f69b63ceec0971bb2ae6f06ed37c8abbf6ef2df8046dde2012102c8a8f25ed135cd671c88bd4e407bb3746678cfacbcf65ce89f8efc2aa0abe5350140547b993c7a897ba8323ed735cba100ff27af7c132f3cf08a842202769505def2e84f820a04183b8560cbf870b9ee54b0ec59438214c8496af55c2a711a2987529a000000", + "txid": "f34897e6ce0cb285bdde18dc64eeac11b36965c5fdb2491a3063c534cda0e5ff", "channel_id": "1267da6521b372d7c6407a74066f7a3a5bc3489bbda5eb9f0e990e1e913e2eb9", "channel_type": { "bits": [ @@ -266,7 +266,7 @@ }, { "description": [ - "This example shows how to to open new channel with peer 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 from one whole utxo c8afe317789f3ecbd52893d2ac08be7499486df5a03c95ad063e395e931eb50a:1 (you can use **listfunds** command to get txid and vout):" + "This example shows how to to open new channel with peer 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 from one whole utxo da0fd201c9f3fc41471facb655d67958e9d3fae5c0c5018cfc8e4ccb3927ae04:1 (you can use **listfunds** command to get txid and vout):" ], "request": { "id": "example:fundchannel#2", @@ -277,13 +277,13 @@ "feerate": "normal", "push_msat": 100000, "utxos": [ - "c8afe317789f3ecbd52893d2ac08be7499486df5a03c95ad063e395e931eb50a:1" + "da0fd201c9f3fc41471facb655d67958e9d3fae5c0c5018cfc8e4ccb3927ae04:1" ] } }, "response": { - "tx": "020000000001010ab51e935e393e06ad953ca0f56d489974be08acd29328d5cb3e9f7817e3afc80100000000fdffffff01cbb3eb0b00000000220020752dd5af63b98ff64fedf94683b0306c43f6eec74fbfe917639735b305e1b6d9024730440220431a00efd961f417160bd7180970a61b57c01b7c1e082d41429bb0c4e220d4180220542d0c9a1a59048751364b0ede571117fd8abdbf63d83d67a181c17ea3d3ef9e0121024740cce0e548f4ffe80c9914e43444d8e66ee8991dc9d93ec56dff4c56b933159a000000", - "txid": "20bbe695f309285479e6b63b8ab4346ce66b2db7018485e09d59175cec6156b1", + "tx": "0200000000010104ae2739cb4c8efc8c01c5c0e5fad3e95879d655b6ac1f4741fcf3c901d20fda0100000000fdffffff01cbb3eb0b00000000220020752dd5af63b98ff64fedf94683b0306c43f6eec74fbfe917639735b305e1b6d902473044022022dbfb353010fbd1aabf5cfa19b3d0a4585c594643656782f5911580e41f0df102206507fbb9fed9fb9d2012830bf02f4c668c2684ce538b88aeab705477ccb59c5a0121024740cce0e548f4ffe80c9914e43444d8e66ee8991dc9d93ec56dff4c56b933159a000000", + "txid": "8a709195376edcacb2aabed07f7c30162cf78441ee8b1b849771e02bcb96672a", "channel_id": "222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa", "channel_type": { "bits": [ diff --git a/doc/schemas/lightning-fundchannel_complete.json b/doc/schemas/lightning-fundchannel_complete.json index 7d57d9c8f2dd..b61c1f60a7f1 100644 --- a/doc/schemas/lightning-fundchannel_complete.json +++ b/doc/schemas/lightning-fundchannel_complete.json @@ -86,11 +86,11 @@ "method": "fundchannel_complete", "params": [ "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", - "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" + "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAHXKAXksva1AOg3UmAqhLRnDSyI+9+bpWQ5uktoFhgu2gEAAAAA/f///wKAlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVLPDf3gAAAAAWABQ5ADBekTVqTu1XOQI+TPEggmyj75QAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBDwQAAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" ] }, "response": { - "channel_id": "4ef7fbec78160e41ac53e32bb7d4d491222070cf719bd236a03a27109a306ced", + "channel_id": "3b11a704ed4a918b5c19b9da133ea36022b402dc420eba29bd53f73634206416", "commitments_secured": true } }, @@ -100,11 +100,11 @@ "method": "fundchannel_complete", "params": { "id": "027ba5906fad81fcdbb774b4c806eb572b7fac3bee4720b12c44e7f70931d4b7cc", - "psbt": "cHNidP8BAgQCAAAAAQMETgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAEAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gTvf77HgWDkGsU+Mrt9TUkSIgcM9xm9I2oDonEJowbO0BDwQBAAAAARAE/f///wABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLAA==" + "psbt": "cHNidP8BAgQCAAAAAQMElwAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAAAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gOxGnBO1KkYtcGbnaEz6jYCK0AtxCDropvVP3NjQgZBYBDwQBAAAAARAE/f///wABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLAA==" } }, "response": { - "channel_id": "589340033fb4e1ace8a5f6239a9bcc88e2d65191f68e4ad3f2ad37818718a2e9", + "channel_id": "e11a0c7c45c382b86dfef062a0d6c96545630c4b5dd499fce9a1311a6508217d", "commitments_secured": true } } diff --git a/doc/schemas/lightning-fundpsbt.json b/doc/schemas/lightning-fundpsbt.json index 02691a13ee40..50611b4e220f 100644 --- a/doc/schemas/lightning-fundpsbt.json +++ b/doc/schemas/lightning-fundpsbt.json @@ -219,7 +219,7 @@ } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAF4CAAAAASofqGPwUtBsb6fg/oqbsjl1g/yTl6b0Mz8dhW9f3p2mAAAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAAB94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BAAAAAP3///8CYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aICEHgAAAAAAIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd+YAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", "feerate_per_kw": 253, "estimated_final_weight": 693, "excess_msat": 196962507000, @@ -240,7 +240,7 @@ } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAF4CAAAAASofqGPwUtBsb6fg/oqbsjl1g/yTl6b0Mz8dhW9f3p2mAAAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE91AAAAAAEAiQIAAAAB94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BAAAAAP3///8CYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aICEHgAAAAAAIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd+YAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", "feerate_per_kw": 11000, "estimated_final_weight": 612, "excess_msat": 0, diff --git a/doc/schemas/lightning-getinfo.json b/doc/schemas/lightning-getinfo.json index 39529d13e551..7d51c4779c81 100644 --- a/doc/schemas/lightning-getinfo.json +++ b/doc/schemas/lightning-getinfo.json @@ -390,9 +390,9 @@ "params": {} }, "response": { - "id": "02bf811f7571754f0b51e6d41a8885f5561041a7b14fac093e4cffb95749de1a8d", - "alias": "SLICKERGOPHER", - "color": "02bf81", + "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", + "alias": "SILENTARTIST", + "color": "022d22", "num_peers": 0, "num_pending_channels": 0, "num_active_channels": 0, @@ -402,15 +402,14 @@ { "type": "ipv4", "address": "127.0.0.1", - "port": 9736 + "port": 19735 } ], - "version": "v0.10.2", - "blockheight": 724302, - "network": "bitcoin", - "msatoshi_fees_collected": 0, - "fees_collected_msat": "0msat", - "lightning-dir": "/media/vincent/Maxtor/C-lightning/node/bitcoin", + "version": "v24.08", + "blockheight": 107, + "network": "regtest", + "fees_collected_msat": 0, + "lightning-dir": "/tmp/.lightning/regtest", "our_features": { "init": "08a0802a8a59a1", "node": "88a0802a8a59a1", diff --git a/doc/schemas/lightning-getlog.json b/doc/schemas/lightning-getlog.json index 10585dab9791..82de0a142e1e 100644 --- a/doc/schemas/lightning-getlog.json +++ b/doc/schemas/lightning-getlog.json @@ -240,55 +240,55 @@ } }, "response": { - "created_at": "1722303623.956237697", - "bytes_used": 1723719, + "created_at": "1723160978.104277600", + "bytes_used": 1714318, "bytes_max": 10485760, "log": [ { "type": "SKIPPED", - "num_skipped": 2927 + "num_skipped": 2939 }, { "type": "UNUSUAL", - "time": "59.598510878", + "time": "64.705442821", "node_id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", "source": "chan#1", - "log": "No peer channel with scid=6250403x3681116x19863" + "log": "No peer channel with scid=9350685x13330835x26331" }, { "type": "SKIPPED", - "num_skipped": 1183 + "num_skipped": 1186 }, { "type": "UNUSUAL", - "time": "71.923794351", + "time": "76.462578712", "node_id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "source": "chan#2", "log": "Peer permanent failure in CLOSINGD_COMPLETE: Funding transaction spent (reason=unknown)" }, { "type": "SKIPPED", - "num_skipped": 557 + "num_skipped": 565 }, { "type": "BROKEN", - "time": "89.108598990", + "time": "96.021433789", "source": "plugin-topology", - "log": "DEPRECATED API USED: listchannels.include_private by \\\"-c:listchannels#114/cln:listchannels#175\\\"" + "log": "DEPRECATED API USED: listchannels.include_private by \\\"-c:listchannels#116/cln:listchannels#179\\\"" }, { "type": "SKIPPED", - "num_skipped": 1246 + "num_skipped": 1241 }, { "type": "UNUSUAL", - "time": "95.217065000", + "time": "99.254343096", "source": "plugin-cln-renepay", - "log": "Failed to update hint channel 111x1x0: Failed to update scid=111x1x0 in the local_gossmods." + "log": "Failed to update hint channel 111x1x1: Failed to update scid=111x1x1 in the local_gossmods." }, { "type": "SKIPPED", - "num_skipped": 1696 + "num_skipped": 1716 } ] } diff --git a/doc/schemas/lightning-getroute.json b/doc/schemas/lightning-getroute.json index eba3009d85b4..02c0559ec8d3 100644 --- a/doc/schemas/lightning-getroute.json +++ b/doc/schemas/lightning-getroute.json @@ -380,7 +380,7 @@ "route": [ { "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "109x1x1", + "channel": "109x1x0", "direction": 1, "amount_msat": 10001, "delay": 15, @@ -388,7 +388,7 @@ }, { "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, @@ -412,7 +412,7 @@ "route": [ { "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "channel": "111x1x1", "direction": 0, "amount_msat": 500006, "delay": 15, @@ -420,7 +420,7 @@ }, { "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "channel": "113x1x1", + "channel": "113x1x0", "direction": 0, "amount_msat": 500000, "delay": 9, diff --git a/doc/schemas/lightning-invoice.json b/doc/schemas/lightning-invoice.json index aa8289178fc8..24f86a6c77ad 100644 --- a/doc/schemas/lightning-invoice.json +++ b/doc/schemas/lightning-invoice.json @@ -211,10 +211,10 @@ } }, "response": { - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "expires_at": 1722908474, - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54", - "payment_secret": "64733783b118ff27576f72c473c0c52814f1f47c4de41492194ddd7855486024", + "payment_hash": "9388b6ef0a95bf4472268109025ce0c0234140da543b43f2a8b2a402d7dc02d9", + "expires_at": 1723765834, + "bolt11": "lnbcrt100n1pnt2kw2sp5shnzqxn4px7npnxdmhp8wwwfl5qqnjy03hcuk93mffjk4ew3kzcspp5jwytdmc2jkl5gu3xsyysyh8qcq35zsx62sa58u4gk2jq947uqtvsdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq0cmu9m29gwc04x95hgz9pajm27xktpxz05l6tkcdr4vlgrjydc9q77zzltafv23n0nvyz90m66v3x49gakp8yqgdwdl8850wcz7m2psqy96vnx", + "payment_secret": "85e6201a7509bd30cccdddc27739c9fd0009c88f8df1cb163b4a656ae5d1b0b1", "created_index": 2 } }, @@ -229,10 +229,10 @@ } }, "response": { - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "expires_at": 1722908474, - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll", - "payment_secret": "bd162d243b8b4cc1fdd89bb6901e8cad1c99563b6ec3f0e33ab714cda5b719a8", + "payment_hash": "a96043920086e6ab85a8012658503a9315ef18968eb7e21c1a6a226718c34bfc", + "expires_at": 1723765834, + "bolt11": "lnbcrt500n1pnt2kw2sp5v3ugfqj5wjm609h5qh94nudynjlnfucjun238elqn4x0dkrcvqvqpp549sy8ysqsmn2hpdgqyn9s5p6jv277xyk36m7y8q6dg3xwxxrf07qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq6466cyj0mfzykj3qczz5hfwutx6nmp4mrrvpugqsdmq5tlyc9mt9vspsya8l4vzy9f8fxsm33u2477u060dmxl7y5n9jxykvd3hjk6gpgz2hhc", + "payment_secret": "647884825474b7a796f405cb59f1a49cbf34f312e4d513e7e09d4cf6d8786018", "created_index": 3 } } diff --git a/doc/schemas/lightning-invoicerequest.json b/doc/schemas/lightning-invoicerequest.json index 6bf56281e937..b6a95d7221f1 100644 --- a/doc/schemas/lightning-invoicerequest.json +++ b/doc/schemas/lightning-invoicerequest.json @@ -133,10 +133,10 @@ } }, "response": { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "bd8ae303d375cb2e4b588207f378b10756669e40a205a4f450620c63dc9a07f4", "active": true, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "bolt12": "lnr1qqgvfypggatztds3xxugvmyx9h8fuzst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq883ffy3mps8ctfgd77glkgrlrd4heq6tx3vppvhse9p4ghfzgr4wlmqh3jg7zylz345s5973d763rrrrkju5zs7p7s4uztqp8dqwt3g", "used": false } }, @@ -151,10 +151,10 @@ } }, "response": { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "dfd5175cf111403edd413bcf7586f84f9a1add15d71e0bee0ac477dba29d9590", "active": true, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lnr1qqgffnvv3r5u6s2xkka0uj78p5mv2zsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgru2dqmze048w9avxr7pukaqqpua7xemxdxshwuytxw308avxl7zjul9fn6ku8lt98g0t799r3446da2lg7x0zgk4uq0q440mldh2c3n", "used": false } } diff --git a/doc/schemas/lightning-keysend.json b/doc/schemas/lightning-keysend.json index a53ea0fa0da9..1ec6f2c073ed 100644 --- a/doc/schemas/lightning-keysend.json +++ b/doc/schemas/lightning-keysend.json @@ -235,12 +235,12 @@ }, "response": { "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", - "created_at": 1722303677.1300898, + "payment_hash": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf", + "created_at": 1723161036.2705784, "parts": 1, "amount_msat": 10000, "amount_sent_msat": 10001, - "payment_preimage": "0d802c9c611bae611d51afa8ddf396df8ba4e0580a2eccfd1120da97e70482a0", + "payment_preimage": "356d839047cb0394bcae53c56d5f59edf18cd6f4ac99421a3b715210984ec026", "status": "complete" } }, @@ -259,12 +259,12 @@ }, "response": { "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", - "created_at": 1722303679.3164163, + "payment_hash": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", + "created_at": 1723161038.478677, "parts": 1, "amount_msat": 10000000, "amount_sent_msat": 10000202, - "payment_preimage": "f76d6b7ef362f33e25eb5571e616f6e539a2c77caf0afa4227d1351546823664", + "payment_preimage": "59942e54e270b11616ae3498fd024859d528e475dbcc03e821281f105ef93855", "status": "complete" } }, @@ -278,7 +278,7 @@ "routehints": [ [ { - "scid": "6250403x3681116x19863", + "scid": "9350685x13330835x26331", "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "feebase": "1msat", "feeprop": 10, @@ -290,12 +290,12 @@ }, "response": { "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", - "created_at": 1722303682.5805738, + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", + "created_at": 1723161041.844587, "parts": 2, "amount_msat": 10000, "amount_sent_msat": 10001, - "payment_preimage": "4dad6dcf625f650a35a8199fbda18ea4f6717cdfadb40e6bed2bf5f96a4742b0", + "payment_preimage": "70cd654b83994cf48e2a9552930859ab3b23f6b90400c9124ae9445fed2be2e9", "status": "complete" } } diff --git a/doc/schemas/lightning-listchannels.json b/doc/schemas/lightning-listchannels.json index f53ba5a473a8..ba0b370764d3 100644 --- a/doc/schemas/lightning-listchannels.json +++ b/doc/schemas/lightning-listchannels.json @@ -190,7 +190,7 @@ "id": "example:listchannels#1", "method": "listchannels", "params": { - "short_channel_id": "109x1x1" + "short_channel_id": "109x1x0" } }, "response": { @@ -198,14 +198,14 @@ { "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303662, + "last_update": 1723161021, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -216,14 +216,14 @@ { "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, "active": true, - "last_update": 1722303662, + "last_update": 1723161021, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -245,14 +245,14 @@ { "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303662, + "last_update": 1723161021, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -263,14 +263,14 @@ { "source": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, "active": true, - "last_update": 1722303662, + "last_update": 1723161021, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -281,14 +281,14 @@ { "source": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "111x1x0", + "short_channel_id": "111x1x1", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 2, "active": false, - "last_update": 1722303692, + "last_update": 1723161052, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -299,14 +299,14 @@ { "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "short_channel_id": "111x1x0", + "short_channel_id": "111x1x1", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303669, + "channel_flags": 3, + "active": false, + "last_update": 1723161052, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -317,14 +317,14 @@ { "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "short_channel_id": "113x1x1", + "short_channel_id": "113x1x0", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 0, - "active": true, - "last_update": 1722303669, + "channel_flags": 2, + "active": false, + "last_update": 1723161052, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -335,14 +335,14 @@ { "source": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "113x1x1", + "short_channel_id": "113x1x0", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, - "channel_flags": 1, - "active": true, - "last_update": 1722303669, + "channel_flags": 3, + "active": false, + "last_update": 1723161052, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -360,7 +360,7 @@ "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303711, + "last_update": 1723161072, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -378,7 +378,7 @@ "message_flags": 1, "channel_flags": 1, "active": true, - "last_update": 1722303711, + "last_update": 1723161072, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -389,14 +389,14 @@ { "source": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "short_channel_id": "125x1x1", + "short_channel_id": "125x1x0", "direction": 0, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 0, "active": true, - "last_update": 1722303714, + "last_update": 1723161076, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, @@ -407,14 +407,14 @@ { "source": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "short_channel_id": "125x1x1", + "short_channel_id": "125x1x0", "direction": 1, "public": true, "amount_msat": 1000000000, "message_flags": 1, "channel_flags": 1, "active": true, - "last_update": 1722303714, + "last_update": 1723161076, "base_fee_millisatoshi": 1, "fee_per_millionth": 10, "delay": 6, diff --git a/doc/schemas/lightning-listconfigs.json b/doc/schemas/lightning-listconfigs.json index a299a4556871..20067f1dff93 100644 --- a/doc/schemas/lightning-listconfigs.json +++ b/doc/schemas/lightning-listconfigs.json @@ -2510,7 +2510,7 @@ "params": {} }, "response": { - "# version": "v24.05-190-g5fd2f9c-modded", + "# version": "v24.08", "developer": true, "lightning-dir": "/tmp/.lightning/", "network": "regtest", @@ -2543,7 +2543,7 @@ "bitcoin-datadir": "/tmp/.lightning/", "bitcoin-rpcuser": "rpcuser", "bitcoin-rpcpassword": "rpcpass", - "bitcoin-rpcport": 51251, + "bitcoin-rpcport": 42741, "bitcoin-rpcclienttimeout": 60, "bitcoin-retry-timeout": 60 } @@ -2620,7 +2620,7 @@ "experimental-peer-storage": false, "experimental-quiesce": false, "rgb": "022d22", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "alias": "SILENTARTIST", "pid-file": "/tmp/.lightning/lightningd-regtest.pid", "ignore-fee-limits": false, "watchtime-blocks": 5, @@ -2633,11 +2633,11 @@ "rescan": 1, "fee-per-satoshi": 10, "htlc-minimum-msat": 0, - "htlc-maximum-msat": 18446744073709552000, + "htlc-maximum-msat": 18446744073709551615, "max-concurrent-htlcs": 483, "max-dust-htlc-exposure-msat": 50000000, "min-capacity-sat": 10000, - "addr": "127.0.0.1:41219", + "addr": "127.0.0.1:19735", "announce-addr-discovered": "auto", "announce-addr-discovered-port": 19846, "offline": false, @@ -2748,7 +2748,7 @@ "source": "default" }, "alias": { - "value_str": "SILENTARTIST-190-g5fd2f9c-modded", + "value_str": "SILENTARTIST", "source": "default" }, "pid-file": { @@ -2800,7 +2800,7 @@ "source": "default" }, "htlc-maximum-msat": { - "value_msat": 18446744073709552000, + "value_msat": 18446744073709551615, "source": "default" }, "max-concurrent-htlcs": { @@ -2818,7 +2818,7 @@ }, "addr": { "values_str": [ - "127.0.0.1:41219" + "127.0.0.1:19735" ], "sources": [ "cmdline" @@ -2958,7 +2958,7 @@ "plugin": "/root/lightning/plugins/bcli" }, "bitcoin-rpcport": { - "value_int": 51251, + "value_int": 42741, "source": "cmdline", "plugin": "/root/lightning/plugins/bcli" }, diff --git a/doc/schemas/lightning-listforwards.json b/doc/schemas/lightning-listforwards.json index f1e0115c3afd..31692550939b 100644 --- a/doc/schemas/lightning-listforwards.json +++ b/doc/schemas/lightning-listforwards.json @@ -381,8 +381,8 @@ "id": "example:listforwards#1", "method": "listforwards", "params": { - "in_channel": "109x1x1", - "out_channel": "111x1x0", + "in_channel": "109x1x0", + "out_channel": "111x1x1", "status": "settled" } }, @@ -391,92 +391,92 @@ { "created_index": 1, "updated_index": 1, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 1, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 1, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303675.3853297, - "resolved_time": 1722303676.8396847 + "received_time": 1723161034.465313, + "resolved_time": 1723161035.9890995 }, { "created_index": 2, "updated_index": 2, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 2, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 2, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303677.6214294, - "resolved_time": 1722303679.0363395 + "received_time": 1723161036.7630842, + "resolved_time": 1723161038.2169142 }, { "created_index": 3, "updated_index": 3, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 3, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 3, "in_msat": 10000202, "out_msat": 10000101, "fee_msat": 101, "status": "settled", "style": "tlv", - "received_time": 1722303679.8093705, - "resolved_time": 1722303682.2599013 + "received_time": 1723161039.0058608, + "resolved_time": 1723161041.5448842 }, { "created_index": 5, "updated_index": 4, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 5, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 4, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303684.4914763, - "resolved_time": 1722303685.8940926 + "received_time": 1723161043.8518093, + "resolved_time": 1723161045.335362 }, { "created_index": 6, "updated_index": 5, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 6, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 5, "in_msat": 50001, "out_msat": 50000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303686.7160892, - "resolved_time": 1722303688.1316907 + "received_time": 1723161046.2027037, + "resolved_time": 1723161047.6664333 }, { "created_index": 7, "updated_index": 6, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 7, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 7, "in_msat": 1002, "out_msat": 1001, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303689.9082303, - "resolved_time": 1722303692.3156552 + "received_time": 1723161049.485822, + "resolved_time": 1723161051.974929 } ] } @@ -492,116 +492,116 @@ { "created_index": 1, "updated_index": 1, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 1, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 1, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303675.3853297, - "resolved_time": 1722303676.8396847 + "received_time": 1723161034.465313, + "resolved_time": 1723161035.9890995 }, { "created_index": 2, "updated_index": 2, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 2, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 2, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303677.6214294, - "resolved_time": 1722303679.0363395 + "received_time": 1723161036.7630842, + "resolved_time": 1723161038.2169142 }, { "created_index": 3, "updated_index": 3, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 3, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 3, "in_msat": 10000202, "out_msat": 10000101, "fee_msat": 101, "status": "settled", "style": "tlv", - "received_time": 1722303679.8093705, - "resolved_time": 1722303682.2599013 + "received_time": 1723161039.0058608, + "resolved_time": 1723161041.5448842 }, { "created_index": 4, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 4, - "out_channel": "6250403x3681116x19863", + "out_channel": "9350685x13330835x26331", "in_msat": 10001, "status": "local_failed", "failcode": 16394, "failreason": "WIRE_UNKNOWN_NEXT_PEER", "style": "tlv", - "received_time": 1722303683.0972922 + "received_time": 1723161042.329466 }, { "created_index": 5, "updated_index": 4, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 5, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 4, "in_msat": 10001, "out_msat": 10000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303684.4914763, - "resolved_time": 1722303685.8940926 + "received_time": 1723161043.8518093, + "resolved_time": 1723161045.335362 }, { "created_index": 6, "updated_index": 5, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 6, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 5, "in_msat": 50001, "out_msat": 50000, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303686.7160892, - "resolved_time": 1722303688.1316907 + "received_time": 1723161046.2027037, + "resolved_time": 1723161047.6664333 }, { "created_index": 7, "updated_index": 6, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 7, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "out_htlc_id": 7, "in_msat": 1002, "out_msat": 1001, "fee_msat": 1, "status": "settled", "style": "tlv", - "received_time": 1722303689.9082303, - "resolved_time": 1722303692.3156552 + "received_time": 1723161049.485822, + "resolved_time": 1723161051.974929 }, { "created_index": 8, - "in_channel": "109x1x1", + "in_channel": "109x1x0", "in_htlc_id": 8, - "out_channel": "111x1x0", + "out_channel": "111x1x1", "in_msat": 10001, "status": "local_failed", "failcode": 16394, "failreason": "WIRE_UNKNOWN_NEXT_PEER", "style": "tlv", - "received_time": 1722303697.0961268 + "received_time": 1723161056.7508454 } ] } diff --git a/doc/schemas/lightning-listfunds.json b/doc/schemas/lightning-listfunds.json index 64ffea6a86e4..af9368f4e092 100644 --- a/doc/schemas/lightning-listfunds.json +++ b/doc/schemas/lightning-listfunds.json @@ -354,7 +354,7 @@ "response": { "outputs": [ { - "txid": "9454852bb62e304ee8933662284e10bd22a7f3710c262da4c94bdcc8b05ae407", + "txid": "e1abe4e4a6bc04085f1596be3a5a1260974977d5945de2c4d717953ba783e003", "output": 0, "amount_msat": 19993653000, "scriptpubkey": "51206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b5", @@ -364,8 +364,8 @@ "reserved": false }, { - "txid": "7547ffc11396c62852104f7100d5ca27a2b9c0d5d43d08122147b2b03eb157a5", - "output": 0, + "txid": "abd618c8e67c193ad926e6912c078b5c9c255c82a19c92cb3ca5d7ea181439de", + "output": 1, "amount_msat": 2000000000, "scriptpubkey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e", "address": "bcrt1qn7m8hl80aekt0k6v0e2an34l6ay7x8g703x07y", @@ -374,8 +374,8 @@ "reserved": false }, { - "txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "output": 0, + "txid": "txidchannel012000012000012000012000012000012000012000012000012000", + "output": 1, "amount_msat": 198995073000, "scriptpubkey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea", "address": "bcrt1pxhc3snmtguxfmu68mf3vfv5w0my7uy9jyzav8txdygsfmmcqxm4q0mms62", @@ -389,12 +389,12 @@ "peer_id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "connected": true, "state": "CHANNELD_NORMAL", - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "short_channel_id": "109x1x1", + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "short_channel_id": "109x1x0", "our_amount_msat": 490518792, "amount_msat": 1000000000, - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "funding_output": 1 + "funding_txid": "txidchannel012000012000012000012000012000012000012000012000012000", + "funding_output": 0 } ] } diff --git a/doc/schemas/lightning-listhtlcs.json b/doc/schemas/lightning-listhtlcs.json index 67d0c8727bfb..aea5ed6b5ba9 100644 --- a/doc/schemas/lightning-listhtlcs.json +++ b/doc/schemas/lightning-listhtlcs.json @@ -129,108 +129,108 @@ "id": "example:listhtlcs#1", "method": "listhtlcs", "params": [ - "109x1x1" + "109x1x0" ] }, "response": { "htlcs": [ { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 0, "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "ad461b30618762749f006ace61bc7f8685d24f32b8555cee5384ff89601f89e6", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 1, "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 2, "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 3, "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 4, "expiry": 152, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 5, "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 6, "expiry": 132, "direction": "out", "amount_msat": 50001, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", + "payment_hash": "paymenthashinvl0320003200032000320003200032000320003200032000320", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 7, "expiry": 142, "direction": "out", "amount_msat": 1002, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_hash": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 8, "expiry": 137, "direction": "out", "amount_msat": 10001, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", + "payment_hash": "paymenthashinvl0340003400034000340003400034000340003400034000310", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 0, "expiry": 136, "direction": "in", "amount_msat": 1000000, - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", + "payment_hash": "c467e7bb269bdcb4ba9f82b4ca2aa2cc71148412bbd9437a112f9930bd68e30a", "state": "SENT_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 9, "expiry": 136, "direction": "out", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "state": "RCVD_REMOVE_ACK_REVOCATION" } ] @@ -245,102 +245,102 @@ "response": { "htlcs": [ { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 0, "expiry": 126, "direction": "out", "amount_msat": 500000000, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "ad461b30618762749f006ace61bc7f8685d24f32b8555cee5384ff89601f89e6", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 1, "expiry": 136, "direction": "out", "amount_msat": 10001, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 2, "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 3, "expiry": 155, "direction": "out", "amount_msat": 10000202, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 4, "expiry": 152, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 5, "expiry": 149, "direction": "out", "amount_msat": 10001, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 6, "expiry": 132, "direction": "out", "amount_msat": 50001, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", + "payment_hash": "paymenthashinvl0320003200032000320003200032000320003200032000320", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 7, "expiry": 142, "direction": "out", "amount_msat": 1002, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_hash": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 8, "expiry": 137, "direction": "out", "amount_msat": 10001, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", + "payment_hash": "paymenthashinvl0340003400034000340003400034000340003400034000310", "state": "RCVD_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 0, "expiry": 136, "direction": "in", "amount_msat": 1000000, - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", + "payment_hash": "c467e7bb269bdcb4ba9f82b4ca2aa2cc71148412bbd9437a112f9930bd68e30a", "state": "SENT_REMOVE_ACK_REVOCATION" }, { - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "id": 9, "expiry": 136, "direction": "out", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "state": "RCVD_REMOVE_ACK_REVOCATION" } ] diff --git a/doc/schemas/lightning-listinvoicerequests.json b/doc/schemas/lightning-listinvoicerequests.json index e75be7c86b46..17b97b0c692e 100644 --- a/doc/schemas/lightning-listinvoicerequests.json +++ b/doc/schemas/lightning-listinvoicerequests.json @@ -104,16 +104,16 @@ "id": "example:listinvoicerequests#1", "method": "listinvoicerequests", "params": [ - "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9" + "dfd5175cf111403edd413bcf7586f84f9a1add15d71e0bee0ac477dba29d9590" ] }, "response": { "invoicerequests": [ { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "dfd5175cf111403edd413bcf7586f84f9a1add15d71e0bee0ac477dba29d9590", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lnr1qqgffnvv3r5u6s2xkka0uj78p5mv2zsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgru2dqmze048w9avxr7pukaqqpua7xemxdxshwuytxw308avxl7zjul9fn6ku8lt98g0t799r3446da2lg7x0zgk4uq0q440mldh2c3n", "used": false } ] @@ -128,17 +128,17 @@ "response": { "invoicerequests": [ { - "invreq_id": "93f193cd2432d292f8b64af08942989d71c0a0366fb52d57ddb688c8fb066399", + "invreq_id": "bd8ae303d375cb2e4b588207f378b10756669e40a205a4f450620c63dc9a07f4", "active": false, "single_use": true, - "bolt12": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "bolt12": "lnr1qqgvfypggatztds3xxugvmyx9h8fuzst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq883ffy3mps8ctfgd77glkgrlrd4heq6tx3vppvhse9p4ghfzgr4wlmqh3jg7zylz345s5973d763rrrrkju5zs7p7s4uztqp8dqwt3g", "used": true }, { - "invreq_id": "a621a0e8e8ea9aa97fd47ab9b140e413be7f4ea45377617e693eb7afe5a3dbf9", + "invreq_id": "dfd5175cf111403edd413bcf7586f84f9a1add15d71e0bee0ac477dba29d9590", "active": false, "single_use": true, - "bolt12": "lnr1qqgx5t5hcw5ru9fgkhgxj4thjq4ugzsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgpvamrunx5t6vdaeu7nmmlh5u6f0dnscasy2alyxq79f5wnc043gxrzyqt640dmuj7c94644j5ae6wfse7tsejwqnmc575ly9t38h4hf", + "bolt12": "lnr1qqgffnvv3r5u6s2xkka0uj78p5mv2zsk2fjhzat9wd6xjmn8ypnx7u3qd9h8vmmfvdj3yyrrd35kw6r5de5kueeqwd6x7un92qsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzr6jqwvfdqzcyypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgru2dqmze048w9avxr7pukaqqpua7xemxdxshwuytxw308avxl7zjul9fn6ku8lt98g0t799r3446da2lg7x0zgk4uq0q440mldh2c3n", "used": false } ] diff --git a/doc/schemas/lightning-listinvoices.json b/doc/schemas/lightning-listinvoices.json index 775fe023f3ab..1deeb7d4412d 100644 --- a/doc/schemas/lightning-listinvoices.json +++ b/doc/schemas/lightning-listinvoices.json @@ -314,15 +314,15 @@ "invoices": [ { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "status": "paid", "pay_index": 3, "amount_received_msat": 400000, - "paid_at": 1722303718, - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "paid_at": 1723161077, + "payment_preimage": "3a48ddf3612ee64c5052bc5d41423f41a9f675fd3b5667d7d68a393edba1903c", "description": "l21 description", - "expires_at": 1722908486, + "expires_at": 1734100000, "created_index": 2, "updated_index": 3 } @@ -339,118 +339,118 @@ "invoices": [ { "label": "lbl balance l1 to l2", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4", - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "bolt11": "lnbcrt5m1pnt2kw9sp5mh4fyw80k8c3zxkx6hfgmh4msj7gg7spr2rf7e66kulj4jfwm49qpp544rpkvrpsa38f8cqdt8xr0rls6zaynejhp24emjnsnlcjcql38nqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqj7ez5u6pz9cp6jyzxn9u07ppgwnquak0k676rfvruvnwwfuws5msje06nc9s74dzwqn7r0x7rpwhmlzwest59j7s0820mwnr9zpjylcqaygvrg", + "payment_hash": "ad461b30618762749f006ace61bc7f8685d24f32b8555cee5384ff89601f89e6", "amount_msat": 500000000, "status": "paid", "pay_index": 1, "amount_received_msat": 500000000, - "paid_at": 1722303671, - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", + "paid_at": 1723161030, + "payment_preimage": "e5815b3a279dd722500a0c3dfa7e3a214815e173fdc2a3215d391e281aa5a785", "description": "description send some sats l1 to l2", - "expires_at": 1722908470, + "expires_at": 1723765829, "created_index": 1, "updated_index": 1 }, { "label": "lbl_l21", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "status": "paid", "pay_index": 3, "amount_received_msat": 400000, - "paid_at": 1722303718, - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "paid_at": 1723161077, + "payment_preimage": "3a48ddf3612ee64c5052bc5d41423f41a9f675fd3b5667d7d68a393edba1903c", "description": "l21 description", - "expires_at": 1722908486, + "expires_at": 1734100000, "created_index": 2, "updated_index": 3 }, { "label": "lbl_l22", - "bolt11": "lnbcrt2u1pn2s3xxsp5cpcdj2cy5wpd2nphp2evrp9kqymxf9434zftkmdd6dlgmy8cu78qpp58yq5qf3h0694xwymzjs5e8eejce83vjmxv6cpwqv8cs9e05dxe4qdqcdserygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq9wlpxf8ur0q798646w94tduf6wfkaw7m0ecmxepgatd4utvsyvcy0pku9t8m39rlsjzhe8x53mup5jkn0f84clfj3ctc6qj09t35wxspycpup2", - "payment_hash": "39014026377e8b53389b14a14c9f39963278b25b333580b80c3e205cbe8d366a", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000", + "payment_hash": "paymenthashinvl0220002200022000220002200022000220002200022000310", "amount_msat": 200000, "status": "unpaid", "description": "l22 description", - "expires_at": 1722908486, + "expires_at": 1734100000, "created_index": 3 }, { "label": "label inv_l24", - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e", - "payment_hash": "1a682400993357e0533d99e386625cc465d4ccf95ee3878bba37daec13ff6252", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000", + "payment_hash": "paymenthashinvl0240002400024000240002400024000240002400024000310", "amount_msat": 123000, "status": "unpaid", "description": "description inv_l24", - "expires_at": 1722307313, + "expires_at": 1726100000, "created_index": 4 }, { "label": "label inv_l25", - "bolt11": "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc", - "payment_hash": "07fb83586dde141a3c9f3fe1ff502edfeecca8795a88d5263517a49878894b98", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000", + "payment_hash": "paymenthashinvl0250002500025000250002500025000250002500025000310", "amount_msat": 124000, "status": "unpaid", "description": "description inv_l25", - "expires_at": 1722307313, + "expires_at": 1726100000, "created_index": 5 }, { "label": "label inv_l26", - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8", - "payment_hash": "0c2b7a7d67774540846ceb630b0a109da1f538d3414f41e21ccb4275e6ea28ec", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000", + "payment_hash": "paymenthashinvl0260002600026000260002600026000260002600026000310", "amount_msat": 125000, "status": "unpaid", "description": "description inv_l26", - "expires_at": 1722307313, + "expires_at": 1726100000, "created_index": 6 }, { "label": "lbl_l13", - "bolt11": "lnbcrt1u1pn2s38zsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqcjq9fq26ph2skcsm65xjwnw3crgygpampszjcvqs8aw2zf3jzcxqg4dh58fm8mxul29vh5urpyjkll9m4dq3807xcmq2q9yvgd5qt7qp695qvu", - "payment_hash": "72cd6e8422c407fb6d098690f1130b7ded7ec2f7f5e1d30bd9d521f015363793", + "bolt11": "lnbcrt1u1pnt2k0nsp5j9w8t9p2y6an5se63n3vkpp8c20vdsthtn78sv5t2lmt57l742wqpp5wtxkappzcsrlkmgfs6g0zyct0hkhashh7hsaxz7e65slq9fkx7fsdqcdscnxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq3vhyun9uf37y06dsmstzcc2hj92r20hf4zs2py66xmc62y8uerjjkwf434r4vy9gp5pwq76mev3pwty6097ydeh0sc45z9fhy8qzewspe5cs3t", + "payment_hash": "paymenthashinvl0130001300013000130001300013000130001300013000310", "amount_msat": 100000, "status": "unpaid", "description": "l13 description", - "expires_at": 1722908514, + "expires_at": 1713100000, "created_index": 7 }, { "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", + "bolt11": "lnbcrt1pnt2k0nsp5fumcrr3dahtqsdfln49ffeltssy87aned4ram55vpg7zcxhweesspp522j990adncrxrgxd9w74j57yy29787sufk2ktfpxmw4f42pqs6yqdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp99qxpqysgqtvql99aqyda9ujvgwy20qgnxw0ur552asmsg0nan7t2kully30qsvh6dgvs7ky5rlxm6lse7umv4egal2u0l6nmmcg0g0rtugk8hk4gq3htryr", + "payment_hash": "52a452bfad9e0661a0cd2bbd5953c4228be3fa1c4d9565a426dbaa9aa8208688", "status": "paid", "pay_index": 2, "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "paid_at": 1723161075, + "payment_preimage": "7401fefd4d82ac5d2c40bc27241a2e29637c53526b7ba497976e95bbec856fde", "description": "l23 description", - "expires_at": 1722908514, + "expires_at": 1713100000, "created_index": 8, "updated_index": 2 }, { - "label": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e-025f3305ae63d757b277dd49301833087ba6208e743ce95fa6e950fa80be407e5f-0", - "bolt12": "lni1qqg9g04gczk9ntk4gsjg3aptwykk2q3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggztuesttnr6atmya7afycpsvcg0wnzprn58n54lfhf2ragp0jq0e04j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgr6euj6p39a209zw5kpkftk7h9te69vlmjg0arceagpaajague0zsszqk96htpgqn2wsznaas0zfdtf8v97ryz29jrn7rwgs5687ghgq5jusqr99dtx4jdj9nqpep5zxmynegrg6e7rm2l53ur8043h2yqzldyl5vh08h8ssaeq5jrvw9y24kztlwvc4nwagsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv65yfedgyqrp2s7qpxpjse8q8796qcrr5xwgfkqjue3urd6rs2rt2f68tk0vl2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqsy2n7vmpn67ltzrj70znp70sk4m530j5vceq6jhk97h7ttzn09sh8m9gecarrt27v2tux8z6rr06sj9h60r05p4vhkhzsp0xf9ea4jgg", - "payment_hash": "061543c009832864e03f8ba06063a19c84d812e663c1b7438286b527475d9ecf", + "label": "offeridl21000002100000210000021000002100000210000021000002100000-0229c01a8b8577e215c609f1562a4ab8beb9899f1c342ad94203db6a6a517174ab-0", + "bolt12": "lni1qqgvw6ll0rde2kudadexeuk8zlj5sq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssq38zq9q53nfwd5zqumpd3jjz93pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84sggz98qp4zu9wl3pt3sf79tz5j4ch6ucn8cuxs4djssrmd4x55t3wj44j9z5dpsku6mnypnx7u3qw35x2grxd9eksgdqnqpz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336kgzaet06nvpwh85lh9egg0fhuexutpzdqr26p9numyrzg3um5rprcnqzqnga8awfgjvzxhckehptq27mpewgwzle8wslypm8ejn626pg9eaksqryu9qnzfwvhggnrj6wg82f92m866uf6ktjt2t3ry6pnvhgn3tkej3g33kcm7pg5xx9neuq4t5glzp46dzfgsuqqqqqqqqqqqqqqq9qqqqqqqqqqqqq8fykt06c5sqqqqqpfqyv664na9gyrwk097eymw0t2h8ehhr0vs24vzuwqzw7wh629pjhcljpumwtgh4d2szyugtqggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vlqs8a62zz3kq94w29lzy7vjcqrkhjzqnv4k2r87uc2h5t7rmlqrjxqvj452dzc22ewl5k6utpe2vtfqe48fl78uqjdudcdd8g7ausf9wr7", + "payment_hash": "dd6797d926dcf5aae7cdee37b20aab05c7004ef3afa51432be3f20f36e5a2f56", "amount_msat": 10000, "status": "unpaid", "description": "Fish sale!", - "expires_at": 1722310917, - "local_offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "expires_at": 1723168276, + "local_offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "invreq_payer_note": "Thanks for the fish!", "created_index": 9 }, { - "label": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b-03014d72261012e28cb4711a985c1475eba04a0058f9d04321b4cf1de479711d6f-0", - "bolt12": "lni1qqg86u6jfl660zfuk22sexem37r7xq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssxq2dwgnpqyhz3j68zx5cts28t6aqfgq937wsgvsmfncau3uhz8t05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq2rdjuqaychg3jndvsjrlu6y08aeuh4ytw6f6ak5n24p5n8zmsz2sqgrg3rg89hqfh6n7dfr0fugvq20ehecd3ezc438l6uh4r8epaakn4lsqv4qgr3ks4yxngyflq339lza456xt8uly085umq3gwql3qyfge0ec03dezeg8xulz33ntlj8yd7dcra9564zrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s3894qsfwwvj3szk4yplg4fkw68nwzlwyc23457qx6v7xe38znuha72km6a2qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgz2rxjcsxs6s3lnngq9xeqn9pzy53n50p4ulcdvkx8dye7h8xgxpvjyg928m2txk2knl0zzfl7j82c6lq7xqlx83ey7z4aux9pjp4sp7", - "payment_hash": "9739928c056a903f45536768f370bee26151ad3c03699e3662714f97ef956deb", + "label": "offeridl22000002200000220000022000002200000220000022000002200000-02278c82dce9b99338c3b6836dd29e76f6c15ec3ee2c57ff563054ae6b6440d2cf-0", + "bolt12": "lni1qqgt2f5hkx9rww642wx5zj0xun72qq3qqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy8ssqc0gfqq5pjrdanxvet9zsqs593pqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4j5pqqc3xu3s3rg94nj40zfsy866mhu5vxne6tcej5878k2mneuvgjy84yqc7sjq9vqgztqssyfuvstwwnwvn8rpmdqmd6208dakptmp7utzhlatrq49wddjyp5k05zvqytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82eq0tcvy95a36qnel96xma5uzpdhr8xz99vd77a3mz7y3f3rujsp6svqgzs0cnys7s388xk7x2spwsr9vzsssnat5g7l0f5glvtms45teqt3jqqvkpvfp6r56gv6qgc25t7qp4jm9043xchu3rax3dg6qh4pkanhdfg3pfjqdznym02nhsutxk88h7hkv7msdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3nt2k054qsvndhaku8z8r6ce9y067xfdcyw8v5nxr5y2yj9dkd8swm645cgcp42qv0gfq9syypz6g3kyz34nfrl7lm6c3rushzxey3a55ecjgs6qp2vz8q78j336k0sgrht0wksh2f5lkvl3m2lrrcgrad8tc2v59c8yfdmgvpun27399mzcqjg5y4qe2qaf9rdewqfvtut40xzhwjnd35v7tmwxas0k36fws0e", + "payment_hash": "c9b6fdb70e238f58c948fd78c96e08e3b29330e84512456d9a783b7aad308c06", "amount_msat": 2000000, "status": "unpaid", "description": "Coffee", - "expires_at": 1722310917, - "local_offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "expires_at": 1723168276, + "local_offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", "created_index": 10 } ] diff --git a/doc/schemas/lightning-listnodes.json b/doc/schemas/lightning-listnodes.json index d4859e721064..f004474997ea 100644 --- a/doc/schemas/lightning-listnodes.json +++ b/doc/schemas/lightning-listnodes.json @@ -275,9 +275,9 @@ "nodes": [ { "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE--190-g5fd2f9c-modded", + "alias": "HOPPINGFIRE", "color": "035d2b", - "last_timestamp": 1722303669, + "last_timestamp": 1723161027, "features": "88a0802a8a59a1", "addresses": [] } @@ -294,33 +294,33 @@ "nodes": [ { "nodeid": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "alias": "SILENTARTIST-190-g5fd2f9c-modded", + "alias": "SILENTARTIST", "color": "022d22", - "last_timestamp": 1722303662, + "last_timestamp": 1723161021, "features": "88a0802a8a59a1", "addresses": [] }, { "nodeid": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "alias": "JUNIORBEAM-5-190-g5fd2f9c-modded", + "alias": "JUNIORBEAM", "color": "0266e4", - "last_timestamp": 1722303662, + "last_timestamp": 1723161021, "features": "88a0802a8a59a1", "addresses": [] }, { "nodeid": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "alias": "HOPPINGFIRE--190-g5fd2f9c-modded", + "alias": "HOPPINGFIRE", "color": "035d2b", - "last_timestamp": 1722303669, + "last_timestamp": 1723161027, "features": "88a0802a8a59a1", "addresses": [] }, { "nodeid": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - "alias": "JUNIORFELONY-190-g5fd2f9c-modded", + "alias": "JUNIORFELONY", "color": "0382ce", - "last_timestamp": 1722303669, + "last_timestamp": 1723161027, "features": "88a0802a8a59a1", "addresses": [] } diff --git a/doc/schemas/lightning-listoffers.json b/doc/schemas/lightning-listoffers.json index dedca944c129..d969b548b1be 100644 --- a/doc/schemas/lightning-listoffers.json +++ b/doc/schemas/lightning-listoffers.json @@ -109,17 +109,17 @@ "response": { "offers": [ { - "offer_id": "dca9774ba2925b48c42eb12e599c09389d9d80d44445c4d0c944556c7228746e", + "offer_id": "offeridl21000002100000210000021000002100000210000021000002100000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqgn3qzs2ge5hx6pqwdskcefpzcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000000bolt12000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021", "used": false }, { - "offer_id": "f901018768e13ea2da95f437749e24d22d47b2a6ea3030ef66ae0281df49d94b", + "offer_id": "offeridl22000002200000220000022000002200000220000022000002200000", "active": true, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv85ysq2qepk7enxv4j3gqg2zcssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e", + "bolt12": "lno1qgsq000000bolt12000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022", "used": false } ] @@ -130,16 +130,16 @@ "id": "example:listoffers#2", "method": "listoffers", "params": [ - "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24" + "offeridl23000002300000230000023000002300000230000023000002300000" ] }, "response": { "offers": [ { - "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24", + "offer_id": "offeridl23000002300000230000023000002300000230000023000002300000", "active": false, "single_use": false, - "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs", + "bolt12": "lno1qgsq000000bolt12000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023", "used": false } ] diff --git a/doc/schemas/lightning-listpays.json b/doc/schemas/lightning-listpays.json index a586bfc379c0..d0493a8b51f9 100644 --- a/doc/schemas/lightning-listpays.json +++ b/doc/schemas/lightning-listpays.json @@ -229,7 +229,7 @@ "id": "example:listpays#1", "method": "listpays", "params": { - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "bolt11": "lnbcrt100n1pnt2000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000" } }, "response": { @@ -245,68 +245,68 @@ "response": { "pays": [ { - "bolt11": "lnbcrt5m1pn2s39hsp50pekdm9axtcfm0ttsxzg2z0738ujk5uc3n0v5rul2y2ghkeh772qpp50a60qe8lg55t0mru27xlvcnpwetu46d0ff60tuj0dr9cged3secqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmpnxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqcjj3uz0ux4qxt4ev4patfwz44e7ns57tmvxdwzfq2pj5drm5xhk5agm8j2wha32g664a0mw6casy44vfdf76jj38n3669fsjps4jkaqpaydvjr", + "bolt11": "lnbcrt5m1pnt2kwxsp5ugneuyrcm0yc9pvt383hmtwl3vcv06dawk7w5y2ch0zpkd0vkuespp5sewvrrnsazzda3n88cagyr0900daj7fwgpu4cs6f9rphsq8hd94qdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmpnxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqjjyv9lrdfqxue48fky3f46jwgkpgc03lurajywpyfxu4nw4lmcxslqr2hx9rfpkhjg8cgyd4msqxredfumktrawy7kj6qhualwmslfgqpfcp2x", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "7f74f064ff4528b7ec7c578df662617657cae9af4a74f5f24f68cb8465b18670", + "payment_hash": "865cc18e70e884dec6673e3a820de57bdbd9792e40795c434928c37800f7696a", "status": "complete", - "created_at": 1722303671, - "completed_at": 1722303672, - "preimage": "d9893938f4464933d87f5123a8c09b4e98e106c9c34c1812340c9570d72d16a2", + "created_at": 1723161030, + "completed_at": 1723161031, + "preimage": "33e310fb0d61d371d1ef45889ef6edb412d015d0808e7261224700f99aab4207", "amount_msat": 500000000, "amount_sent_msat": 500000000 }, { - "bolt11": "lnbcrt5m1pn2s39csp59778k5kecnjhyqu7amy99kt8nhu43ap74m8q3xryvqxrjnsrnxpqpp5s3fd8u9xnhgwtqpsq9jtcspzu4dmxvcatpvl2a3dje5055fmqrdqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmp4xqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jx3rjwmh5d5rmgqqqqqpqqqqqzsqqc9qxpqysgqe4hfa6arms4pz6ajwhq07lhc57g60vrdqyfdsewu84q823m8zqdjtcsv7aun8zqxr86amyz0lclf8pfts0hqy60s9fcvvsjyxnnmpugpjcq9xk", + "bolt11": "lnbcrt5m1pnt2kw8sp5cex9tgz0n88e79n9v8525ypf2323y9sktq54tueu7ftfdfu24yvspp52cwdn6tv3fh46kyhkjpuztysdd9zq4r2vlpwzy28flha83d3llnqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcv3qw3hjqmp4xqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jp7qr62mlqsd45qqqqqpqqqqqzsqqc9qxpqysgqkgjlmswt7pfj9r6n5ehqdyyg8yh9k2hy9k9w3nxczg9yyjp45p8pc38zkfuv2gnfy5uaqe7skhjswhs58cdutxn8n3qfu80etn6mq8qqz8s23s", "destination": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "payment_hash": "8452d3f0a69dd0e580300164bc4022e55bb3331d5859f5762d9668fa513b00da", + "payment_hash": "561cd9e96c8a6f5d5897b483c12c906b4a20546a67c2e111474fefd3c5b1ffe6", "status": "complete", - "created_at": 1722303672, - "completed_at": 1722303673, - "preimage": "576f5426f339b3db80d1b3c3546d6832274171609f25795c64b6cc74aa158d8c", + "created_at": 1723161032, + "completed_at": 1723161033, + "preimage": "71cae0627a01c0ed501111b3efdbe17db678d0d0e1eb58a519fcd6755a47123e", "amount_msat": 500000000, "amount_sent_msat": 500000000 }, { - "bolt11": "lnbcrt1u1pn2s3xxsp5xk8hs6zuv0yqhq7hhl0sps6mxuj78pzwryejaljh48vr4htykujqpp593ndc8wrukteld5j4nqnt6tedavh8ezv48dmrkqen3440ajnre5qdqcdsenxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq0asve9rdtfd9fe20u5vjujzmm0phpq538z8ndhn5ts62aflhktqn6338e45xcxkyf7askjjq25ksxt4eqarjjame8wfdmau7kq7m4csqs0n32n", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", + "payment_hash": "paymenthashinvl0330003300033000330003300033000330003300033000310", "status": "complete", - "created_at": 1722303688, - "completed_at": 1722303689, - "preimage": "1ce8370d3a179cee3af25a5a6c7058e8e12033a842efd6d34abae53334bc94bf", + "created_at": 1723161047, + "completed_at": 1723161049, + "preimage": "d4ef5f080df87ef70cc0c2eea0cde7f6161cbf279d30448a2e54b9313f3e5c87", "amount_msat": 100000, "amount_sent_msat": 100000 }, { - "bolt12": "lni1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcq2s27mvxt0arlnulnmce53cuz00vzaqvgvhpphxgavl89r8zrdhaxqgzpvxkkmwsmxnuwflttmnpc8vtzwlgd3cfty3xwlnlc9r2gcjesguqqv4xey4m7l4wxem27vxyxfhwznlc62kffsd5xncx9w49m4g72u2y7lcl6a3x5cpu52j6gm8q5x0q8k7myxdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s38p5cq442pq5qpm4ht26v8statwxcrl65uy26c9hx4dvy66f9x665eqqy90tpz25qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsqfkcrpht0d3nnt8txkcgf5wr6gzrlacls2gyrvj5hhwuu98shurrn6ayruunju7k9yu9clvaj354tr064ruuht88q5dj73kzru20uzj", + "bolt12": "lni1qqgvfypggatztds3xxugvmyx9h8fuzst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcqdpxv8f07x9en6939lqvnd3kwxx5mxrn54y3fsrk2lfdn85realv5qgza85hwqaezzknka2q70j9sn9zs6yl5ucsf9tyexevm709nkytjkmsqvnrk3vqqk0gawz5g9z5rawt6s0aj5v8lya7zj53fn8zzc7dh35cr9tpjuu9wr9nkft4duaa6hj3zh0unydzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3nt2k0j5cq442pqc3n70wexn0wtfw5ls26v524ze3c3fpqjh0v5x7s397vnp0tguv925qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsp4td04uredmz0ay7s68q0lk6twuchg6f2qgdhwjw05acxr29su8mr8lwv2072tk628zajexs4mvuftk2gnugy8f48l9u6vn29ngkgk6", "destination": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", + "payment_hash": "c467e7bb269bdcb4ba9f82b4ca2aa2cc71148412bbd9437a112f9930bd68e30a", "status": "complete", - "created_at": 1722303713, - "completed_at": 1722303714, - "preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", + "created_at": 1723161074, + "completed_at": 1723161075, + "preimage": "35e97d5a4108b85fbe6498e6ec42320ea13c1a18714d1420bb5724093053c42d", "amount_msat": 1000000, "amount_sent_msat": 1000000 }, { - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", + "bolt11": "lnbcrt1pnt2k0nsp5fumcrr3dahtqsdfln49ffeltssy87aned4ram55vpg7zcxhweesspp522j990adncrxrgxd9w74j57yy29787sufk2ktfpxmw4f42pqs6yqdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp99qxpqysgqtvql99aqyda9ujvgwy20qgnxw0ur552asmsg0nan7t2kully30qsvh6dgvs7ky5rlxm6lse7umv4egal2u0l6nmmcg0g0rtugk8hk4gq3htryr", "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", + "payment_hash": "52a452bfad9e0661a0cd2bbd5953c4228be3fa1c4d9565a426dbaa9aa8208688", "status": "complete", - "created_at": 1722303715, - "completed_at": 1722303715, - "preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", + "created_at": 1723161075, + "completed_at": 1723161075, + "preimage": "7401fefd4d82ac5d2c40bc27241a2e29637c53526b7ba497976e95bbec856fde", "amount_msat": 9900, "amount_sent_msat": 9900 }, { - "bolt11": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", + "payment_hash": "paymenthashinvl0340003400034000340003400034000340003400034000310", "status": "complete", - "created_at": 1722303719, - "completed_at": 1722303720, - "preimage": "8815ee921dba644c076f9f879abb520d8539a6913856a439752eaaadff1e21ac", + "created_at": 1723161077, + "completed_at": 1723161078, + "preimage": "fd3a3a97982b92ddbffd8394ff3cbd835a9690e8e6efcfe9f91937ca26cf76b1", "amount_msat": 4000, "amount_sent_msat": 4000 } diff --git a/doc/schemas/lightning-listpeerchannels.json b/doc/schemas/lightning-listpeerchannels.json index 9cd38c546809..2b9b4500f3fc 100644 --- a/doc/schemas/lightning-listpeerchannels.json +++ b/doc/schemas/lightning-listpeerchannels.json @@ -1444,9 +1444,9 @@ "fee_proportional_millionths": 10 } }, - "last_stable_connection": 1722303707, + "last_stable_connection": 1723161065, "state": "CHANNELD_NORMAL", - "scratch_txid": "80aa008578b3b6924f2362146907e46ad83351d5b9b056bd8537befc3f1d7d65", + "scratch_txid": "381112f00a4b78b406f24a77ab66bca89d965a4f02e4fb6133c9fb343c4589c4", "last_tx_fee_msat": 4221000, "lost_state": false, "feerate": { @@ -1454,18 +1454,18 @@ "perkb": 15020 }, "owner": "channeld", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "direction": 1, - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "funding_outnum": 1, + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "funding_txid": "txidchannel012000012000012000012000012000012000012000012000012000", + "funding_outnum": 0, "close_to_addr": "bcrt1p8c0ku4mpxq3443rss8e6rjwamztvv8yxvmxtetal5d0n6v39rlwqvfqy6n", "close_to": "51203e1f6e576130235ac47081f3a1c9ddd896c61c8666ccbcafbfa35f3d32251fdc", "private": false, "opener": "local", "alias": { - "local": "2240075x4300189x56636", - "remote": "3321841x5311416x1695" + "local": "4908313x467752x11721", + "remote": "1578115x2507412x53529" }, "features": [ "option_static_remotekey", @@ -1484,7 +1484,7 @@ "fee_base_msat": 1, "fee_proportional_millionths": 10, "dust_limit_msat": 546000, - "max_total_htlc_in_msat": 18446744073709552000, + "max_total_htlc_in_msat": 18446744073709551615, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, "spendable_msat": 469223792, @@ -1497,14 +1497,14 @@ "max_accepted_htlcs": 483, "state_changes": [ { - "timestamp": "2024-07-30T01:40:45.942Z", + "timestamp": "2024-08-08T23:50:03.986Z", "old_state": "DUALOPEND_OPEN_COMMITTED", "new_state": "DUALOPEND_AWAITING_LOCKIN", "cause": "user", "message": "Sigs exchanged, waiting for lock-in" }, { - "timestamp": "2024-07-30T01:40:47.619Z", + "timestamp": "2024-08-08T23:50:05.725Z", "old_state": "DUALOPEND_AWAITING_LOCKIN", "new_state": "CHANNELD_NORMAL", "cause": "user", @@ -1565,9 +1565,9 @@ "fee_proportional_millionths": 10 } }, - "last_stable_connection": 1722303707, + "last_stable_connection": 1723161065, "state": "CHANNELD_NORMAL", - "scratch_txid": "80aa008578b3b6924f2362146907e46ad83351d5b9b056bd8537befc3f1d7d65", + "scratch_txid": "381112f00a4b78b406f24a77ab66bca89d965a4f02e4fb6133c9fb343c4589c4", "last_tx_fee_msat": 4221000, "lost_state": false, "feerate": { @@ -1575,18 +1575,18 @@ "perkb": 15020 }, "owner": "channeld", - "short_channel_id": "109x1x1", + "short_channel_id": "109x1x0", "direction": 1, - "channel_id": "252d1b0a1e57895e84137f28cf19ab2c35847e284c112fefdecc7afeaa5c1de7", - "funding_txid": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "funding_outnum": 1, + "channel_id": "channelid0120000120000120000120000120000120000120000120000120000", + "funding_txid": "txidchannel012000012000012000012000012000012000012000012000012000", + "funding_outnum": 0, "close_to_addr": "bcrt1p8c0ku4mpxq3443rss8e6rjwamztvv8yxvmxtetal5d0n6v39rlwqvfqy6n", "close_to": "51203e1f6e576130235ac47081f3a1c9ddd896c61c8666ccbcafbfa35f3d32251fdc", "private": false, "opener": "local", "alias": { - "local": "2240075x4300189x56636", - "remote": "3321841x5311416x1695" + "local": "4908313x467752x11721", + "remote": "1578115x2507412x53529" }, "features": [ "option_static_remotekey", @@ -1605,7 +1605,7 @@ "fee_base_msat": 1, "fee_proportional_millionths": 10, "dust_limit_msat": 546000, - "max_total_htlc_in_msat": 18446744073709552000, + "max_total_htlc_in_msat": 18446744073709551615, "their_reserve_msat": 10000000, "our_reserve_msat": 10000000, "spendable_msat": 469223792, @@ -1618,14 +1618,14 @@ "max_accepted_htlcs": 483, "state_changes": [ { - "timestamp": "2024-07-30T01:40:45.942Z", + "timestamp": "2024-08-08T23:50:03.986Z", "old_state": "DUALOPEND_OPEN_COMMITTED", "new_state": "DUALOPEND_AWAITING_LOCKIN", "cause": "user", "message": "Sigs exchanged, waiting for lock-in" }, { - "timestamp": "2024-07-30T01:40:47.619Z", + "timestamp": "2024-08-08T23:50:05.725Z", "old_state": "DUALOPEND_AWAITING_LOCKIN", "new_state": "CHANNELD_NORMAL", "cause": "user", diff --git a/doc/schemas/lightning-listpeers.json b/doc/schemas/lightning-listpeers.json index 1aa5837e96f3..8e59b41b5b5f 100644 --- a/doc/schemas/lightning-listpeers.json +++ b/doc/schemas/lightning-listpeers.json @@ -336,7 +336,7 @@ "connected": true, "num_channels": 2, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:19736" ], "features": "08a0802a8a59a1" } @@ -352,11 +352,11 @@ "response": { "peers": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", "connected": true, - "num_channels": 2, + "num_channels": 1, "netaddr": [ - "127.0.0.1:34785" + "127.0.0.1:38012" ], "features": "08a0802a8a59a1" }, @@ -365,16 +365,16 @@ "connected": true, "num_channels": 1, "netaddr": [ - "127.0.0.1:38251" + "127.0.0.1:19738" ], "features": "08a0802a8a59a1" }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "connected": true, - "num_channels": 1, + "num_channels": 2, "netaddr": [ - "127.0.0.1:47032" + "127.0.0.1:19736" ], "features": "08a0802a8a59a1" } diff --git a/doc/schemas/lightning-listsendpays.json b/doc/schemas/lightning-listsendpays.json index aa2db4fc0fd1..30ec2691b768 100644 --- a/doc/schemas/lightning-listsendpays.json +++ b/doc/schemas/lightning-listsendpays.json @@ -342,7 +342,7 @@ "id": "example:listsendpays#1", "method": "listsendpays", "params": { - "bolt11": "lnbcrt100n1pn2s396sp5v3en0qa3rrljw4m0wtz88sx99q20rarufhjpfysefhwhs42gvqjqpp56kvvl33d594nsxu0hzhesvazgqzlwv89fnpjcvtlanz3rl7x623qdp9f9h8vmmfvdjjqer9wd3hy6tsw35k7m3qdsenzxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq7za6z8kx2k5nul45zwttfz2njx3836v69mxqsl4ty9228pyjrkfnkymysy8ygsrrje9qf6j4tpalt5qkqusfp2esrsqc5ak7t4yzajgpezef54" + "bolt11": "lnbcrt100n1pnt2000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000" } }, "response": { @@ -350,16 +350,16 @@ { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", "groupid": 1, "updated_index": 2, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1723161034, + "completed_at": 1723161036, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "fda362d4b90462b181194c3a38b4ac5202bb830083afa9bb859fe6049f65aef7" } ] } @@ -375,143 +375,143 @@ { "created_index": 1, "id": 1, - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", + "payment_hash": "ad461b30618762749f006ace61bc7f8685d24f32b8555cee5384ff89601f89e6", "groupid": 1, "updated_index": 1, "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "amount_msat": 500000000, "amount_sent_msat": 500000000, - "created_at": 1722303670, - "completed_at": 1722303671, + "created_at": 1723161029, + "completed_at": 1723161030, "status": "complete", - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4" + "payment_preimage": "e5815b3a279dd722500a0c3dfa7e3a214815e173fdc2a3215d391e281aa5a785", + "bolt11": "lnbcrt5m1pnt2kw9sp5mh4fyw80k8c3zxkx6hfgmh4msj7gg7spr2rf7e66kulj4jfwm49qpp544rpkvrpsa38f8cqdt8xr0rls6zaynejhp24emjnsnlcjcql38nqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqj7ez5u6pz9cp6jyzxn9u07ppgwnquak0k676rfvruvnwwfuws5msje06nc9s74dzwqn7r0x7rpwhmlzwest59j7s0820mwnr9zpjylcqaygvrg" }, { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", "groupid": 1, "updated_index": 2, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1723161034, + "completed_at": 1723161036, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "fda362d4b90462b181194c3a38b4ac5202bb830083afa9bb859fe6049f65aef7" }, { "created_index": 3, "id": 3, - "payment_hash": "80ff407792947a23f193f9a1968e9a437b071364ae3159f83631335c9a453c1b", + "payment_hash": "62027510e774af7fbaed8d374da99c6f65b8c19576f8a8a3d61497fcbe985fdf", "groupid": 0, "updated_index": 3, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303677, - "completed_at": 1722303679, + "created_at": 1723161036, + "completed_at": 1723161038, "status": "complete", - "payment_preimage": "0d802c9c611bae611d51afa8ddf396df8ba4e0580a2eccfd1120da97e70482a0" + "payment_preimage": "356d839047cb0394bcae53c56d5f59edf18cd6f4ac99421a3b715210984ec026" }, { "created_index": 4, "id": 4, - "payment_hash": "3b80a3028343b16f8ab7261343eae40ff73ba833b0b7d4dcbfd42a3078dc322b", + "payment_hash": "31821fc4dfe4ca170cdbee4afc9eeda10937f56ae4bf064f4612a66d7a9d7f45", "groupid": 0, "updated_index": 4, "destination": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", "amount_msat": 10000000, "amount_sent_msat": 10000202, - "created_at": 1722303679, - "completed_at": 1722303682, + "created_at": 1723161038, + "completed_at": 1723161041, "status": "complete", - "payment_preimage": "f76d6b7ef362f33e25eb5571e616f6e539a2c77caf0afa4227d1351546823664" + "payment_preimage": "59942e54e270b11616ae3498fd024859d528e475dbcc03e821281f105ef93855" }, { "created_index": 5, "id": 5, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "groupid": 0, "updated_index": 5, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303682, - "completed_at": 1722303684, + "created_at": 1723161041, + "completed_at": 1723161043, "status": "failed" }, { "created_index": 6, "id": 6, - "payment_hash": "0458c01fdd3aa0b9829002390301f92083e78dc27bb293bc3e7caee5d4ed7259", + "payment_hash": "40918c547c3396b8fa50839df6e2e2fe71bcc3e5400c64ae87f2238c87cd5112", "groupid": 0, "updated_index": 6, "partid": 1, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303684, - "completed_at": 1722303686, + "created_at": 1723161043, + "completed_at": 1723161045, "status": "complete", - "payment_preimage": "4dad6dcf625f650a35a8199fbda18ea4f6717cdfadb40e6bed2bf5f96a4742b0" + "payment_preimage": "70cd654b83994cf48e2a9552930859ab3b23f6b90400c9124ae9445fed2be2e9" }, { "created_index": 7, "id": 7, - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", + "payment_hash": "paymenthashinvl0320003200032000320003200032000320003200032000320", "groupid": 1, "updated_index": 7, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 50000, "amount_sent_msat": 50001, - "created_at": 1722303686, - "completed_at": 1722303688, + "created_at": 1723161045, + "completed_at": 1723161047, "status": "complete", - "payment_preimage": "0e07efd883f66b6b22ec7f2e7116e203c3fecc22eb8596a73eaf06c4befb0641", - "bolt11": "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "payment_preimage": "d8c1540694459ba88c193af87bb3748ab130af6f8a27b6cfcd8f0a1dbd604fa5", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000" }, { "created_index": 8, "id": 8, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_hash": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "groupid": 1, "updated_index": 8, "amount_sent_msat": 1002, - "created_at": 1722303689, - "completed_at": 1722303692, + "created_at": 1723161049, + "completed_at": 1723161052, "status": "complete", - "payment_preimage": "5e49b520e86aaec8d798bf8107892fb87053d4cb27342518e4588aa609cf35cf" + "payment_preimage": "24a15124bb3546e8923b581eb2307eb3d33b5d96e1b26b421cde46c29781d2b2" }, { "created_index": 9, "id": 9, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", + "payment_hash": "paymenthashinvl0340003400034000340003400034000340003400034000310", "groupid": 1, "updated_index": 9, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303696, - "completed_at": 1722303698, + "created_at": 1723161056, + "completed_at": 1723161057, "status": "failed" }, { "created_index": 10, "id": 10, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "groupid": 1, "updated_index": 10, "partid": 1, "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", "amount_msat": 400000, "amount_sent_msat": 400000, - "created_at": 1722303718, - "completed_at": 1722303719, + "created_at": 1723161076, + "completed_at": 1723161077, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7" + "payment_preimage": "3a48ddf3612ee64c5052bc5d41423f41a9f675fd3b5667d7d68a393edba1903c", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000" } ] } diff --git a/doc/schemas/lightning-listtransactions.json b/doc/schemas/lightning-listtransactions.json index 0f8d69f9c76e..da0fd769e26e 100644 --- a/doc/schemas/lightning-listtransactions.json +++ b/doc/schemas/lightning-listtransactions.json @@ -172,15 +172,15 @@ "response": { "transactions": [ { - "hash": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "rawtx": "02000000000101096b01ae63d631e321f039d49df4c5b055ce3afa655a3d5c22c2a8594f41f5cd0000000000fdffffff02002d31010000000017a914655728f36cfe36d01aa50d3236704469f84a55408771c4d4280100000017a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d870247304402202ff40c938d644198c10d60fe660c1380bd601b6dc4533b64c64d3809290edf4a022028206e39cc36423524816a34806a721061814478b297c2bfb2bc3c417548c466012102129f00a7502a031999fe81aa35afed6f09617a9748e5fdde0f7a0191d364f59b65000000", + "hash": "6779801e9676d683bfc4ec0d9ef018d9e260b223a70103c81b9e9aee4bfbad68", + "rawtx": "02000000000101937166971258051fcea77fb5e0d4c3209ba9c27071d6240f8c5c8250d3320dd00000000000fdffffff0271c4d4280100000017a9141ba2de5997f95a86db0dbe1cf4ce6b5e717dfcac87002d31010000000017a914655728f36cfe36d01aa50d3236704469f84a554087024730440220578907c99932720bc2c58d53d18384ffeae3b44b968a36d5adad036fafb3a923022039d8cace804da4ed18a9526f0143225ba3789e28d0d841d95c5c07e20807ec0101210260d8b8af04f7fce4c88764fdf440ddc58e50074c1dc11a2d9eb1c11e73ea581065000000", "blockheight": 102, "txindex": 1, "locktime": 101, "version": 2, "inputs": [ { - "txid": "cdf5414f59a8c2225c3d5a65fa3ace55b0c5f49dd439f021e331d663ae016b09", + "txid": "d00d32d350825c8c0f24d67170c2a99b20c3d4e0b57fa7ce1f05581297667193", "index": 0, "sequence": 4294967293 } @@ -188,27 +188,27 @@ "outputs": [ { "index": 0, - "amount_msat": 20000000000, - "scriptPubKey": "a914655728f36cfe36d01aa50d3236704469f84a554087" + "amount_msat": 4979999857000, + "scriptPubKey": "a9141ba2de5997f95a86db0dbe1cf4ce6b5e717dfcac87" }, { "index": 1, - "amount_msat": 4979999857000, - "scriptPubKey": "a9147cdfb08e6e44fc1152c4f423225d2b7148248a9d87" + "amount_msat": 20000000000, + "scriptPubKey": "a914655728f36cfe36d01aa50d3236704469f84a554087" } ] }, { - "hash": "9454852bb62e304ee8933662284e10bd22a7f3710c262da4c94bdcc8b05ae407", - "rawtx": "02000000000101e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc812170000000017160014d6b969d36dffdad9869193f663ee480dfdc73488fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b50247304402201b09adb26aa7674b2e4954bef85e5d4cb5baee1e20c91e6d26db624407588b4e022044bae97372215531507b464b7978e6f9dc25f986aed5ab62dbc011c1e80a544f012102b9c0c6844e12a531c968e55c55078ec16d9bf76be9290fd87d1cca72b4839a1766000000", + "hash": "e1abe4e4a6bc04085f1596be3a5a1260974977d5945de2c4d717953ba783e003", + "rawtx": "0200000000010168adfb4bee9a9e1bc80301a723b260e2d918f09e0decc4bf83d676961e8079670100000017160014d6b969d36dffdad9869193f663ee480dfdc73488fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b50247304402205c5a538ea49827c5c1a7579ba5a44380f08df4bcfa5348c95f64ad29a17dbe94022033fb7ee1e2780bcb2e6c90f702378508881f6f600f0d14d200f5ebf5e18dbc2c012102b9c0c6844e12a531c968e55c55078ec16d9bf76be9290fd87d1cca72b4839a1766000000", "blockheight": 103, "txindex": 1, "locktime": 102, "version": 2, "inputs": [ { - "txid": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "index": 0, + "txid": "6779801e9676d683bfc4ec0d9ef018d9e260b223a70103c81b9e9aee4bfbad68", + "index": 1, "sequence": 4294967293 } ], @@ -221,83 +221,83 @@ ] }, { - "hash": "706e569239dfe88a33ae6d276ae68d6c787a2403ecf0ac97ed14eec28aa6039d", - "rawtx": "02000000000101e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc8121701000000171600142577677b3b18e431cfe9ac900e842b4d0567d251fdffffff0200c2eb0b00000000160014661c23b790dd3491373af0b1d8bed0877d5cde22cd01e91c010000001600140527f5b39d5b246fc5ed823c59ccdc5cc50e70580247304402205d01bd83c715b11e29040b0e8a193629194f638b7369270d668df172616d872302205bbad12ce8fc7a4694195dc3871302e808547b24e7098ffd089d0e340ccf3b950121034bcbb11214c52ca895d87add0c0de5a1dfb429966aa50f59afe33669319ea99266000000", + "hash": "93f91abfa6def0d8f6a7a60366f957da0f191702cd615a02df66cc05d0eece2e", + "rawtx": "0200000000010168adfb4bee9a9e1bc80301a723b260e2d918f09e0decc4bf83d676961e8079670000000017160014c8ee5e1e69c7ff38d1199fd2ae16270ceffa5398fdffffff02cd01e91c010000001600148863e7e2761cda49572a3c84ee3818917f18319d00c2eb0b00000000160014661c23b790dd3491373af0b1d8bed0877d5cde220247304402200f24759ff499cbdadb72365778bcd7949109523eac26513944eae8e1a43126de022008bfdec7e473337064abe9419ffe7efe47d1e8b62d766147a9496844fe0b42b40121022771094203a448cb4f2adce534ded09fc801a484a46c9aeab0c07878db9ca27666000000", "blockheight": 103, "txindex": 2, "locktime": 102, "version": 2, "inputs": [ { - "txid": "1712c8af55f6853be3179bf20398689bb9204695fe3d6171c3248783218814e3", - "index": 1, + "txid": "6779801e9676d683bfc4ec0d9ef018d9e260b223a70103c81b9e9aee4bfbad68", + "index": 0, "sequence": 4294967293 } ], "outputs": [ { "index": 0, - "amount_msat": 200000000000, - "scriptPubKey": "0014661c23b790dd3491373af0b1d8bed0877d5cde22" + "amount_msat": 4779999693000, + "scriptPubKey": "00148863e7e2761cda49572a3c84ee3818917f18319d" }, { "index": 1, - "amount_msat": 4779999693000, - "scriptPubKey": "00140527f5b39d5b246fc5ed823c59ccdc5cc50e7058" + "amount_msat": 200000000000, + "scriptPubKey": "0014661c23b790dd3491373af0b1d8bed0877d5cde22" } ] }, { - "hash": "7547ffc11396c62852104f7100d5ca27a2b9c0d5d43d08122147b2b03eb157a5", - "rawtx": "02000000000101e4f55092d059070e27bc6d3a8cce1ba7137244e997c499ce47ca9828d82319fc0000000000fdffffff0280841e00000000001600149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e8c721bed0000000016001442e74d56791e0c6447ebb87c612d324a8fd1e9f90247304402201843081a5417aec6d9e77e894ca159622d76360a16b9ee66e7d363a38ccd2a6102206b2dfb4bd0b0e8c25ed798842288c0ef3a0e328fa4f42d6fb5c479715ab2f0710121023770a6280695342030684ebaf25094a197f97acbb988e1ec8459b6228e20f8596b000000", + "hash": "abd618c8e67c193ad926e6912c078b5c9c255c82a19c92cb3ca5d7ea181439de", + "rawtx": "020000000001014d81f6791f089a047c794868b6a5e49c9b3da4e34de71e60266a1f0a5325fe3f0100000000fdffffff028c721bed00000000160014c126f422889b36cbdbf4b38e09b6c35671d6d2e980841e00000000001600149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e0247304402207baacc21225696fb21836694ec6c69a2e576ca1988849ed6c127f4f7a87db105022025e3c360f67dd5d4d2a95087d61b0f8233552453c0d77a3318986f3321331a770121031a813d276a0004cddbb8a2851613765a6d0f9083195c70213e04a08097b522b96b000000", "blockheight": 108, "txindex": 1, "locktime": 107, "version": 2, "inputs": [ { - "txid": "fc1923d82898ca47ce99c497e9447213a71bce8c3a6dbc270e0759d09250f5e4", - "index": 0, + "txid": "3ffe25530a1f6a26601ee74de3a43d9b9ce4a5b66848797c049a081f79f6814d", + "index": 1, "sequence": 4294967293 } ], "outputs": [ { "index": 0, - "amount_msat": 2000000000, - "scriptPubKey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e" + "amount_msat": 3977998988000, + "scriptPubKey": "0014c126f422889b36cbdbf4b38e09b6c35671d6d2e9" }, { "index": 1, - "amount_msat": 3977998988000, - "scriptPubKey": "001442e74d56791e0c6447ebb87c612d324a8fd1e9f9" + "amount_msat": 2000000000, + "scriptPubKey": "00149fb67bfcefee6cb7db4c7e55d9c6bfd749e31d1e" } ] }, { - "hash": "737d6835ddafd515ba9e9def733bb4e4211f6053a32b1422bf1c8cc240850f96", - "rawtx": "020000000001019d03a68ac2ee14ed97acf0ec03247a786c8de66a276dae338ae8df3992566e700000000000fdffffff02816cdc0b0000000022512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea40420f00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd0247304402207336a772e8643be4dc672957feaa3c9d97dde0aa5d8014a35ebc4772d8dacf91022074cd9cf97077fbf2f5d380b3917565f05232cc07db22aef12f327d6603861d6f012103fa9c95085e42b1e5003cd1f418178c30c96e4ae77954ca0fc48c58826ff4eb0e6c000000", + "hash": "txidchannel012000012000012000012000012000012000012000012000012000", + "rawtx": "020000000001012eceeed005cc66df025a61cd0217190fda57f96603a6a7f6d8f0dea6bf1af9930100000000fdffffff0240420f00000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd816cdc0b0000000022512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea0247304402202c811ff2976cdd127b512edd67826a5fae5555eaba7e011cd3cd54a2709f05c80220715dbbae96ece008a13b28e234022de7cec63a5c0753c3173b43868fc3e9d291012103fa9c95085e42b1e5003cd1f418178c30c96e4ae77954ca0fc48c58826ff4eb0e38000000", "blockheight": 109, "txindex": 1, - "locktime": 108, + "locktime": 56, "version": 2, "inputs": [ { - "txid": "706e569239dfe88a33ae6d276ae68d6c787a2403ecf0ac97ed14eec28aa6039d", - "index": 0, + "txid": "93f91abfa6def0d8f6a7a60366f957da0f191702cd615a02df66cc05d0eece2e", + "index": 1, "sequence": 4294967293 } ], "outputs": [ { "index": 0, - "amount_msat": 198995073000, - "scriptPubKey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea" + "amount_msat": 1000000000, + "scriptPubKey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd" }, { "index": 1, - "amount_msat": 1000000000, - "scriptPubKey": "00205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd" + "amount_msat": 198995073000, + "scriptPubKey": "512035f1184f6b470c9df347da62c4b28e7ec9ee10b220bac3accd22209def0036ea" } ] } diff --git a/doc/schemas/lightning-multifundchannel.json b/doc/schemas/lightning-multifundchannel.json index f2ad0fcb60a8..07f602a6b13a 100644 --- a/doc/schemas/lightning-multifundchannel.json +++ b/doc/schemas/lightning-multifundchannel.json @@ -343,15 +343,15 @@ "params": { "destinations": [ { - "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d@127.0.0.1:34785", + "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d@127.0.0.1:19736", "amount": "20000sat" }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:46213", + "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:19737", "amount": "0.0003btc" }, { - "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e@127.0.0.1:38251", + "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e@127.0.0.1:19738", "amount": "all" } ], @@ -360,8 +360,8 @@ } }, "response": { - "tx": "02000000000107feed56fc07fe7a3094f5f7c104f4ac8f3c96f6bf7c44df90619307d6f75c06850200000000fdffffff72819eb0ce9892c1025fd83e5e1a39fd30f79f843b489a32c20f45e67f37c5f30100000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800000000000fdfffffffeed56fc07fe7a3094f5f7c104f4ac8f3c96f6bf7c44df90619307d6f75c06850100000000fdffffff07e45ab0c8dc4bc9a42d260c71f3a722bd104e28623693e84e302eb62b8554940000000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800700000000fdffffff187f8d1b7292d57a46e23ae746c530741b8493dff74a7f62ca7e200204f6ec800400000000fdffffff040a8b250700000000220020f7bbe8f915381b4b9b1ca14cccbfd156eea19888550d01a5014f977e98c7fc8c204e000000000000220020369444aad3ac8c5452be625479f761587c42fbf66fecf644447daabc73c498223075000000000000220020d90c23ede7b77f89f4cae93da9326ba176d158a0b65faeaede5684c3c0f7c839a86100000000000022512018ece00b736f9ed77ed3a87426643c242223e3d6116a4cd6d90946f73de2ce71024730440220296f0d677ae2151a2fceb00c717483488f46aff309e28f36934ec3bcf914443f02204a7a20186d9b936e029c6b55df302386ad306f6738176945cf5d8607c18d16c7012102272a9a25f1ffed52fab04a2cc88aeab135b53723856a8f1481c26417f88a922e02473044022063c77ad73bd1993abc48b04b2f7b66ab7aa34f56f55c69b1c3e1868a4580554c0220466333d7e6e9163ec6ad6ef755be6e61a79a6a50ac8ad32d071b2819f2a113a60121029da47016812598be384212ce15793496c0ec2176a87e81c6432dae964f87c9870247304402205dfb4fcf67b12cf0fc3a1f3527bc37964c1604fb7ac11df2fd80b2bde605689d02203bbd1bcf5f92a6cd31c9459c9252d84fcd102fdfc8e367360e71ef047c704015012103d034f788f410c2ec2d89d161df3c3715f965248aa53eace463d10eca443eb1f20247304402203b12894f094c85c94bf7a898ddfe8d82359486aedb56b0891e5db83fee628dff0220478b954fd0514de5ff0d3273ed93d54f87e7d90e63f2d4b478a9a7669af2e1110121028a599168d3c97debc71bc66e6270ecf054f300d888309ba05471a482175dd9300140508f9706e9d6353d0a19a9128353fc8090948de09ee79afc35ae10c17ab0f894ec04eabf9187082bd31d3b63e9e52d99cbaef4c1f79dd6121024a7d3b4d994ec014054bdc1bab81661fd3ad8c0a65402abf2c2228da8f2150b6ce0cb8fddafd4c25a0318cc16cdbf72c5142dd6bbccb606cc7c2c39f91a218309dc5dadb7a74fe56b024730440220203ba0cc960cb70555e2096ecba5a5992b6b35ff621f736625360f836d208ce202207fa53d5ac33847fc166e03d888ef27c709dc65bfb79ece85d9d93bdda62c0ca501210267f4468ffafe6f919ae871f57f09690467f494e83e0358dc64d10472f9072f4c9b000000", - "txid": "9c3d4a6491eaa04c378101a7a7836f07409d04db8295b14930f89f7562744e18", + "tx": "0200000000010844612e5de34f3797133f4f382a78b3d75daaed3c8f81cdbf18d42e3ebb5fdcc90100000000fdffffffa268328ac03b8634fa375c4347fc12807fc9d0692f1e05f430a01b5a3caf04520100000000fdffffffcf9a8d265cd5831f409573ada398e3858e07df2d955ef7a8b7b5add2e37ea3930300000000fdffffffde391418ead7a53ccb929ca1825c259c5c8b072c91e626d93a197ce6c818d6ab0100000000fdffffff43ebb60924903921d94de30bea364f9a7cd1a4b5de44e09598b4eca82d5407870100000000fdffffff44612e5de34f3797133f4f382a78b3d75daaed3c8f81cdbf18d42e3ebb5fdcc90200000000fdffffffcf9a8d265cd5831f409573ada398e3858e07df2d955ef7a8b7b5add2e37ea3930400000000fdffffffcf9a8d265cd5831f409573ada398e3858e07df2d955ef7a8b7b5add2e37ea3930100000000fdffffff04405def1100000000220020f7bbe8f915381b4b9b1ca14cccbfd156eea19888550d01a5014f977e98c7fc8ca86100000000000022512018ece00b736f9ed77ed3a87426643c242223e3d6116a4cd6d90946f73de2ce71204e000000000000220020369444aad3ac8c5452be625479f761587c42fbf66fecf644447daabc73c498223075000000000000220020d90c23ede7b77f89f4cae93da9326ba176d158a0b65faeaede5684c3c0f7c83902473044022004db0f886da06dc3600c4bd0d36df04b90d7651615e0a31519ef89a72c088f7a022049fdbff3ca99be8d0c50c2eb6e492b0284d8752f0085284aa61a2c2e878051ec012102272a9a25f1ffed52fab04a2cc88aeab135b53723856a8f1481c26417f88a922e014022970ebfbc53c4eb48ca8f54b84788d3fc339c86406e97e8511e3b57019032733670a43aaae09c65162048684dfca58bc9ca2e0e123c52ac7786baefffafa24e02473044022062ef084635ea9ad1f06ff7ee5c5aa8b230634fa0dafdf7ead33f62d7e50329a30220646c088b6a7073ac14994352a0c029f5d4d7a230f811f8717558a4f391613b35012103d034f788f410c2ec2d89d161df3c3715f965248aa53eace463d10eca443eb1f2024730440220768b3f6429aba5dd1f88b014137afd5385d9a4959d40b20910877c9598234dfe02200279df7a2d1e13bb7484b0e3c0c9a0f34de100fd8e91c8d1df6c97cecca8c70c01210328cc8fc978e209f1695fa5b5655061db1aab2311b524176945bf1015ef2d4b89024730440220699bfe9fb97f2baa5caae24e65c44cbc06a5f0ab4ea9ef2a0420d0d6b9a07ef20220234b175879895651047ff95928fdb05c1af6fdf83df0648726ecca10a7cb800e0121029da47016812598be384212ce15793496c0ec2176a87e81c6432dae964f87c9870247304402200d017d3e8f5c189ee70955617f4fec8a9b4abf1eab28ece66e02393954d5c33c022079af8f619e42352fceb13aea88d69e6ece0dc7a72f423015bb07816b64557b320121028a599168d3c97debc71bc66e6270ecf054f300d888309ba05471a482175dd93001404873362f9b322bc01d0206704d242a22ac21e45d780ffd02e453864ce198e797a58fa66abe0e3c93b7cc2dcc8b6a3a6d0f991cceceac8f7664342c3ab097c53602473044022012f3d255ef5a594a781891d8f1e60feca1937b8d76613520c35090679e18f0d702203faf53602aa6296cbfbe9ae61eabdd8a31c03c71acf8fe1b706a22ae3e1f0b8601210267f4468ffafe6f919ae871f57f09690467f494e83e0358dc64d10472f9072f4c9b000000", + "txid": "91b7bff07c2b73df8361d32b793025191fc914d4543ffec6c2caaa3f6b4e2ebb", "channel_ids": [ { "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", @@ -376,7 +376,7 @@ "anchors/even" ] }, - "outnum": 1 + "outnum": 2 }, { "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", @@ -391,7 +391,7 @@ "anchors/even" ] }, - "outnum": 2 + "outnum": 3 }, { "id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", @@ -419,15 +419,15 @@ "params": { "destinations": [ { - "id": "03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:34785", + "id": "03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:19736", "amount": 50000 }, { - "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:46213", + "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199@127.0.0.1:19737", "amount": 50000 }, { - "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518@127.0.0.1:39877", + "id": "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518@127.0.0.1:19734", "amount": 50000 } ], @@ -435,8 +435,8 @@ } }, "response": { - "tx": "0200000000010289da71f14f2e28c351f3f2cea6c9008fbf316cd353f6a084a17851afd37e5be70000000000fdffffffdcb684b96d9a2a37ef441c5eca75d15ef35ca8e16a6df21dca5fb6558400ca840000000000fdffffff022610250700000000225120def24e878a66b695c4d5b414b42b7ce94471dac985bb0afb0367e8bbb92c5a5250c30000000000002200209bd3269fda069b7ee0584622d458bb437635b3a179265dee3843ef18f42f35c601404a5e8638f6961d1c42609a5497346af9ba4cffb7f44cc8869c7e158627a8bb35884652fe1927d0b1917e9c22328339c33adedf93a7c86d90edba49eef4d949f301400373733215aeb64ca95e21b16be5772d3ad2ba7fa92faf842eeffab2c5741a66076cd1fb8af1c6c65456eeaf05f9ac80ce5502ae3ff88c40b632d8785bcd63799c000000", - "txid": "313dc9366eeab30a094fb85297673187cfb93aec0ec8610215f75d129d7c06e9", + "tx": "020000000001011bea4432d536fde43a38fedb43f9027cc5aadbc75ff7aac4b7e38a64f024b8ac0000000000fdffffff02710af50500000000225120def24e878a66b695c4d5b414b42b7ce94471dac985bb0afb0367e8bbb92c5a5250c30000000000002200209bd3269fda069b7ee0584622d458bb437635b3a179265dee3843ef18f42f35c60247304402202e9d549dbb24b8bf730e85633ab8d728425b86ab9dc75204cbd6ed063b8b7e8e022066dbfe599399119d63344bad6de6aea1ffd359a5adcc522f5c7da5256e0d1d93012102a9e18887744b1c5a5cedea88fea2e0db7af0cdfba12ec517cf4e6d492dcc42f69c000000", + "txid": "57a60bc069195cdc5d0fc2d038cbcdb05d94aad11911e7506351bcac78ebe11b", "channel_ids": [ { "id": "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", @@ -460,7 +460,7 @@ "method": "connect", "error": { "code": 401, - "message": "All addresses failed: 127.0.0.1:34785: Cryptographic handshake: peer closed connection (wrong key?). " + "message": "All addresses failed: 127.0.0.1:19736: Cryptographic handshake: peer closed connection (wrong key?). " } }, { diff --git a/doc/schemas/lightning-multiwithdraw.json b/doc/schemas/lightning-multiwithdraw.json index 1bc7a1ffb27a..bc629474b854 100644 --- a/doc/schemas/lightning-multiwithdraw.json +++ b/doc/schemas/lightning-multiwithdraw.json @@ -103,8 +103,8 @@ } }, "response": { - "tx": "02000000000101057342aca7062873a4edd5a673980757885e5da8f68de3af254fe7c26d46e0700000000000fdffffff03df420700000000002251202b5dd0613b6e534f572dbcf4311b66e6cc8bb07e285928ddb6fa5791e4737874ae080000000000001600143d43d226bcc27019ade52d7a3dc52a7ac1be28b8050d000000000000160014d55c493983db651e10477455b1d408c31e7e9e310140beb27b31860b45464367b0f08334a0c90f3409ad176b9e21a35079495d6ce3dee0bbed786225ae56f59294466c9a14daf983375486dccaad7df3a7bc56b03faa87000000", - "txid": "85065cf7d607936190df447cbff6963c8facf404c1f7f594307afe07fc56edfe" + "tx": "02000000000101eef375a05cd9f6870cae8a0a0c29a8145c072c410ec949e4d315540e2d6b29eb0000000000fdffffff03d5030f00000000002251202b5dd0613b6e534f572dbcf4311b66e6cc8bb07e285928ddb6fa5791e4737874050d000000000000160014d55c493983db651e10477455b1d408c31e7e9e31ae080000000000001600143d43d226bcc27019ade52d7a3dc52a7ac1be28b8014097e06ae4e8c91a3e87bb73c1d66944a48de3ef03443b2cb8447237a07dc193f678e9d84f5adc38701be349f465beb326a33d0a68f6f9d347bc8094ae96aa71e387000000", + "txid": "c9dc5fbb3e2ed418bfcd818f3cedaa5dd7b3782a384f3f1397374fe35d2e6144" } }, { @@ -138,8 +138,8 @@ } }, "response": { - "tx": "02000000000101b621d886a10f33d5ad58c163a35cddf03bd435e3ed100f14af3fcdac1a7dff510100000000fdffffff08e803000000000000160014dfadaae18d57e4ef50e15b863d9e648bf9af67b1e8030000000000002251200978ea47f31ad6561d96ceee14e85192726536c4e1e59d09f217f3b5762b0630b53e1e000000000022512000dea9b3b059044ed411fe24d7bff4d1b3bbdd09a16034a096a4b175f7f5ac0fe80300000000000016001407905c6189c1ae8aff12566b03f35ff516d17e84e803000000000000160014a43b821a9790f880e113a395b717a0f354b9d9c6e80300000000000016001483bad0f86037b6f1194b4a6e2d813d9c1a30a730e803000000000000160014d1dc90a7bb3af91ed69e933dc38f555b580fad09e8030000000000002251202f843ba0c8de9d0c41a63a25d4cab22032be4fabf24931dab82214316be218ca0247304402203c885a48d44614905673678d31e1c6a42af612ca6cd20d65a2e81670cd11bf8a0220738dc66ca4c1c1d466d6195ddaaf7b0c98a60769b782c282ad1f9db30bb9784201210330a75acaed258be6bc02da9fab058abbe0e770caceb7c6496eaaea7014c3d39b87000000", - "txid": "80ecf60402207eca627f4af7df93841b7430c546e73ae2467ad592721b8d7f18" + "tx": "02000000000101ae80f7fb01d9f4b80cf274dfeb4be1a495862428f8cc80bf9a31011aa6bfc7c90000000000fdffffff08e803000000000000160014d1dc90a7bb3af91ed69e933dc38f555b580fad09e803000000000000160014a43b821a9790f880e113a395b717a0f354b9d9c6e80300000000000016001483bad0f86037b6f1194b4a6e2d813d9c1a30a730e803000000000000160014dfadaae18d57e4ef50e15b863d9e648bf9af67b1e8030000000000002251202f843ba0c8de9d0c41a63a25d4cab22032be4fabf24931dab82214316be218ca583408000000000022512000dea9b3b059044ed411fe24d7bff4d1b3bbdd09a16034a096a4b175f7f5ac0fe8030000000000002251200978ea47f31ad6561d96ceee14e85192726536c4e1e59d09f217f3b5762b0630e80300000000000016001407905c6189c1ae8aff12566b03f35ff516d17e84024730440220105454a97c0cdb3d4e46aefa39cae700cbcfa5642cc4b70d25a9aa737c4866770220646acf767a5bc52e7b76bcb868d5f04b5bce084f7849faf345ffc6c7a6f592670121022ca25964cb5e0e943c05f7043ab480102ba4acf33d75779a997444582b46475087000000", + "txid": "93a37ee3d2adb5b7a8f75e952ddf078e85e398a3ad7395401f83d55c268d9acf" } } ] diff --git a/doc/schemas/lightning-openchannel_abort.json b/doc/schemas/lightning-openchannel_abort.json index 56497c824fc5..631dc28dac25 100644 --- a/doc/schemas/lightning-openchannel_abort.json +++ b/doc/schemas/lightning-openchannel_abort.json @@ -80,11 +80,11 @@ "id": "example:openchannel_abort#1", "method": "openchannel_abort", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", "channel_canceled": false, "reason": "Abort requested" } diff --git a/doc/schemas/lightning-openchannel_bump.json b/doc/schemas/lightning-openchannel_bump.json index 02ed873e79f5..415b59f6164c 100644 --- a/doc/schemas/lightning-openchannel_bump.json +++ b/doc/schemas/lightning-openchannel_bump.json @@ -176,15 +176,15 @@ "id": "example:openchannel_bump#1", "method": "openchannel_bump", "params": [ - "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channelid0111200111200111200111200111200111200111200111200111200", 1000000, - "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "cHNidP8BAF4CAAAAAfeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBAAAAAP3///8C1B/00gAAAAAWABRMWEWDJJJR3jDuekFJeSLdjuLAOwDC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", "15000perkw" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEITP+kZdFBsOIAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQg8VGAuu93kPAABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCJhXLSQQ2IEcAA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIC2VDOhNCtOYAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQgGj5aMk0X5QgABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCLKXX4xUgziUAA==", "channel_type": { "bits": [ 12, @@ -196,7 +196,7 @@ ] }, "commitments_secured": false, - "funding_serial": 4347205294156014600, + "funding_serial": 472762016407615810, "requires_confirmed_inputs": false } }, @@ -205,15 +205,15 @@ "id": "example:openchannel_bump#2", "method": "openchannel_bump", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", "amount": 1000000, - "initialpsbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "initialpsbt": "cHNidP8BAF4CAAAAAfeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBAAAAAP3///8C1B/00gAAAAAWABRMWEWDJJJR3jDuekFJeSLdjuLAOwDC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", "funding_feerate": "15000perkw" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIS+Cd5vfOqCAAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQiSDWYjY1EU4AABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCNtUKyg2lsN+AA==", "channel_type": { "bits": [ 12, @@ -225,7 +225,7 @@ ] }, "commitments_secured": false, - "funding_serial": 10324133783552127000, + "funding_serial": 10524180206410863840, "requires_confirmed_inputs": false } }, @@ -234,15 +234,15 @@ "id": "example:openchannel_bump#3", "method": "openchannel_bump", "params": [ - "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", + "channelid0111200111200111200111200111200111200111200111200111200", 2000000, - "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "cHNidP8BAF4CAAAAAfeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBAAAAAP3///8C1B/00gAAAAAWABRMWEWDJJJR3jDuekFJeSLdjuLAOwDC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", "18750perkw" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIODCvUuY9uDgAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oDPwJbGlnaHRuaW5nAQhYEiVlT8USaAABAwiAhB4AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCH45fF4xyaJqAA==", "channel_type": { "bits": [ 12, @@ -254,7 +254,7 @@ ] }, "commitments_secured": false, - "funding_serial": 15943938423967650000, + "funding_serial": 9095437666455495274, "requires_confirmed_inputs": false } } diff --git a/doc/schemas/lightning-openchannel_init.json b/doc/schemas/lightning-openchannel_init.json index 2fcc4caf31cc..005003c1221f 100644 --- a/doc/schemas/lightning-openchannel_init.json +++ b/doc/schemas/lightning-openchannel_init.json @@ -220,12 +220,12 @@ "params": { "id": "03a00f49374e4bb876e766e9305e5fefa86e53dbc89a4f27d794b02f59ca316426", "amount": 1000000, - "initialpsbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "initialpsbt": "cHNidP8BAF4CAAAAASofqGPwUtBsb6fg/oqbsjl1g/yTl6b0Mz8dhW9f3p2mAAAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAAB94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BAAAAAP3///8CYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aICEHgAAAAAAIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd+YAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" } }, "response": { "channel_id": "a5be438539f73c018a98a4b9dd557d62430881c56552025b5579d180cc3887ed", - "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGzBTzTCENk6ggdL+V/LHCYeHlRIcHBtyNYdon39dT7vwEAAAAA/f///wKAhB4AAAAAACIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aJgAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gmJB/+YSzg1wUV8PgrzFq46BKlvP/F562hdVYA8IjSHoBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEI/+im2BTLcnwAAQMIqGEAAAAAAAABBCJRIPt3fY6TZitIHrcoOVvjKd9QjyEQynCYP5mbP7mla0PhDPwJbGlnaHRuaW5nAQhfx1o3nKFaVgABAwhAQg8AAAAAAAEEIgAgBkixRgS2irzkjzD4bs/Wm7V/PQFNNgUvPR5aBVpSJHoM/AlsaWdodG5pbmcBCHHI3g73GwAQAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH3gDeKYufep+naEBlG8cp+cFYm104lYp0oMqvN/XYA7wEAAAAA/f///wJiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9ogIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z35gAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gKh+oY/BS0Gxvp+D+ipuyOXWD/JOXpvQzPx2Fb1/enaYBDwQAAAAAARAE/f///wz8CWxpZ2h0bmluZwEI9YcwY4q7/44AAQMIQEIPAAAAAAABBCIAIAZIsUYEtoq85I8w+G7P1pu1fz0BTTYFLz0eWgVaUiR6DPwJbGlnaHRuaW5nAQhnhHQ8e5cdggABAwioYQAAAAAAAAEEIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+EM/AlsaWdodG5pbmcBCM1iHx8G6yAeAA==", "channel_type": { "bits": [ 12, @@ -237,7 +237,7 @@ ] }, "commitments_secured": false, - "funding_serial": 8199047277484638000, + "funding_serial": 7459214685952744834, "requires_confirmed_inputs": false } }, @@ -248,12 +248,12 @@ "params": [ "03a00f49374e4bb876e766e9305e5fefa86e53dbc89a4f27d794b02f59ca316426", 500000, - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAF4CAAAAASofqGPwUtBsb6fg/oqbsjl1g/yTl6b0Mz8dhW9f3p2mAAAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE91AAAAAAEAiQIAAAAB94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BAAAAAP3///8CYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aICEHgAAAAAAIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd+YAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" ] }, "response": { "channel_id": "b3b2e46371876858784cd1b87ecf406e32d8f98b7a44b7f436d1dca317ce0f1b", - "psbt": "cHNidP8BAgQCAAAAAQMEmQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGzBTzTCENk6ggdL+V/LHCYeHlRIcHBtyNYdon39dT7vwEAAAAA/f///wKAhB4AAAAAACIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aJgAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gmJB/+YSzg1wUV8PgrzFq46BKlvP/F562hdVYA8IjSHoBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEILfzCFE4M1pQAAQMIIKEHAAAAAAABBCIAIMG0H4vceOuMkzqvG9svQmglTygLSd9kn0qrQFRmpEvIDPwJbGlnaHRuaW5nAQhU+Hu3eGH5tgABAwj2UcULAAAAAAEEIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE8M/AlsaWdodG5pbmcBCG0sGEoFgVYuAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEdQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH3gDeKYufep+naEBlG8cp+cFYm104lYp0oMqvN/XYA7wEAAAAA/f///wJiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9ogIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z35gAAAABAStiDc0LAAAAACJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oAQ4gKh+oY/BS0Gxvp+D+ipuyOXWD/JOXpvQzPx2Fb1/enaYBDwQAAAAAARAE/f///wz8CWxpZ2h0bmluZwEIxtFfIq7KznIAAQMIIKEHAAAAAAABBCIAIMG0H4vceOuMkzqvG9svQmglTygLSd9kn0qrQFRmpEvIDPwJbGlnaHRuaW5nAQhZ9Z+UKJv51AABAwj2UcULAAAAAAEEIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE8M/AlsaWdodG5pbmcBCJmT8UOpld+GAA==", "channel_type": { "bits": [ 12, @@ -265,7 +265,7 @@ ] }, "commitments_secured": false, - "funding_serial": 6122779721339107000, + "funding_serial": 6482262697354983892, "requires_confirmed_inputs": false } } diff --git a/doc/schemas/lightning-openchannel_signed.json b/doc/schemas/lightning-openchannel_signed.json index fe11cc585b1b..94d3836e6367 100644 --- a/doc/schemas/lightning-openchannel_signed.json +++ b/doc/schemas/lightning-openchannel_signed.json @@ -93,14 +93,14 @@ "id": "example:openchannel_signed#1", "method": "openchannel_signed", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHlCL2oKhnYn6hhaUG8+V+8D6GHFlI61OM507VB6aBwoAiACA2d5TnCdlJ1j2rF/EIHkxl3W0hBp3QqweO7hEul9aQEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEArDQdItNjSAAEDCEFZ3AsAAAAAAQQiUSA74Tflo81LdhBFqIwHKNMkNRg28E7Vnf2jebjYRkZStyEHE0cioCqqq2UZ2npxQi9Q6DXNZheODM6F4GjHHS3XScEJAG/ctUwEAAAADPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHDLi6bViSACbDYdEbaHPNPCyjz9NnzovZfaEpwj2dsZAiBFefBfAGR1cP/K6CJ3U6V6iHlbWa5z0+sa+vklH0hE7gEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOIPeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEvgneb3zqggAAEDCEBCDwAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEIkg1mI2NRFOAAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3IQcTRyKgKqqrZRnaenFCL1DoNc1mF44MzoXgaMcdLddJwQkAb9y1TAQAAAAM/AlsaWdodG5pbmcBCNtUKyg2lsN+AA==" } }, "response": { - "tx": "02000000000101b3053cd3084364ea081d2fe57f2c709878795121c1c1b723587689f7f5d4fbbf0100000000fdffffff024159dc0b000000002251203be137e5a3cd4b761045a88c0728d324351836f04ed59dfda379b8d8464652b740420f0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df02473044022079422f6a0a867627ea185a506f3e57ef03e861c5948eb538ce74ed507a681c280220020367794e709d949d63dab17f1081e4c65dd6d21069dd0ab078eee112e97d69012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", - "txid": "ed994900569f2fddca6d86675f2e2247000197ee69aa53348e63e16fbaf39409", - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "tx": "02000000000101f780378a62e7dea7e9da101946f1ca7e705626d74e25629d2832abcdfd7600ef0100000000fdffffff0240420f0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df4159dc0b000000002251203be137e5a3cd4b761045a88c0728d324351836f04ed59dfda379b8d8464652b702473044022070cb8ba6d58920026c361d11b6873cd3c2ca3cfd367ce8bd97da129c23d9db1902204579f05f00647570ffcae8227753a57a88795b59ae73d3eb1afaf9251f4844ee012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", + "txid": "8cfd582ecdbb58d5960189be1cc1b3dc9d7363843c1cf4ddcba64a8abf618d8e", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } }, { @@ -108,14 +108,14 @@ "id": "example:openchannel_signed#2", "method": "openchannel_signed", "params": [ - "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIA8+zCzZ59t2OEFHWefZeTypY89RRQ8dMQCjtGWw6gskAiArELH1MvjW6j1G1CKnLZdV+/oabLDU48ingGSPFDOYxwEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMEUdbrta/BqAAEDCICEHgAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEI3UQ/haFLESAAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oIQeffk+gJsmVIxDZ8UKPKgJB9CLvaUr9xqOEogpzJx1hbAkAEioNzwUAAAAM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "channelid0111200111200111200111200111200111200111200111200111200", + "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIFGlKiwHZ+pcNOkncPr3qLANQJqI/pD4ljgCbPFAIPilAiAQH3FjaM/9j/ZLtpvfw+IJ7Yr9mGcXHc7/lrS4ZRE6BgEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOIPeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCDgwr1LmPbg4AAEDCGINzQsAAAAAAQQiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aCEHn35PoCbJlSMQ2fFCjyoCQfQi72lK/cajhKIKcycdYWwJABIqDc8FAAAADPwJbGlnaHRuaW5nAQhYEiVlT8USaAABAwiAhB4AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCH45fF4xyaJqAA==" ] }, "response": { - "tx": "02000000000101b3053cd3084364ea081d2fe57f2c709878795121c1c1b723587689f7f5d4fbbf0100000000fdffffff0280841e0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df620dcd0b00000000225120c9183ede9121f3c6fd1498822c47a760273227669c909508843bac5bbd813f680247304402200f3ecc2cd9e7db7638414759e7d9793ca963cf51450f1d3100a3b465b0ea0b2402202b10b1f532f8d6ea3d46d422a72d9755fbfa1a6cb0d4e3c8a780648f143398c7012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", - "txid": "7a4823c20358d585b69e17fff3964aa0e36a31afe0c357145c83b384f97f9098", - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5" + "tx": "02000000000101f780378a62e7dea7e9da101946f1ca7e705626d74e25629d2832abcdfd7600ef0100000000fdffffff02620dcd0b00000000225120c9183ede9121f3c6fd1498822c47a760273227669c909508843bac5bbd813f6880841e0000000000220020c9bc5c063caefbf7a6c7814407b5627b4f81a8b56ecbe932c682f9cbac0d19df02473044022051a52a2c0767ea5c34e92770faf7a8b00d409a88fe90f89638026cf14020f8a50220101f716368cffd8ff64bb69bdfc3e209ed8afd9867171dceff96b4b865113a06012102473d79cf4a10e7ba834c026aac43ea18b0a7fb75ecda5184bfafa8c46615f6b798000000", + "txid": "a69dde5f6f851d3f33f4a69793fc837539b29b8afee0a76f6cd052f063a81f2a", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200" } } ] diff --git a/doc/schemas/lightning-openchannel_update.json b/doc/schemas/lightning-openchannel_update.json index 0ca4e10e4c05..44b080ac5f34 100644 --- a/doc/schemas/lightning-openchannel_update.json +++ b/doc/schemas/lightning-openchannel_update.json @@ -209,13 +209,13 @@ "id": "example:openchannel_update#1", "method": "openchannel_update", "params": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIS+Cd5vfOqCAAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQiSDWYjY1EU4AABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCNtUKyg2lsN+AA==" } }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIS+Cd5vfOqCAAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQiSDWYjY1EU4AABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCNtUKyg2lsN+AA==", "channel_type": { "bits": [ 12, @@ -227,7 +227,7 @@ ] }, "commitments_secured": true, - "funding_outnum": 1, + "funding_outnum": 0, "close_to": "51202321a432c9022a560c7dae78bdb72c605c373961edd29c42aa98c183782d052a" } }, @@ -236,13 +236,13 @@ "id": "example:openchannel_update#2", "method": "openchannel_update", "params": [ - "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "channelid0111200111200111200111200111200111200111200111200111200", + "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIODCvUuY9uDgAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oDPwJbGlnaHRuaW5nAQhYEiVlT8USaAABAwiAhB4AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCH45fF4xyaJqAA==" ] }, "response": { - "channel_id": "b020c1c6818daf024954c9ee578caad058cbcae7dd75b2c4d38b8f6f81901ff5", - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==", + "channel_id": "channelid0111200111200111200111200111200111200111200111200111200", + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIODCvUuY9uDgAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oDPwJbGlnaHRuaW5nAQhYEiVlT8USaAABAwiAhB4AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCH45fF4xyaJqAA==", "channel_type": { "bits": [ 12, @@ -254,7 +254,7 @@ ] }, "commitments_secured": true, - "funding_outnum": 0, + "funding_outnum": 1, "close_to": "51202321a432c9022a560c7dae78bdb72c605c373961edd29c42aa98c183782d052a" } } diff --git a/doc/schemas/lightning-pay.json b/doc/schemas/lightning-pay.json index c8e1de1aa9ee..1677e4c9c7da 100644 --- a/doc/schemas/lightning-pay.json +++ b/doc/schemas/lightning-pay.json @@ -243,17 +243,17 @@ "id": "example:pay#1", "method": "pay", "params": [ - "lnbcrt500n1pn2s396sp5h5tz6fpm3dxvrlwcnwmfq85v45wfj43mdmplpce6ku2vmfdhrx5qpp50z9w5u57meydx9dpn889mmtkz6tqrfsa65hfwd88ql4hc5hyu70qdqcdsenygryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqt5m8qx0t25a0gygya7u4sxulyyp2dec87pwsxuuwtg0u66c07703g9j6vlwgmlhqk7qgn95qw7allhnuj2m9hf0xkcr2zkaxltv3t6gqjcdpll" + "lnbcrt100n1pnt2000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000" ] }, "response": { "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "788aea729ede48d315a199ce5ded76169601a61dd52e9734e707eb7c52e4e79e", - "created_at": 1722303686.2193663, + "payment_hash": "paymenthashinvl0320003200032000320003200032000320003200032000320", + "created_at": 1723161045.662865, "parts": 1, "amount_msat": 50000, "amount_sent_msat": 50001, - "payment_preimage": "0e07efd883f66b6b22ec7f2e7116e203c3fecc22eb8596a73eaf06c4befb0641", + "payment_preimage": "d8c1540694459ba88c193af87bb3748ab130af6f8a27b6cfcd8f0a1dbd604fa5", "status": "complete" } }, @@ -262,17 +262,17 @@ "id": "example:pay#2", "method": "pay", "params": { - "bolt11": "lnbcrt1u1pn2s3xxsp5xk8hs6zuv0yqhq7hhl0sps6mxuj78pzwryejaljh48vr4htykujqpp593ndc8wrukteld5j4nqnt6tedavh8ezv48dmrkqen3440ajnre5qdqcdsenxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgq0asve9rdtfd9fe20u5vjujzmm0phpq538z8ndhn5ts62aflhktqn6338e45xcxkyf7askjjq25ksxt4eqarjjame8wfdmau7kq7m4csqs0n32n" + "bolt11": "lnbcrt100n1pnt2000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000" } }, "response": { "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "payment_hash": "2c66dc1dc3e5979fb692acc135e9796f5973e44ca9dbb1d8199c6b57f6531e68", - "created_at": 1722303688.41859, + "payment_hash": "paymenthashinvl0330003300033000330003300033000330003300033000310", + "created_at": 1723161047.921188, "parts": 1, "amount_msat": 100000, "amount_sent_msat": 100000, - "payment_preimage": "1ce8370d3a179cee3af25a5a6c7058e8e12033a842efd6d34abae53334bc94bf", + "payment_preimage": "d4ef5f080df87ef70cc0c2eea0cde7f6161cbf279d30448a2e54b9313f3e5c87", "status": "complete" } } diff --git a/doc/schemas/lightning-preapproveinvoice.json b/doc/schemas/lightning-preapproveinvoice.json index fda80038ddfc..cc980c54fba4 100644 --- a/doc/schemas/lightning-preapproveinvoice.json +++ b/doc/schemas/lightning-preapproveinvoice.json @@ -48,7 +48,7 @@ "id": "example:preapproveinvoice#1", "method": "preapproveinvoice", "params": { - "bolt11": "lnbcrt1230n1pn2s38psp5jf2zk7py4wmutyq4pdr6783egft24nkyhfrxegrzzqnef2matw2qpp5rf5zgqyexdt7q5ean83cvcjuc3jafn8etm3c0za6xldwcyllvffqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydqcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq8nn5qkcp9xl5u7dlqamdys6e6yc0ngyqe676cqajnwax6657verj7at5gvdqu6nk3l0wcagq4muyhqqms4t0t9sfvyazpga5eywj6uqpyc409e" + "bolt11": "lnbcrt100n1pnt2000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000" } }, "response": {} @@ -58,7 +58,7 @@ "id": "example:preapproveinvoice#2", "method": "preapproveinvoice", "params": [ - "lnbcrt1240n1pn2s38psp5ufjqj6kuxlvl65xue9p06ulyvwf9sm0utxlch59d0ynl05778vwspp5qlacxkrdmc2p50yl8lsl75pwmlhve2ret2yd2f34z7jfs7yffwvqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydgcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkml60qaytvnd08p57w7enuna95s7cqej8cfuvsgjzpeq9u83s0hqh60667nrp40qkqxkdu36z8wqtmac5z3208rwyn0q2pv56sgz5dcp9mn5hc" + "lnbcrt100n1pnt2000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000" ] }, "response": {} diff --git a/doc/schemas/lightning-recoverchannel.json b/doc/schemas/lightning-recoverchannel.json index 6ab6cf3272ac..21fe300eb975 100644 --- a/doc/schemas/lightning-recoverchannel.json +++ b/doc/schemas/lightning-recoverchannel.json @@ -57,23 +57,23 @@ "method": "recoverchannel", "params": [ [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f0000019d5a7186aa97726339b4e70584b1e3b120c93fc132f11637eb25beff7f1427926a1a0000000100000000000f42400003401000", + "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f0000019d5afdde97160a79cf3976c75e87ec8d2be01940df5d9a82effe64aa775649c3b0ed0000000000000000000f42400003401000", + "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000018a572a6796cb2be07197841b8bee4184f72c16307c7fd0beaab2acdc6e379591708a00000000000000000bebb3cb0003401000", + "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001945cbb2e4e6b3faacac2c6fe3f54d414c91f192530792bd36183df732b7cf0bfb7910000000300000000000075300003401000", + "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001945c1be1eb78acbc516350e71119d1aa945db0cdcb38d0c20f5ddc5c1969c00ba65700000001000000000000c3500003401000", + "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f000001dc8e36eb8415e6999c7d4779037423719ecc70d2dfa97d2fbcb6599b822aca0baeb10000000100000000000f42400003401000" ] ] }, "response": { "stubs": [ - "f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb", - "21bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357", + "channelid0340000340000340000340000340000340000340000340000340000", "7512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2", "222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa", "a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a", - "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a" + "09eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a", + "f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb" ] } } diff --git a/doc/schemas/lightning-renepay.json b/doc/schemas/lightning-renepay.json index e1bbd6a4ce01..200c4bec1e54 100644 --- a/doc/schemas/lightning-renepay.json +++ b/doc/schemas/lightning-renepay.json @@ -180,20 +180,20 @@ "id": "example:renepay#1", "method": "renepay", "params": { - "invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "invstring": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000", "amount_msat": 400000 } }, "response": { - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "created_at": 1722303718.0730329, + "created_at": 1723161076.2195814, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "payment_preimage": "3a48ddf3612ee64c5052bc5d41423f41a9f675fd3b5667d7d68a393edba1903c", "amount_sent_msat": 400000 } }, @@ -202,19 +202,19 @@ "id": "example:renepay#2", "method": "renepay", "params": { - "invstring": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx" + "invstring": "lnbcrt100n1pnt2000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000" } }, "response": { - "bolt11": "lnbcrt40n1pn2s3xxsp5j329vez86jvxw6543zlcla2fusm7v6h74pf7ftmmyfv6zm9uedlspp5j6xpxmq8cwd305vj2dvd6dh4mkr0s6guvehvyleymedgf4vsm3ysdqaveskjmr9vssxgetnvdexjur5d9hkuxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqk6uwy8pkv42jzhdna3z4vxpwkapdzzpn2tcpjnqj738nlpkjc583l9v72vlskt8y33rr4z3jma32xx7ve0jfy7anvn6r98cr5flhcuqqhr4shx", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000", "amount_msat": 4000, - "payment_hash": "968c136c07c39b17d1925358dd36f5dd86f8691c666ec27f24de5a84d590dc49", + "payment_hash": "paymenthashinvl0340003400034000340003400034000340003400034000310", "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "created_at": 1722303719.1643083, + "created_at": 1723161077.342083, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "8815ee921dba644c076f9f879abb520d8539a6913856a439752eaaadff1e21ac", + "payment_preimage": "fd3a3a97982b92ddbffd8394ff3cbd835a9690e8e6efcfe9f91937ca26cf76b1", "amount_sent_msat": 4000 } } diff --git a/doc/schemas/lightning-renepaystatus.json b/doc/schemas/lightning-renepaystatus.json index e723134829ec..be0c4eb653b6 100644 --- a/doc/schemas/lightning-renepaystatus.json +++ b/doc/schemas/lightning-renepaystatus.json @@ -141,21 +141,21 @@ "id": "example:renepaystatus#1", "method": "renepaystatus", "params": { - "invstring": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7" + "invstring": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000" } }, "response": { "paystatus": [ { - "bolt11": "lnbcrt1pn2s3xxsp5xvccgadvepzypat5v8u8tstwdvn9ez4908h7ntl4s0ggx76ug4cqpp50qwurth9swdlzphjvjc2qm8sws8jcu0u28y4vt5s7nhr3js0c3vsdqcdserzgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqw4qfxj30wqn2m2qmcfz2gs6ttszdhkc0kjqk0mgg59tj2cy90wcke4tjzmzakrkvcgqgf3367j47q5g2ruuw67cxaqxm2t4m42yecsqp92jzs7", + "bolt11": "lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000", "amount_msat": 400000, - "payment_hash": "781dc1aee5839bf106f264b0a06cf0740f2c71fc51c9562e90f4ee38ca0fc459", + "payment_hash": "paymenthashinvl0210002100021000210002100021000210002100021000320", "destination": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "created_at": 1722303718.0730329, + "created_at": 1723161076.2195814, "groupid": 1, "parts": 2, "status": "complete", - "payment_preimage": "af67b48518e78e157db404d13cb42987c31e034634203d10b224302b05fc6c90", + "payment_preimage": "3a48ddf3612ee64c5052bc5d41423f41a9f675fd3b5667d7d68a393edba1903c", "amount_sent_msat": 400000 } ] diff --git a/doc/schemas/lightning-reserveinputs.json b/doc/schemas/lightning-reserveinputs.json index c7402f9fb4a1..aa86dceebd09 100644 --- a/doc/schemas/lightning-reserveinputs.json +++ b/doc/schemas/lightning-reserveinputs.json @@ -112,14 +112,14 @@ "id": "example:reserveinputs#1", "method": "reserveinputs", "params": { - "psbt": "cHNidP8BADMCAAAAAfcJ+tPRXly5UFuX2jOOOBUcBBjfDGAC8vLWfrkJf/O2AQAAAAD9////AAAAAAAAAA==" + "psbt": "cHNidP8BADMCAAAAAQ8nBnoMBfybWGmDMfG01WumU0a9pXUi73bxffD9BG0gAAAAAAD9////AAAAAAAAAA==" } }, "response": { "reservations": [ { - "txid": "b6f37f09b97ed6f2f202600cdf18041c15388e33da975b50b95c5ed1d3fa09f7", - "vout": 1, + "txid": "txidchannel01112001112001112001112001112001112001112001112001112", + "vout": 0, "was_reserved": false, "reserved": true, "reserved_to_block": 226 @@ -132,14 +132,14 @@ "id": "example:reserveinputs#2", "method": "reserveinputs", "params": { - "psbt": "cHNidP8BADMCAAAAAQmU87pv4WOONFOqae6XAQBHIi5fZ4Ztyt0vn1YASZntAAAAAAD9////AAAAAAAAAA==" + "psbt": "cHNidP8BADMCAAAAAY6NYb+KSqbL3fQcPIRjc53cs8EcvokBltVYu80uWP2MAQAAAAD9////AAAAAAAAAA==" } }, "response": { "reservations": [ { - "txid": "ed994900569f2fddca6d86675f2e2247000197ee69aa53348e63e16fbaf39409", - "vout": 0, + "txid": "8cfd582ecdbb58d5960189be1cc1b3dc9d7363843c1cf4ddcba64a8abf618d8e", + "vout": 1, "was_reserved": false, "reserved": true, "reserved_to_block": 226 diff --git a/doc/schemas/lightning-sendinvoice.json b/doc/schemas/lightning-sendinvoice.json index 1183aad6bc9a..a99337406c7a 100644 --- a/doc/schemas/lightning-sendinvoice.json +++ b/doc/schemas/lightning-sendinvoice.json @@ -206,22 +206,22 @@ "id": "example:sendinvoice#1", "method": "sendinvoice", "params": { - "invreq": "lnr1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq947t0ks7a4yejz8w79x4zj25s3pu6zrnw2e0v2ugdescpcqsq307z4p2dlxe92fv7xd43qut0pjkg4y094hupqyhsj8dlhvmmfng6sv", + "invreq": "lnr1qqgvfypggatztds3xxugvmyx9h8fuzst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e7pq883ffy3mps8ctfgd77glkgrlrd4heq6tx3vppvhse9p4ghfzgr4wlmqh3jg7zylz345s5973d763rrrrkju5zs7p7s4uztqp8dqwt3g", "label": "test sendinvoice" } }, "response": { "label": "test sendinvoice", - "bolt12": "lni1qqgypua5g7rp293k00s66ayvnv26czst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcq2s27mvxt0arlnulnmce53cuz00vzaqvgvhpphxgavl89r8zrdhaxqgzpvxkkmwsmxnuwflttmnpc8vtzwlgd3cfty3xwlnlc9r2gcjesguqqv4xey4m7l4wxem27vxyxfhwznlc62kffsd5xncx9w49m4g72u2y7lcl6a3x5cpu52j6gm8q5x0q8k7myxdzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3n2s38p5cq442pq5qpm4ht26v8statwxcrl65uy26c9hx4dvy66f9x665eqqy90tpz25qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsqfkcrpht0d3nnt8txkcgf5wr6gzrlacls2gyrvj5hhwuu98shurrn6ayruunju7k9yu9clvaj354tr064ruuht88q5dj73kzru20uzj", - "payment_hash": "a003badd6ad30f05f56e3607fd538456b05b9aad6135a494dad5320010af5844", + "bolt12": "lni1qqgvfypggatztds3xxugvmyx9h8fuzst2d5k6urvv5s8getnw3gzqp3zderpzxstt8927ynqg044h0egcd8n5h3n9g0u0v4h8ncc3yg02gps7sjqtqssytfzxcs2xkdy0lml0tzy0jzugmyj8kjn8zfzrgq9fsgurc72x82e5zvqyehytxx360zptatj4pygsv9kpal8gnkeyd0tpvd6jv5rkv2uqdgcqdpxv8f07x9en6939lqvnd3kwxx5mxrn54y3fsrk2lfdn85realv5qgza85hwqaezzknka2q70j9sn9zs6yl5ucsf9tyexevm709nkytjkmsqvnrk3vqqk0gawz5g9z5rawt6s0aj5v8lya7zj53fn8zzc7dh35cr9tpjuu9wr9nkft4duaa6hj3zh0unydzrsqqqqqqqqqqqqqqq5qqqqqqqqqqqqqayjedltzjqqqqqq9yq3nt2k0j5cq442pqc3n70wexn0wtfw5ls26v524ze3c3fpqjh0v5x7s397vnp0tguv925qc0gfqtqggzvmj9nrga83q474e2sjygxzmq7ln5fmvjxh4skxafx2pmx9wqx5v0qsp4td04uredmz0ay7s68q0lk6twuchg6f2qgdhwjw05acxr29su8mr8lwv2072tk628zajexs4mvuftk2gnugy8f48l9u6vn29ngkgk6", + "payment_hash": "c467e7bb269bdcb4ba9f82b4ca2aa2cc71148412bbd9437a112f9930bd68e30a", "amount_msat": 1000000, "status": "paid", "pay_index": 1, "amount_received_msat": 1000000, - "paid_at": 1722303714, - "payment_preimage": "6f154ed7d108349cb6385eba5f160294ef83862c2c560ba6446b2a3da5c2b3b3", + "paid_at": 1723161075, + "payment_preimage": "35e97d5a4108b85fbe6498e6ec42320ea13c1a18714d1420bb5724093053c42d", "description": "Simple test", - "expires_at": 1722303803, + "expires_at": 1723161164, "created_index": 3, "updated_index": 1 } diff --git a/doc/schemas/lightning-sendonion.json b/doc/schemas/lightning-sendonion.json index 6f8d7893e19a..8c29f41b4470 100644 --- a/doc/schemas/lightning-sendonion.json +++ b/doc/schemas/lightning-sendonion.json @@ -331,26 +331,26 @@ "id": "example:sendonion#1", "method": "sendonion", "params": { - "onion": "0003ccc1f8876af4810e23bd4cccd8f2f38ee5dc117f527c783fefa4e632f857c98d588d2e3150d16b78f9458777502e4829b490e8a2d560841eb0c2368311bf9bb4e8ded0356badafd915839409ad60866c24dd7580b468c14097575565ca95425b9f44211d9ad0305ddba2391a70892ac8c9fd7c3b67d0fe22faf5a0b6905ee2e22278fe224e89ea72c3fcc598b35afaa255123e61ae7a697703e3bb8aec4d36ea487df6ec27942aadff0527d178c897e75f1ee284995196b5ead963ee9d0df798c8265c00c5c73daac917d298cc17e5d813189321d914c45ef30170c4d617dae12bb3a760d1665705e61bb6c52789e15623cefc68d96b86a6f17159c4a86bb196c9f5e40a0744d08d6da0cfd587717b6d0d074d42ac0893fa6ae1497c84824f1d27670d4e201af5e9e5a3493b603cfc209bb0ee41b573ca647c5b9882272c972cd18f19fd895e8995097d86882a473f4d26118a7ed656c5ea04c2a183b05cc0191d07fab5e78edab4ab8ec58e05e03f32d150449c0c8e3505e46ae58e77c87616144873f72f4571b00ccf8e71bcdf33a7d32345aecb660970fa73c4844ab157aa322f140f5d47b66a0590273728ddb5b8a7f3577cff5a268935b93fe598d6df4413c67c45efa9461abaf3294070a484418aa28c03ac20d08856eb0c74dfca851e8ed110bdcacb2a2fb90954b04e99986fde0678846a709120b5d1eeab9cde8d9f27d77448f4591e00bf30d7580703e6c189c658746cf7a7cc1430ce41f84244612b438c3d895333848e5f55e99b2a9d28860863c11aaa8e3ef01ead7ba1545156c356424c33aeeaa2f1e2c290d1d8dd52cd7b8116159025aba26db6fb81ad7f9cc4554c6f9f13d16defe38918b32d62a0516521934a0009a8d37c9a84689bfd8fc1f0beceb92701dca11175e0099d7541698956ba5d93efff996f538ee47717ae6c5cda98111bc28c822e99cf8957b707de270f447b6e52d30bcf9b8a9befd8663bc54612b543d0e167da67e2f295207b70857d0a7cae8932d905db2f48c873dec20aeafa07e15fa98a088e529424c8b404f03ba0ee78a6639fde5cd37dee42877ff6489ce1de5a8992cae25dd20a6521955c19129fdcc0ea157913373bf47a8018a1dd825a2f8e26194d5008161360ae9b25fc701b2accbe88eb47eee6a50b7ee6d6e169e3905e03ca72e00eb6a51b7ed3d27501715428368662b822e2262749d3e7d3243c4fd3d825b3e72bebdeebf6e035f1ad6634523ab5dc0335611c19c9936d006f2e4cd8818eb4f8b4857c8f35d18a4891e35ff91e3b54b384398574d673fcc8da50b22b8f485a41223c97e3b8ee5b8e5ff9c00a2cbfe7360509d3fee9248b5eaa81bb83da3be45dfa8cbbbf5c52ba8749c9d6261d4239feea1e7ce85ad40ad0c66bbeb1c6898626ae4e710a66f9c39a5ee94581353b46e070cfcff9a14e3f9a6108d55bb92852eb3a50e89b1e45d31b760f2a4e263a6a876ad638b123ffee7a2b0b48e16175e3eb92bfaad4dbe0af8b2bc1c15fec5a9d92d3970c2ffab2ab8fa2c9de0bd276680a4284707cd8543a97bca2394e9514236129f1c50a932f7e9bfb98c2aaa6ffc9a4a30641061246de6edf0f711a8d25d59af42ee4445b22ce2f832f3ece52c18ca62d90c590729e04c47accaec95b556ee2541c84843c54a116f5cc45bc251a8023b695f0bf79c43a97bece8a761d387a466821984fb5ec438af20d14cebb7f0026988c81b5a1b895ef94df61aa509e53083b4306c42132b5ce302fd5a2fbb1cee30a7078ccaa3bdccf781b8c9d6ae016a5f8e5cb13f7ac1f3fd0d74a182c9abea67d346f0dfcfc211aaa7ff47196465398fce3e6e0f3b73a944a7f57a90cc6a8f1bfcd385f8312e23af6f508f4f8a976d750660ac3d63630555a3a2e7fe158a982aaf0278d9f8819e5cb", + "onion": "00021d194283ab99dbbae50081eb3311dd538e20f81444ad161a041a958b0e5d518bbf77af181b1b049f9f40f3df40240e6c1bf9e0604fcdbf8a62c03d38ed0db4c606e3455e4a43c28510b4bb259bd5dac01122dd11312f4d1b5a1f6d97c6740941606ac0575ba77fb265a20d2d06c701bfaae24403b4353fa7017b695c49a0f3c056f8ef9c9fbd001c7428d9b2e36bf87e62a1c0d84d2dad7edcc7ff83679e0da46c3354b8e5f426b05576dfab02de79d209e827859c1aa0e4b25bfbd796d6fa3b7c818d20bfbed0ee8bc61bf96f3d5f2a7fb80b80c61e7caae142c878283057d338dacb91132ffb05036270e891579507f2e9bc759d75629b698128d6bc6c8e6b44208eae4c525f98e2efbc5aae79a97bce2b471d29865a7a6b427a3c288cd48d839eb23b5fa9a1eed62afd762921d541978ec8363cd186191d8b3e0d3e52d74fb17652889286a650e36c2cf60f0d3adbe2440cfbe332240f87f1933f35eb2d4e5bc542198c3d3bd1bc957a07a84ca6348c9dc2afff05a7441dc4be7e71e6babb8cf9a12255d967d2afb56e293d4d0c6b8b11c175b9c5c3e9d866b47ab2e2e88dab537b0f7c97f8d3ddfc62260824dde819edc8852bc91921bb0810daaa9f1179a1f94fa9a9bc5cef8f6e598c8e82544ede00b4d2beff581a23fc875758ff727fb652c30cc67f684154b8c347195aef0b511df270efc5f2af14e673b748ac7d8af74b1607b2a3900542ef971bfc98f6feda54c06c7d58508a91f477431adc0ca016f676ad6f5610a84e8864647a35efca7ee6b145ebc4676cf6cbcaf4a1127a5f5ee16bc088c162df4342bcde8554f7d48526561f19d92abcf7984f8a5ebb5c01846386cbfc5f84b59233812d2bc870cddf0bc3920938d844ebcd306ee768100cae57d14798025ee123e2cddb8f062c7246a83b0c1fa639bfb4895969ecd52aca093c860c4f49a880fb37a31647645d4738c426468891dbc03197f0de0f9ca9ca7c8ad464e38ed579d65d29f421ffccc956aa61edcdbd8f880d4e68fc43439b02d98ebdbc01be0a61915b1705e30197c57ee7230bfd300ead85e0a0190e225f8d3b9720b6bd30d27e6ccbc979c33c462c6c813ee3761e5eba47b705676f2b42392011ad2154e3f5bab78a1a69695c46a77ca727312d08d5ddc96a2e46f99270c305e107e2f062b45eea0ef9ec6dc58abd15e28fc134f5e97a6897a3a9dba5ad0cc978deff3e75559cf39a81a43dc1e19000acd080241477026edbf6941583b84688a77bba67b9a67fd54e3d0516f422205f4dbf9f23c69262bd223b2aa65b72ad7933f96db368b1f632ddd0c75297a8ebaa622731d9c75fc79fe5ffcc44b10cd19975c823883d695acc3ccf654207db61dbff1d60643ed47132b487c36fad98a8596f0ecceef74687b637727d80cc000cf8baa42892ce9af21e3d68caf1ad44c58ce759da9f2b101c53350f5cf9730ab4ed197d9a7b92495fd2cb385c9233c0cafc615ab4cb587149cad268b7b467745190ce32de05b70b0920737e383bc096c9faa49cdfb29da3e737a0163e6b45fc661f706ca64c45d8a2f2d1681abe52312a30d73aa622ba0536de6a6c2574f0b7aaf078bd3c80a4a7c4474fb294d19180431b54451a90560537e44d5217d70a27008d729ff987c29aa591adc386d7791ffab87f9069bdc151d9a84e82f87c7cc4631bf9e5b22a1771c4f8580f80f016efd9eaf2a98f7981c716221cb71c8c347e7189d1124776002356064381cd71e13fbdfab88efe3502e31ba2370d8ff1f9e540fb2b2d29cdc732de0de685b9aed314e05d4bceb3377e6fbd0dce1dd084e234de46741ea5d1a1a6aceb53ff9d2344f47d5239696384bac1078e12ba59f0d7a66536c9e4bd73bb82d8c5c37ac1a7a9ea854a4ead53a48535feb3a5d14ad9b5dd0a7a4ae250", "first_hop": { "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "109x1x1", + "channel": "109x1x0", "direction": 1, "amount_msat": 1002, "delay": 21, "style": "tlv" }, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13" + "payment_hash": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20" } }, "response": { "message": "Monitor status with listpays or waitsendpay", "created_index": 8, "id": 8, - "payment_hash": "e445ebcf339db3cba6184330ccc6e4a41e0bb38d237b93c1d2f71958d5a74e13", + "payment_hash": "eb1d0954b2adb16d5b9262027b5cc8d880fc09def493e7f93e38f263d4f9cb20", "groupid": 1, "amount_sent_msat": 1002, - "created_at": 1722303689, + "created_at": 1723161049, "status": "pending" } } diff --git a/doc/schemas/lightning-sendpay.json b/doc/schemas/lightning-sendpay.json index 5ae13007e99c..5f60b4cce380 100644 --- a/doc/schemas/lightning-sendpay.json +++ b/doc/schemas/lightning-sendpay.json @@ -359,7 +359,7 @@ "route": [ { "id": "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "channel": "109x1x1", + "channel": "109x1x0", "direction": 1, "amount_msat": 10001, "delay": 15, @@ -367,27 +367,27 @@ }, { "id": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - "channel": "111x1x0", + "channel": "111x1x1", "direction": 0, "amount_msat": 10000, "delay": 9, "style": "tlv" } ], - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", - "payment_secret": "64733783b118ff27576f72c473c0c52814f1f47c4de41492194ddd7855486024" + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", + "payment_secret": "paymentsecretinvl00310003100031000310003100031000310003100031000" } }, "response": { "message": "Monitor status with listpays or waitsendpay", "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", "groupid": 1, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, + "created_at": 1723161034, "status": "pending" } } diff --git a/doc/schemas/lightning-sendpsbt.json b/doc/schemas/lightning-sendpsbt.json index e5fea02ba611..c96b3e21bc15 100644 --- a/doc/schemas/lightning-sendpsbt.json +++ b/doc/schemas/lightning-sendpsbt.json @@ -70,12 +70,12 @@ "id": "example:sendpsbt#1", "method": "sendpsbt", "params": { - "psbt": "cHNidP8BAHsCAAAAApYPhUDCjBy/IhQro1NgHyHktDtz752euhXVr901aH1zAAAAAAD9////pVexPrCyRyESCD3U1cC5oifK1QBxTxBSKMaWE8H/R3UAAAAAAP3///8Buuz6CwAAAAAWABTJCW1D9AjqUmAgJizNrXyFFrkqgQAAAAAAAQCJAgAAAAGdA6aKwu4U7Zes8OwDJHp4bI3maidtrjOK6N85klZucAAAAAAA/f///wKBbNwLAAAAACJRIDXxGE9rRwyd80faYsSyjn7J7hCyILrDrM0iIJ3vADbqQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzWwAAAABASuBbNwLAAAAACJRIDXxGE9rRwyd80faYsSyjn7J7hCyILrDrM0iIJ3vADbqARNAslo/GrzGxD6jx0S7hhxvKR8Eus+sP130lZLzFdEP0jIHUZnjDgbwVW/xgkL6M6xdWTIft2LwO6Jg/VxrnLUVniEWn8HNAfLSdwuCgeK6vBpMJF7dN7ty0S4gcjpp309fAfYJAMEg7UIAAAAAAAEAcQIAAAAB5PVQktBZBw4nvG06jM4bpxNyROmXxJnOR8qYKNgjGfwAAAAAAP3///8CgIQeAAAAAAAWABSftnv87+5st9tMflXZxr/XSeMdHoxyG+0AAAAAFgAUQudNVnkeDGRH67h8YS0ySo/R6flrAAAAAQEfgIQeAAAAAAAWABSftnv87+5st9tMflXZxr/XSeMdHiICAyjMj8l44gnxaV+ltWVQYdsaqyMRtSQXaUW/EBXvLUuJRzBEAiA9G0zR8z6JjbBAeg4wDezU0rLQB462lpdGQJwqrUxQFwIgL70Z0p7ASr4w+lDjPk0+m6WY5PafSiEiEO4tFuoHsHMBIgYDKMyPyXjiCfFpX6W1ZVBh2xqrIxG1JBdpRb8QFe8tS4kIn7Z7/AAAAAAAAA==" + "psbt": "cHNidP8BAFICAAAAAQPgg6c7lRfXxOJdlNV3SZdgElo6vpYVXwgEvKbk5KvhAAAAAAD9////AesRMQEAAAAAFgAUyQltQ/QI6lJgICYsza18hRa5KoEAAAAAAAEAdQIAAAABaK37S+6anhvIAwGnI7Jg4tkY8J4N7MS/g9Z2lh6AeWcBAAAAFxYAFNa5adNt/9rZhpGT9mPuSA39xzSI/f///wE1FDEBAAAAACJRIGwn4ZVqz6YeaCksgJCIgOgTRQ91QTLooqxHGoa/Eya1ZgAAAAEBKzUUMQEAAAAAIlEgbCfhlWrPph5oKSyAkIiA6BNFD3VBMuiirEcahr8TJrUBE0BFkU+7ZxlEsCPWKIGaS8KqXsPO47Jqf8FOWgPfXwSlwZsPV5lLk8wPTa6vnLSX3N+vrAkP+hgG8jayrdHqTR5YIRZaebu7QG1Lwo3wX6aocyjPsCp+E3Q77NzR38/gccLgEAkAfQjZlwAAAAAAAA==" } }, "response": { - "tx": "02000000000102960f8540c28c1cbf22142ba353601f21e4b43b73ef9d9eba15d5afdd35687d730000000000fdffffffa557b13eb0b2472112083dd4d5c0b9a227cad500714f105228c69613c1ff47750000000000fdffffff01baecfa0b00000000160014c9096d43f408ea526020262ccdad7c8516b92a810140b25a3f1abcc6c43ea3c744bb861c6f291f04bacfac3f5df49592f315d10fd232075199e30e06f0556ff18242fa33ac5d59321fb762f03ba260fd5c6b9cb5159e0247304402203d1b4cd1f33e898db0407a0e300decd4d2b2d0078eb6969746409c2aad4c501702202fbd19d29ec04abe30fa50e33e4d3e9ba598e4f69f4a212210ee2d16ea07b07301210328cc8fc978e209f1695fa5b5655061db1aab2311b524176945bf1015ef2d4b8900000000", - "txid": "8861058bff4b5310d587d7a8b6936886a290b0bdaf2485b53c79972a32daa758" + "tx": "0200000000010103e083a73b9517d7c4e25d94d577499760125a3abe96155f0804bca6e4e4abe10000000000fdffffff01eb11310100000000160014c9096d43f408ea526020262ccdad7c8516b92a81014045914fbb671944b023d628819a4bc2aa5ec3cee3b26a7fc14e5a03df5f04a5c19b0f57994b93cc0f4daeaf9cb497dcdfafac090ffa1806f236b2add1ea4d1e5800000000", + "txid": "2ec2fe96ee9013f4b1e899005a95daddf5a0ac3e4a78e0ad069cd5a4e926a93a" } } ] diff --git a/doc/schemas/lightning-setchannel.json b/doc/schemas/lightning-setchannel.json index 8f0f9948901e..c85802f43329 100644 --- a/doc/schemas/lightning-setchannel.json +++ b/doc/schemas/lightning-setchannel.json @@ -199,7 +199,7 @@ "id": "example:setchannel#2", "method": "setchannel", "params": { - "id": "115x1x0", + "id": "115x1x1", "feebase": 4000, "feeppm": 300, "enforcedelay": 0 @@ -209,8 +209,8 @@ "channels": [ { "peer_id": "032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e", - "channel_id": "f8fc83a432cbfb2fffe222cc06727fdd977b5dd10ebd6707158e799e6f522d9f", - "short_channel_id": "115x1x0", + "channel_id": "channelid0250000250000250000250000250000250000250000250000250000", + "short_channel_id": "115x1x1", "fee_base_msat": 4000, "fee_proportional_millionths": 300, "minimum_htlc_out_msat": 0, diff --git a/doc/schemas/lightning-showrunes.json b/doc/schemas/lightning-showrunes.json index e20bdef77085..955b41965aa5 100644 --- a/doc/schemas/lightning-showrunes.json +++ b/doc/schemas/lightning-showrunes.json @@ -177,7 +177,7 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1723161075.3886607, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" @@ -195,14 +195,14 @@ "runes": [ { "rune": "zFMd1fjhrAYxUeFA54TjloZqOt8JrA_i_nYwIgXkag49MA==", - "last_used": 1722303715.068215, + "last_used": 1723161075.3886607, "unique_id": "0", "restrictions": [], "restrictions_as_english": "" }, { "rune": "RXgu0DD_i0wSPEZkIDyZIWL0bSAGdhvJ_GHOQdTg04A9MSZpZF4wMjY2ZTQ1OThkMWQzYzQxNWY1NyZtZXRob2Q9bGlzdHBlZXJz", - "last_used": 1722303714.9302285, + "last_used": 1723161075.245327, "unique_id": "1", "restrictions": [ { @@ -232,7 +232,7 @@ }, { "rune": "QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==", - "last_used": 1722303715.1267006, + "last_used": 1723161075.4043567, "unique_id": "2", "restrictions": [ { diff --git a/doc/schemas/lightning-signinvoice.json b/doc/schemas/lightning-signinvoice.json index 437a20715aa6..a27fe5cad380 100644 --- a/doc/schemas/lightning-signinvoice.json +++ b/doc/schemas/lightning-signinvoice.json @@ -60,11 +60,11 @@ "id": "example:signinvoice#1", "method": "signinvoice", "params": { - "invstring": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqg2kj0ma6weclle29pwpsdvnwa4r4yhw38wvly80mtysjf463r5y428k23dkp8ty0fugtzyjpcjsy0w7hhfmyzkwrlve93cr8jnm5sdgqzv7m0x" + "invstring": "lnbcrt100n1pnt2000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000" } }, "response": { - "bolt11": "lnbcrt10n1pn2s38psp5qnpucxgdnkrqur47x6vtxdk7xpzy3lf47kjqehm6wnuadj9rt86qpp5qg2ltzlhu2yn08f99t9zz6fjzhfmajg8h4eum43zg3gr0gdeamcsdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqq757xfxhd6hpctdfsq6vr2pltjvdv06t0z200hk0qslcydpf0pthmnzhu404w4qv89d25zv3smtsnyvqsaw6tf6tcl0lles6n29qh9gpyd3ml0" + "bolt11": "lnbcrt10n1pnt2k0jsp55s7u8xpl9adqyg26nnm5ll8vhkzgtrfkzssmdss5nej3d5hfuv8qpp589ckkd8k5p5lmj4a26zvpncyd825y6f64vepp2uu6mwe56vs0t9qdqlv3jhxcmjd9c8g6t0dcsxjmnktakrzvsxqyjw5qcqp9rzjqgkjyd3q5dv6gllh77kygly9c3kfy0d9xwyjyxsq2nq3c83u5vw4jqqqd5qqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgql74xu6p2u32f83k3jhflzwgsgywd2e8v6mtlgfpg9c7c46w8g5sq49umgnxgf622xxkxcsf4x8k6w2d7hjjh4dpcle7dckrzzdxkleqqr9npnr" } }, { @@ -72,11 +72,11 @@ "id": "example:signinvoice#2", "method": "signinvoice", "params": [ - "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqyljtru0gcvqh7k5l9u8ulcuxw8fwa9qycyd32hl7wwdpjtlefgrpyjch6aprcdah2pthx3pku3y7c6dzluzjjy9c32cs3m5hqq6ww3sp0j4tr8" + "lnbcrt100n1pnt2000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000" ] }, "response": { - "bolt11": "lnbcrt1250n1pn2s38psp5u22hlvy5mk7keq57m4fatz7aqnmh4whcuk45npdexrw4m5athcvqpp5ps4h5lt8waz5pprvad3skzssnksl2wxng985rcsuedp8teh29rkqdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq303kchnu5dvmrjam0m2yapk4d8vyx2uud3z0cpwsxern0d6f5sxqcg4rf05qczp5ncrpq4e6fsth28fxegv5gx9y7kt9f6tfhgw9dfqqckwpfv" + "bolt11": "lnbcrt1250n1pnt2k0jsp56erg0j2x59ey54r0kknrtgrzljkhasmged6e5rtd8sj2xe5la9jqpp5vmsqerv7rrrt2t85nwfv4ez2aghld6e2s0d9yfdlfw5qugxnhmysdqlv3jhxcmjd9c8g6t0dcsxjmnktakrydscqp99qxpqysgq7zhgzwaqr585egcau7yt046v0hc0nq9382uml5k9uxkd7t7fs6ez2qsn6s990tv5h4kn4j536xmcnxcxn0h539403ndxug7p82epeeqqdxe4xy" } } ] diff --git a/doc/schemas/lightning-signpsbt.json b/doc/schemas/lightning-signpsbt.json index 3caf71967c35..49bd505a9451 100644 --- a/doc/schemas/lightning-signpsbt.json +++ b/doc/schemas/lightning-signpsbt.json @@ -68,11 +68,11 @@ "id": "example:signpsbt#1", "method": "signpsbt", "params": { - "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIQCsNB0i02NIAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3DPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIS+Cd5vfOqCAAAQMIQEIPAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQiSDWYjY1EU4AABAwhBWdwLAAAAAAEEIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUrcM/AlsaWdodG5pbmcBCNtUKyg2lsN+AA==" } }, "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHlCL2oKhnYn6hhaUG8+V+8D6GHFlI61OM507VB6aBwoAiACA2d5TnCdlJ1j2rF/EIHkxl3W0hBp3QqweO7hEul9aQEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEArDQdItNjSAAEDCEFZ3AsAAAAAAQQiUSA74Tflo81LdhBFqIwHKNMkNRg28E7Vnf2jebjYRkZStyEHE0cioCqqq2UZ2npxQi9Q6DXNZheODM6F4GjHHS3XScEJAG/ctUwEAAAADPwJbGlnaHRuaW5nAQgwkgFDAVpmeAABAwhAQg8AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCI9GsPn+O/M0AA==" + "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIHDLi6bViSACbDYdEbaHPNPCyjz9NnzovZfaEpwj2dsZAiBFefBfAGR1cP/K6CJ3U6V6iHlbWa5z0+sa+vklH0hE7gEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOIPeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCEvgneb3zqggAAEDCEBCDwAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEIkg1mI2NRFOAAAQMIQVncCwAAAAABBCJRIDvhN+WjzUt2EEWojAco0yQ1GDbwTtWd/aN5uNhGRlK3IQcTRyKgKqqrZRnaenFCL1DoNc1mF44MzoXgaMcdLddJwQkAb9y1TAQAAAAM/AlsaWdodG5pbmcBCNtUKyg2lsN+AA==" } }, { @@ -80,11 +80,11 @@ "id": "example:signpsbt#2", "method": "signpsbt", "params": [ - "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4gswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIwRR1uu1r8GoAAQMIgIQeAAAAAAABBCIAIMm8XAY8rvv3pseBRAe1YntPgai1bsvpMsaC+cusDRnfDPwJbGlnaHRuaW5nAQjdRD+FoUsRIAABAwhiDc0LAAAAAAEEIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2gM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcAQ4g94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIODCvUuY9uDgAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oDPwJbGlnaHRuaW5nAQhYEiVlT8USaAABAwiAhB4AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCH45fF4xyaJqAA==" ] }, "response": { - "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAAAAAAA/f///wJ6H/TSAAAAABYAFJq4HdQFbYJVeXL2XWxTpoyZUCr4AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIA8+zCzZ59t2OEFHWefZeTypY89RRQ8dMQCjtGWw6gskAiArELH1MvjW6j1G1CKnLZdV+/oabLDU48ingGSPFDOYxwEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOILMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCMEUdbrta/BqAAEDCICEHgAAAAAAAQQiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z3wz8CWxpZ2h0bmluZwEI3UQ/haFLESAAAQMIYg3NCwAAAAABBCJRIMkYPt6RIfPG/RSYgixHp2AnMidmnJCVCIQ7rFu9gT9oIQeffk+gJsmVIxDZ8UKPKgJB9CLvaUr9xqOEogpzJx1hbAkAEioNzwUAAAAM/AlsaWdodG5pbmcBCPN/JmOnjFW4AA==" + "signed_psbt": "cHNidP8BAgQCAAAAAQMEmAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAEAAAAA/f///wLUH/TSAAAAABYAFExYRYMkklHeMO56QUl5It2O4sA7AMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnJcAAAABAR8AwusLAAAAABYAFAPP7IcV4fQEo27AEeQjj4Yyn5CcIgICRz15z0oQ57qDTAJqrEPqGLCn+3Xs2lGEv6+oxGYV9rdHMEQCIFGlKiwHZ+pcNOkncPr3qLANQJqI/pD4ljgCbPFAIPilAiAQH3FjaM/9j/ZLtpvfw+IJ7Yr9mGcXHc7/lrS4ZRE6BgEiBgJHPXnPShDnuoNMAmqsQ+oYsKf7dezaUYS/r6jEZhX2twgDz+yHAAAAAAEOIPeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQ8EAQAAAAEQBP3///8M/AlsaWdodG5pbmcBCDgwr1LmPbg4AAEDCGINzQsAAAAAAQQiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aCEHn35PoCbJlSMQ2fFCjyoCQfQi72lK/cajhKIKcycdYWwJABIqDc8FAAAADPwJbGlnaHRuaW5nAQhYEiVlT8USaAABAwiAhB4AAAAAAAEEIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd8M/AlsaWdodG5pbmcBCH45fF4xyaJqAA==" } } ] diff --git a/doc/schemas/lightning-splice_init.json b/doc/schemas/lightning-splice_init.json index a26ab85423f9..94ff2f41b0ae 100644 --- a/doc/schemas/lightning-splice_init.json +++ b/doc/schemas/lightning-splice_init.json @@ -112,13 +112,13 @@ "id": "example:splice_init#1", "method": "splice_init", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", "relative_amount": 100000, - "initialpsbt": "cHNidP8BAF4CAAAAAfYhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAQAAAAD9////Ac652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGCSAAAAAAEAiQIAAAAB+fmfTbLExUIRcwBZD0qxCoNAHIDe7sEfYHguS6nfkn4AAAAAAP3///8CQEIPAAAAAAAiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJloFs3AsAAAAAIlEgW7Q7f9oXFdDdAUFoJaGFIqLX7LFkdbiHgOj6/Bxz74mNAAAAAQErgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviQAA" + "initialpsbt": "cHNidP8BAF4CAAAAAYwYe1sKkP2ZU2k6B6cqe/+ZcrVc3qfXF10XPm6LP06fAQAAAAD9////Ac652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGCSAAAAAAEAiQIAAAABbAnWcbC14GU0Jkl7iDGPjRJSXFC23Cqi6ziDBquWqOEAAAAAAP3///8CQEIPAAAAAAAiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJloFs3AsAAAAAIlEgW7Q7f9oXFdDdAUFoJaGFIqLX7LFkdbiHgOj6/Bxz74mNAAAAAQErgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviQAA" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiD2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQijTD4R+uEvhAABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4gjBh7WwqQ/ZlTaToHpyp7/5lytVzep9cXXRc+bos/Tp8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIZxxcIrc3ofAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiCMGHtbCpD9mVNpOgenKnv/mXK1XN6n1xddFz5uiz9OnwEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQjNKsdDM3Q2yAABAwgAAAAAAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCFSq4ozBq5iKAAEDCM652gsAAAAAAQQiUSCPjtRGJ1V9vMxCrgGKnFR0qZEoV5LEyokcH1nFZl00YAz8CWxpZ2h0bmluZwEIsomhZf8aJUAA" } }, { @@ -126,13 +126,13 @@ "id": "example:splice_init#2", "method": "splice_init", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", + "channelid0780000780000780000780000780000780000780000780000780000", -105000, "cHNidP8BAgQCAAAAAQMElAAAAAEEAQABBQEBAQYBAwH7BAIAAAAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaAA==" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIJW7FYF67zRaxARLQco1KmOXtFQY8yFwpGexdGngFEX4AQ8EAQAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCF4tdoSn7LwCAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIGQ1Quuj5CvAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaDPwJbGlnaHRuaW5nAQi4FyJ2dePgEAA=" + "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAKMGHtbCpD9mVNpOgenKnv/mXK1XN6n1xddFz5uiz9OnwEAAAAA/f///4wYe1sKkP2ZU2k6B6cqe/+ZcrVc3qfXF10XPm6LP06fAAAAAAAAAAAAAuDIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZbOudoLAAAAACJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIDbZJV5Xx4686c/jZ6/CgHWnKmJcc0x0G2FBQFdxKNpCAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCzxa4u7f0muAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIHgYY1aXZ+w4AAQMIAAAAAAAAAAABBCIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWDPwJbGlnaHRuaW5nAQhnOidFSX9DoAA=" } } ] diff --git a/doc/schemas/lightning-splice_signed.json b/doc/schemas/lightning-splice_signed.json index 1c800142043a..e60ab92a1ccf 100644 --- a/doc/schemas/lightning-splice_signed.json +++ b/doc/schemas/lightning-splice_signed.json @@ -129,14 +129,14 @@ "id": "example:splice_signed#1", "method": "splice_signed", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wETQKcuGy6h+BqXM6UBaTWpiX1wgQdVDWQdu3poUITFMK4JR7Jjaqy0IsnjfOXmaFZAUIS01Heqa7RbgzHF+5qDI/AhFvTEPeeTGXjlJSGiyNDqLm+lpUC+f31Q3j7YhyeyShxZCQD2T+TUAAAAAAz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIo0w+EfrhL4QAAQMIzrnaCwAAAAABBCJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgIQf4l/XsahrhZhlxJbtZN6e213tQQFKbPCTiBwSf3CvcvAkA9Hbq9AUAAAAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCODIEAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4gjBh7WwqQ/ZlTaToHpyp7/5lytVzep9cXXRc+bos/Tp8BDwQBAAAAARAE/f///wETQHLiAnSsUVaIXQ9QSa/UY8QH6mcnSQJ3CDaGBueFUvCLjPY2WbAXJR8253MRjBWs4dog3C5f2mEPkmdqW/Yo9K0hFvTEPeeTGXjlJSGiyNDqLm+lpUC+f31Q3j7YhyeyShxZCQD2T+TUAAAAAAz8CWxpZ2h0bmluZwEIZxxcIrc3ofAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4gjBh7WwqQ/ZlTaToHpyp7/5lytVzep9cXXRc+bos/Tp8BDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIzSrHQzN0NsgAAQMI4MgQAAAAAAABBCIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWDPwJbGlnaHRuaW5nAQhUquKMwauYigABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAhB/iX9exqGuFmGXElu1k3p7bXe1BAUps8JOIHBJ/cK9y8CQD0dur0BQAAAAz8CWxpZ2h0bmluZwEIsomhZf8aJUAA" } }, "response": { - "tx": "02000000000102f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c0100000000fdfffffff62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c00000000000000000002ceb9da0b000000002251208f8ed44627557dbccc42ae018a9c5474a991285792c4ca891c1f59c5665d3460e0c810000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec089960140a72e1b2ea1f81a9733a5016935a9897d708107550d641dbb7a685084c530ae0947b2636aacb422c9e37ce5e66856405084b4d477aa6bb45b8331c5fb9a8323f00400473044022024af89f1987cfee986aacf511ed101aa083a8300d4ae4d6b87cd68fef4f722c60220263fd2a4750c7fbb08c433cc0d14e500c714820175454d18b5bef74e01cdc2f9014730440220306e4f6a09653e44f9306c6c47afb58d756d7ba2803f61184db3730ab208a8a302207c40845740e1e791d05957c75eb1b3e62db18fb5ec75039768972dc5efb881710147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae92000000", - "txid": "f84514e06974b167a47021f31854b497632a35ca414b04c45a34ef7a8115bb95", - "outnum": 1 + "tx": "02000000000102channelid07800007800007800007800007800007800007800007800007800000100000000fdffffffchannelid078000078000078000078000078000078000078000078000078000000000000000000000002e0c810000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec08996ceb9da0b000000002251208f8ed44627557dbccc42ae018a9c5474a991285792c4ca891c1f59c5665d3460014072e20274ac5156885d0f5049afd463c407ea672749027708368606e78552f08b8cf63659b017251f36e773118c15ace1da20dc2e5fda610f92676a5bf628f4ad040047304402207fc14f68bbb3ae939e7b97a74b2833fa0e4867dc9ebe6782e30534a8ab54414e02201157f93385c69019f451d7a0aafea5bfbf9d84d826a9250ac737fe39fff5ff04014730440220530ee9b04ea163834be655fcb1b0a0e6b96f4c00649f6f97389f4c0383921806022019cafa3190ed00a0d5a9a892d9ec0ec305fbf8e26ca4201901a43906fef316dd0147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae92000000", + "txid": "42da2871574041611b744c735c622aa77580c2af67e3cfe9bc8ec7575e25d936", + "outnum": 0 } }, { @@ -144,14 +144,14 @@ "id": "example:splice_signed#2", "method": "splice_signed", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA" + "channelid0780000780000780000780000780000780000780000780000780000", + "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAKMGHtbCpD9mVNpOgenKnv/mXK1XN6n1xddFz5uiz9OnwEAAAAA/f///4wYe1sKkP2ZU2k6B6cqe/+ZcrVc3qfXF10XPm6LP06fAAAAAAAAAAAAAuDIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZbOudoLAAAAACJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiA22SVeV8eOvOnP42evwoB1pypiXHNMdBthQUBXcSjaQgEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQgs8WuLu39JrgABAwighgEAAAAAAAEEIlEgxNKCQV+agdGOCLYZoZ0Ra4ZWyxv0k+X1QLv3t6BYTNoM/AlsaWdodG5pbmcBCB4GGNWl2fsOAAEDCLguDwAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIZzonRUl/Q6AA" ] }, "response": { - "tx": "0200000000010195bb15817aef345ac4044b41ca352a6397b45418f32170a467b17469e01445f801000000000000000002b82e0f000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec08996a086010000000000225120c4d282415f9a81d18e08b619a19d116b8656cb1bf493e5f540bbf7b7a0584cda04004730440220259ff7ffc38775f34aed9be01a57b3002b2cba938e8bdf37ee0d529401ca0ae102206f77ba80e128ed5096679a304078efbff423394f2ffeb286e307fc71af06773d0147304402206e715aa27e9f192a787949dd322dd8c41d69dbf0b134099b942f40f3727ecaa80220154ab1a180d2103884ac73307f6f5faa0e384d7d40dcda44a26c17fdd83a89910147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae94000000", - "txid": "b81ed02d0235b63cb73d1ee840345a696bc7224ba28be590165aa340bc9e37de", - "outnum": 0 + "tx": "0200000000010136d9255e57c78ebce9cfe367afc28075a72a625c734c741b614140577128da4200000000000000000002a086010000000000225120c4d282415f9a81d18e08b619a19d116b8656cb1bf493e5f540bbf7b7a0584cdab82e0f000000000022002093dedd0c265bca868576d3ee2e59eebbb20ebc296e58f7edca93d5eeaec0899604004730440220680612c9c4f625da7842a05b1c9545fa8e047325bfb75c2e6dd867ea482243e80220788f3433b57039cc4d11138280bd9b7a44e81987be2493b496d5faffbca39a1301473044022054b741ed3bbfc35b8d819077b16c39a85ebcacf42504907c2d3e42cf6346990c02207b6f5b4057e7cc97e726c42232a58cb38eedf48a9d3e2a2d1831c4fa9e0738860147522102570ec0b6eb545663302183a62eac75d08fdeeb64f31352192065d601c8ca521d210266867c342b8250ab6b4edac6dbae2fde53782b69cd17139949fbd4f208487ff252ae94000000", + "txid": "cf4b8e9bae80be1cf3808c2dbc250c36c0b33ee09e310699a1227c1ba9af9451", + "outnum": 1 } } ] diff --git a/doc/schemas/lightning-splice_update.json b/doc/schemas/lightning-splice_update.json index 05e104e01905..01d828c955b7 100644 --- a/doc/schemas/lightning-splice_update.json +++ b/doc/schemas/lightning-splice_update.json @@ -128,12 +128,12 @@ "id": "example:splice_update#1", "method": "splice_update", "params": { - "channel_id": "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiD2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQijTD4R+uEvhAABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCI/PBFM/C09aAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIreWkThWNrsoA" + "channel_id": "channelid0780000780000780000780000780000780000780000780000780000", + "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4gjBh7WwqQ/ZlTaToHpyp7/5lytVzep9cXXRc+bos/Tp8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIZxxcIrc3ofAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQVHUiECVw7AtutUVmMwIYOmLqx10I/e62TzE1IZIGXWAcjKUh0hAmaGfDQrglCra07axtuuL95TeCtpzRcTmUn71PIISH/yUq4BDiCMGHtbCpD9mVNpOgenKnv/mXK1XN6n1xddFz5uiz9OnwEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQjNKsdDM3Q2yAABAwgAAAAAAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCFSq4ozBq5iKAAEDCM652gsAAAAAAQQiUSCPjtRGJ1V9vMxCrgGKnFR0qZEoV5LEyokcH1nFZl00YAz8CWxpZ2h0bmluZwEIsomhZf8aJUAA" } }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEImfI55kWjFBwAAQCJAgAAAAH5+Z9NssTFQhFzAFkPSrEKg0AcgN7uwR9geC5Lqd+SfgAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4g9iEmrLThqBE+s85A7YDjSknUmwNcudNkF7HBMzInESwBDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIo0w+EfrhL4QAAQMIzrnaCwAAAAABBCJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgDPwJbGlnaHRuaW5nAQiPzwRTPwtPWgABAwjgyBAAAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCK3lpE4Vja7KAA==", + "psbt": "cHNidP8BAgQCAAAAAQMEkgAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABASuBbNwLAAAAACJRIFu0O3/aFxXQ3QFBaCWhhSKi1+yxZHW4h4Do+vwcc++JAQ4gjBh7WwqQ/ZlTaToHpyp7/5lytVzep9cXXRc+bos/Tp8BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEIZxxcIrc3ofAAAQCJAgAAAAFsCdZxsLXgZTQmSXuIMY+NElJcULbcKqLrOIMGq5ao4QAAAAAA/f///wJAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWgWzcCwAAAAAiUSBbtDt/2hcV0N0BQWgloYUiotfssWR1uIeA6Pr8HHPviY0AAAABAStAQg8AAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWAQ4gjBh7WwqQ/ZlTaToHpyp7/5lytVzep9cXXRc+bos/Tp8BDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIzSrHQzN0NsgAAQMI4MgQAAAAAAABBCIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWDPwJbGlnaHRuaW5nAQhUquKMwauYigABAwjOudoLAAAAAAEEIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGAM/AlsaWdodG5pbmcBCLKJoWX/GiVAAA==", "commitments_secured": true } }, @@ -142,12 +142,12 @@ "id": "example:splice_update#2", "method": "splice_update", "params": [ - "f62126acb4e1a8113eb3ce40ed80e34a49d49b035cb9d36417b1c1333227112c", - "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIJW7FYF67zRaxARLQco1KmOXtFQY8yFwpGexdGngFEX4AQ8EAQAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCF4tdoSn7LwCAAEDCAAAAAAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIGQ1Quuj5CvAAAQMIoIYBAAAAAAABBCJRIMTSgkFfmoHRjgi2GaGdEWuGVssb9JPl9UC797egWEzaDPwJbGlnaHRuaW5nAQi4FyJ2dePgEAA=" + "channelid0780000780000780000780000780000780000780000780000780000", + "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAKMGHtbCpD9mVNpOgenKnv/mXK1XN6n1xddFz5uiz9OnwEAAAAA/f///4wYe1sKkP2ZU2k6B6cqe/+ZcrVc3qfXF10XPm6LP06fAAAAAAAAAAAAAuDIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZbOudoLAAAAACJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBBUdSIQJXDsC261RWYzAhg6YurHXQj97rZPMTUhkgZdYByMpSHSECZoZ8NCuCUKtrTtrG264v3lN4K2nNFxOZSfvU8ghIf/JSrgEOIDbZJV5Xx4686c/jZ6/CgHWnKmJcc0x0G2FBQFdxKNpCAQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCCzxa4u7f0muAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIHgYY1aXZ+w4AAQMIAAAAAAAAAAABBCIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWDPwJbGlnaHRuaW5nAQhnOidFSX9DoAA=" ] }, "response": { - "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAL2ISastOGoET6zzkDtgONKSdSbA1y502QXscEzMicRLAEAAAAA/f////YhJqy04agRPrPOQO2A40pJ1JsDXLnTZBexwTMyJxEsAAAAAAAAAAAAAs652gsAAAAAIlEgj47URidVfbzMQq4BipxUdKmRKFeSxMqJHB9ZxWZdNGDgyBAAAAAAACIAIJPe3QwmW8qGhXbT7i5Z7ruyDrwpblj37cqT1e6uwImWkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiCVuxWBeu80WsQES0HKNSpjl7RUGPMhcKRnsXRp4BRF+AEPBAEAAAABEAQAAAAADPwJbGlnaHRuaW5nAQheLXaEp+y8AgABAwi4Lg8AAAAAAAEEIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYM/AlsaWdodG5pbmcBCBkNULro+QrwAAEDCKCGAQAAAAAAAQQiUSDE0oJBX5qB0Y4IthmhnRFrhlbLG/ST5fVAu/e3oFhM2gz8CWxpZ2h0bmluZwEIuBcidnXj4BAA", + "psbt": "cHNidP8BAgQCAAAAAQMElAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCyAgAAAAKMGHtbCpD9mVNpOgenKnv/mXK1XN6n1xddFz5uiz9OnwEAAAAA/f///4wYe1sKkP2ZU2k6B6cqe/+ZcrVc3qfXF10XPm6LP06fAAAAAAAAAAAAAuDIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZbOudoLAAAAACJRII+O1EYnVX28zEKuAYqcVHSpkShXksTKiRwfWcVmXTRgkgAAAAEBK+DIEAAAAAAAIgAgk97dDCZbyoaFdtPuLlnuu7IOvCluWPftypPV7q7AiZYBDiA22SVeV8eOvOnP42evwoB1pypiXHNMdBthQUBXcSjaQgEPBAAAAAABEAQAAAAADPwJbGlnaHRuaW5nAQgs8WuLu39JrgABAwighgEAAAAAAAEEIlEgxNKCQV+agdGOCLYZoZ0Ra4ZWyxv0k+X1QLv3t6BYTNoM/AlsaWdodG5pbmcBCB4GGNWl2fsOAAEDCLguDwAAAAAAAQQiACCT3t0MJlvKhoV20+4uWe67sg68KW5Y9+3Kk9XursCJlgz8CWxpZ2h0bmluZwEIZzonRUl/Q6AA", "commitments_secured": true } } diff --git a/doc/schemas/lightning-sql-template.json b/doc/schemas/lightning-sql-template.json index 517b2f7ee52d..3ed8597bf094 100644 --- a/doc/schemas/lightning-sql-template.json +++ b/doc/schemas/lightning-sql-template.json @@ -163,19 +163,19 @@ "rows": [ [ "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - 1722303662 + 1723161021 ], [ "0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518", - 1722303662 + 1723161021 ], [ "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", - 1722303669 + 1723161027 ], [ "0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199", - 1722303669 + 1723161027 ] ] } @@ -242,7 +242,7 @@ "rows": [ [ "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59", - "109x1x1", + "109x1x0", 490503792, 1000000000, "CHANNELD_NORMAL:Channel ready for use." diff --git a/doc/schemas/lightning-staticbackup.json b/doc/schemas/lightning-staticbackup.json index c929a0099a4e..1125b041925b 100644 --- a/doc/schemas/lightning-staticbackup.json +++ b/doc/schemas/lightning-staticbackup.json @@ -45,12 +45,12 @@ }, "response": { "scb": [ - "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f0000019b987577c455da982b1753df79c56f9d8d2b75d1401e60a5af322ab27b13b20d75970000000100000000000f42400003401000", - "000000000000000121bd30cac60f477f2c4267220b1702a6ec5780db34f9934fa94b8c0508bf3357035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610e23fcc9e6306ce636b203217b22409bf9bab2211f9f432de781dedb6377dab5a0000000100000000000f42400003401000", - "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f000001e610ee1db407eb3e47be3e93e1abc05b13806ee7aef8550c517a4974c72bf91866410000000100000000000f42400003401000", - "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000019bc5b15661ec5c17599de0858401b72d6be66c34b48a3bb6e679542809f395e6bb2000000000000000000bebb3cb0003401000", - "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ac184e7462759ff83049b19582db049d40076f83a7a70181374ca0ea91644a3d9c0000000200000000000075300003401000", - "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001c1ace9067c9d125df7150261c80eec3ab9cf8731679752b84f090ab3ea6e36c93d3100000001000000000000c3500003401000" + "0000000000000001channelid0340000340000340000340000340000340000340000340000340000035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f0000019d5a7186aa97726339b4e70584b1e3b120c93fc132f11637eb25beff7f1427926a1a0000000100000000000f42400003401000", + "00000000000000027512083907c74ed3a045e9bf772b3d72948eb93daf84a1cee57108800451aaf2035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d00017f0000019d5afdde97160a79cf3976c75e87ec8d2be01940df5d9a82effe64aa775649c3b0ed0000000000000000000f42400003401000", + "0000000000000003222d999f537e32e9458c5db17a63e012dcced61340de06fda5bc30566270b0aa0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f0000018a572a6796cb2be07197841b8bee4184f72c16307c7fd0beaab2acdc6e379591708a00000000000000000bebb3cb0003401000", + "0000000000000004a4a379248e49d207cc984646e632e1a31105a85708b9d6d961a5018fdd489f5a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001945cbb2e4e6b3faacac2c6fe3f54d414c91f192530792bd36183df732b7cf0bfb7910000000300000000000075300003401000", + "000000000000000509eb55872cd9039ecd08281af756e23b15aad4129fd6a9bcd71b472114ebf43a0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351800017f000001945c1be1eb78acbc516350e71119d1aa945db0cdcb38d0c20f5ddc5c1969c00ba65700000001000000000000c3500003401000", + "0000000000000006f4e1de801de57374d5737da622611e3a1ad9f16d5df9c30fceecc11ce732eeeb022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5900017f000001dc8e36eb8415e6999c7d4779037423719ecc70d2dfa97d2fbcb6599b822aca0baeb10000000100000000000f42400003401000" ] } } diff --git a/doc/schemas/lightning-txdiscard.json b/doc/schemas/lightning-txdiscard.json index 3def4f741e74..272c7c325892 100644 --- a/doc/schemas/lightning-txdiscard.json +++ b/doc/schemas/lightning-txdiscard.json @@ -64,12 +64,12 @@ "id": "example:txdiscard#1", "method": "txdiscard", "params": [ - "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "c265579d48847ef6f5f4eee760f9ed3176b18f25b60e1f4c95f7aaeb1a780236" ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67" + "unsigned_tx": "020000000105981ab51798e6004fc89c25db1429579e4110ad1d2210d5ab055809fdcf07c80000000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", + "txid": "c265579d48847ef6f5f4eee760f9ed3176b18f25b60e1f4c95f7aaeb1a780236" } }, { @@ -77,12 +77,12 @@ "id": "example:txdiscard#2", "method": "txdiscard", "params": { - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "txid": "3bb157a62d41960aae3593d61c9072e2f2ad5c8ede8eb5d3a81bb459814fe9ca" } }, "response": { - "unsigned_tx": "02000000010cbdd42439292d7a59620493020f2a204488bfa4d640eedb84af5d3bd6479aea0000000000fdffffff0240420f00000000002200200fefd5034808bec0c94b857b7a3ddeeece7cae1b2101b2f23f1c114b14073f31b7a1f000000000002251205c54c6ff7b25c08e66a91d4256a5ca2c374ab1faf56377e8d65466cf997614ce97000000", - "txid": "91a189eb69a436e49735ae1e8619fd96a342a4e5c63fa2baa7e9f69ecdc7434c" + "unsigned_tx": "02000000013b11a704ed4a918b5c19b9da133ea36022b402dc420eba29bd53f736342064160100000000fdffffff0240420f00000000002200200fefd5034808bec0c94b857b7a3ddeeece7cae1b2101b2f23f1c114b14073f31c22d8900000000002251205c54c6ff7b25c08e66a91d4256a5ca2c374ab1faf56377e8d65466cf997614ce97000000", + "txid": "3bb157a62d41960aae3593d61c9072e2f2ad5c8ede8eb5d3a81bb459814fe9ca" } } ] diff --git a/doc/schemas/lightning-txprepare.json b/doc/schemas/lightning-txprepare.json index 09233e343148..ae9d734b84a1 100644 --- a/doc/schemas/lightning-txprepare.json +++ b/doc/schemas/lightning-txprepare.json @@ -108,9 +108,9 @@ ] }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", - "txid": "cafef1e6936d05584c8406e9ec5e9631b03513fe8b2a0444c5824e1a1f3d7c67", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgoFY2O+jH27URCYzFD7yiSEPm7W3gP4FkZfGZipqCoJ0AAQMIQYOYAAAAAAABBCJRIPE5NGfHF81Q3idgFn1DERQaj3UMifVP0skAYBp9qENMAA==" + "unsigned_tx": "020000000105981ab51798e6004fc89c25db1429579e4110ad1d2210d5ab055809fdcf07c80000000000fdffffff020000000100000000220020a056363be8c7dbb511098cc50fbca24843e6ed6de03f816465f1998a9a82a09d4183980000000000225120f1393467c717cd50de2760167d4311141a8f750c89f54fd2c900601a7da8434c95000000", + "txid": "c265579d48847ef6f5f4eee760f9ed3176b18f25b60e1f4c95f7aaeb1a780236", + "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAHXKAXksva1AOg3UmAqhLRnDSyI+9+bpWQ5uktoFhgu2gEAAAAA/f///wKAlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVLPDf3gAAAAAWABQ5ADBekTVqTu1XOQI+TPEggmyj75QAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBDwQAAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgoFY2O+jH27URCYzFD7yiSEPm7W3gP4FkZfGZipqCoJ0AAQMIQYOYAAAAAAABBCJRIPE5NGfHF81Q3idgFn1DERQaj3UMifVP0skAYBp9qENMAA==" } }, { @@ -126,9 +126,9 @@ } }, "response": { - "unsigned_tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", - "txid": "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywBDwQBAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" + "unsigned_tx": "020000000105981ab51798e6004fc89c25db1429579e4110ad1d2210d5ab055809fdcf07c80000000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", + "txid": "1664203436f753bd29ba0e42dc02b42260a33e13dab9195c8b914aed04a7113b", + "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAHXKAXksva1AOg3UmAqhLRnDSyI+9+bpWQ5uktoFhgu2gEAAAAA/f///wKAlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVLPDf3gAAAAAWABQ5ADBekTVqTu1XOQI+TPEggmyj75QAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVAQ4gBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBDwQAAAAAARAE/f///wABAwgAAAABAAAAAAEEIgAgrcWu1QvOE7IcR/Pw6wFIFh6/TLwoeKjo5eUoi7suzsEAAQMIQYOYAAAAAAABBCJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AA==" } } ] diff --git a/doc/schemas/lightning-txsend.json b/doc/schemas/lightning-txsend.json index 9aa113f01dc7..07807c14328e 100644 --- a/doc/schemas/lightning-txsend.json +++ b/doc/schemas/lightning-txsend.json @@ -68,13 +68,13 @@ "id": "example:txsend#1", "method": "txsend", "params": [ - "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e" + "1664203436f753bd29ba0e42dc02b42260a33e13dab9195c8b914aed04a7113b" ] }, "response": { - "tx": "0200000001974bc23173b7bca9b060dac12abd1bb158e8ed69a3e74d4f6af5919b15f5772c0100000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", - "txid": "ed6c309a10273aa036d29b71cf70202291d4d4b72be353ac410e1678ecfbf74e", - "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAFpz79e9wou5mbmtaiB+6WfRTf8SpZxmrd6n+rIFcWewQAAAAAA/f///wLS79/eAAAAABYAFE35CMxYA4yQx9XLuFj0/q5uNmligJaYAQAAAAAWABT/hTPq8LE5vAc9KiJjjmygoIN81UsAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVIgICrdS+fDe+nFDye7Mp6i6PaAV6YeEglyQM1Lypkk6qiU5HMEQCID5oPTp8udytiNikLxBRfm+iAL2LeYa9bJBKih0OcN2CAiApOyjSHogrEppHHuTPuUqEeLq/psjaa8cEKHXw6Hz7cQEiBgKt1L58N76cUPJ7synqLo9oBXph4SCXJAzUvKmSTqqJTgj/hTPqAAAAAAEOIJdLwjFzt7ypsGDawSq9G7FY6O1po+dNT2r1kZsV9XcsAQ8EAQAAAAEQBP3///8AAQMIAAAAAQAAAAABBCIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BAAEDCEGDmAAAAAAAAQQiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfSEHPXxCgubxwYgC9mDabmKYMY13V5d4yQepeZJ7VCvUFqIJAEDR+iMDAAAAAA==" + "tx": "020000000105981ab51798e6004fc89c25db1429579e4110ad1d2210d5ab055809fdcf07c80000000000fdffffff020000000100000000220020adc5aed50bce13b21c47f3f0eb0148161ebf4cbc2878a8e8e5e5288bbb2ecec1418398000000000022512081da0d3e3051135a89e2f9d85e2eadf661f959bfb05e671097854672cfd0ac7d95000000", + "txid": "1664203436f753bd29ba0e42dc02b42260a33e13dab9195c8b914aed04a7113b", + "psbt": "cHNidP8BAgQCAAAAAQMElQAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAHXKAXksva1AOg3UmAqhLRnDSyI+9+bpWQ5uktoFhgu2gEAAAAA/f///wKAlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVLPDf3gAAAAAWABQ5ADBekTVqTu1XOQI+TPEggmyj75QAAAABAR+AlpgBAAAAABYAFP+FM+rwsTm8Bz0qImOObKCgg3zVIgICrdS+fDe+nFDye7Mp6i6PaAV6YeEglyQM1Lypkk6qiU5HMEQCID+p02ZeSR9AqeDJEidkQ19SxNEfx8wgDsLL+UDIEwDSAiB+1Q8g8cMkm5CSbay+WR2czhmMQUHHRiuF97C41B1kFAEiBgKt1L58N76cUPJ7synqLo9oBXph4SCXJAzUvKmSTqqJTgj/hTPqAAAAAAEOIAWYGrUXmOYAT8icJdsUKVeeQRCtHSIQ1asFWAn9zwfIAQ8EAAAAAAEQBP3///8AAQMIAAAAAQAAAAABBCIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BAAEDCEGDmAAAAAAAAQQiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfSEHPXxCgubxwYgC9mDabmKYMY13V5d4yQepeZJ7VCvUFqIJAEDR+iMDAAAAAA==" } }, { @@ -82,13 +82,13 @@ "id": "example:txsend#2", "method": "txsend", "params": { - "txid": "e9a218878137adf2d34a8ef69151d6e288cc9b9a23f6a5e8ace1b43f03409358" + "txid": "7d2108651a31a1e9fc99d45d4b0c634565c9d6a062f0fe6db882c3457c0c1ae1" } }, "response": { - "tx": "02000000014ef7fbec78160e41ac53e32bb7d4d491222070cf719bd236a03a27109a306ced0100000000fdffffff0240420f0000000000220020c9ea2c65ca8cdc27bc130fe11f5e52e175475e0e31b645b1dcc3832dc4f7e78dc22d890000000000225120774b1c2a9b4b0a9dce43b46395940da2001115d400fa3667909ec86a5d36518b4e000000", - "txid": "e9a218878137adf2d34a8ef69151d6e288cc9b9a23f6a5e8ace1b43f03409358", - "psbt": "cHNidP8BAgQCAAAAAQMETgAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAGXS8Ixc7e8qbBg2sEqvRuxWOjtaaPnTU9q9ZGbFfV3LAEAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gTvf77HgWDkGsU+Mrt9TUkSIgcM9xm9I2oDonEJowbO0BDwQBAAAAARAE/f///wETQIRl9k9MarVBCdz+jTkHVLk/f0KpyiwelXb3+0KqyEUNKPpgLxiJskis5PEsQfEjatvrDCm8cl1CnutfbKUUTGchFj18QoLm8cGIAvZg2m5imDGNd1eXeMkHqXmSe1Qr1BaiCQBA0fojAAAAAAABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLIQeEMcD3iRgEiqSnJRphfipArfPS8md+1DjVMvR3UrU8wwkA1WaCQwYAAAAA" + "tx": "02000000013b11a704ed4a918b5c19b9da133ea36022b402dc420eba29bd53f736342064160100000000fdffffff0240420f0000000000220020c9ea2c65ca8cdc27bc130fe11f5e52e175475e0e31b645b1dcc3832dc4f7e78dc22d890000000000225120774b1c2a9b4b0a9dce43b46395940da2001115d400fa3667909ec86a5d36518b97000000", + "txid": "7d2108651a31a1e9fc99d45d4b0c634565c9d6a062f0fe6db882c3457c0c1ae1", + "psbt": "cHNidP8BAgQCAAAAAQMElwAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQCJAgAAAAEFmBq1F5jmAE/InCXbFClXnkEQrR0iENWrBVgJ/c8HyAAAAAAA/f///wIAAAABAAAAACIAIK3FrtULzhOyHEfz8OsBSBYev0y8KHio6OXlKIu7Ls7BQYOYAAAAAAAiUSCB2g0+MFETWoni+dheLq32YflZv7BeZxCXhUZyz9CsfZUAAAABAStBg5gAAAAAACJRIIHaDT4wURNaieL52F4urfZh+Vm/sF5nEJeFRnLP0Kx9AQ4gOxGnBO1KkYtcGbnaEz6jYCK0AtxCDropvVP3NjQgZBYBDwQBAAAAARAE/f///wETQM1YrSy5bwTaMQMczEjz6jHOC0M59Buv1kxMXY5vfXLBYPR/adznsVViONih22rWNqbZr2pI8fuNm9U9BP40SjIhFj18QoLm8cGIAvZg2m5imDGNd1eXeMkHqXmSe1Qr1BaiCQBA0fojAAAAAAABAwhAQg8AAAAAAAEEIgAgyeosZcqM3Ce8Ew/hH15S4XVHXg4xtkWx3MODLcT3540AAQMIwi2JAAAAAAABBCJRIHdLHCqbSwqdzkO0Y5WUDaIAERXUAPo2Z5CeyGpdNlGLIQeEMcD3iRgEiqSnJRphfipArfPS8md+1DjVMvR3UrU8wwkA1WaCQwYAAAAA" } } ] diff --git a/doc/schemas/lightning-unreserveinputs.json b/doc/schemas/lightning-unreserveinputs.json index 4aedcce8f43f..57773f755d78 100644 --- a/doc/schemas/lightning-unreserveinputs.json +++ b/doc/schemas/lightning-unreserveinputs.json @@ -126,7 +126,7 @@ "id": "example:unreserveinputs#1", "method": "unreserveinputs", "params": { - "psbt": "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", + "psbt": "cHNidP8BAF4CAAAAASofqGPwUtBsb6fg/oqbsjl1g/yTl6b0Mz8dhW9f3p2mAAAAAAD9////AahhAAAAAAAAIlEg+3d9jpNmK0getyg5W+Mp31CPIRDKcJg/mZs/uaVrQ+GZAAAAAAEAiQIAAAAB94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BAAAAAP3///8CYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aICEHgAAAAAAIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd+YAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA", "reserve": 200 } }, @@ -139,7 +139,7 @@ "id": "example:unreserveinputs#2", "method": "unreserveinputs", "params": [ - "cHNidP8BAF4CAAAAAZiQf/mEs4NcFFfD4K8xauOgSpbz/xeetoXVWAPCI0h6AQAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE+ZAAAAAAEAiQIAAAABswU80whDZOoIHS/lfyxwmHh5USHBwbcjWHaJ9/XU+78BAAAAAP3///8CgIQeAAAAAAAiACDJvFwGPK7796bHgUQHtWJ7T4GotW7L6TLGgvnLrA0Z32INzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" + "cHNidP8BAF4CAAAAASofqGPwUtBsb6fg/oqbsjl1g/yTl6b0Mz8dhW9f3p2mAAAAAAD9////AfZRxQsAAAAAIlEg21kTTo7K2doCG6F2JqgaDjc1kRCrH7AL08oPVVJhuE91AAAAAAEAiQIAAAAB94A3imLn3qfp2hAZRvHKfnBWJtdOJWKdKDKrzf12AO8BAAAAAP3///8CYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aICEHgAAAAAAIgAgybxcBjyu+/emx4FEB7Vie0+BqLVuy+kyxoL5y6wNGd+YAAAAAQErYg3NCwAAAAAiUSDJGD7ekSHzxv0UmIIsR6dgJzInZpyQlQiEO6xbvYE/aAAA" ] }, "response": { diff --git a/doc/schemas/lightning-upgradewallet.json b/doc/schemas/lightning-upgradewallet.json index a7c5e1befffa..a987e7cf860f 100644 --- a/doc/schemas/lightning-upgradewallet.json +++ b/doc/schemas/lightning-upgradewallet.json @@ -99,9 +99,9 @@ } }, "response": { - "tx": "0200000001e3148821838724c371613dfe954620b99b689803f29b17e33b85f655afc812170000000000fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b566000000", - "txid": "52b8957df7b017c4c187641491b80ca209c52b286eba60afac7292a868fdf9d0", - "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQBzAgAAAAEJawGuY9Yx4yHwOdSd9MWwVc46+mVaPVwiwqhZT0H1zQAAAAAA/f///wIALTEBAAAAABepFGVXKPNs/jbQGqUNMjZwRGn4SlVAh3HE1CgBAAAAF6kUfN+wjm5E/BFSxPQjIl0rcUgkip2HZQAAAAEBIAAtMQEAAAAAF6kUZVco82z+NtAapQ0yNnBEafhKVUCHIgICucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhdHMEQCIBsJrbJqp2dLLklUvvheXUy1uu4eIMkebSbbYkQHWItOAiBEuulzciFVMVB7Rkt5eOb53CX5hq7Vq2LbwBHB6ApUTwEBBBYAFNa5adNt/9rZhpGT9mPuSA39xzSIIgYCucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhcI1rlp0wAAAAABDiDjFIghg4ckw3FhPf6VRiC5m2iYA/KbF+M7hfZVr8gSFwEPBAAAAAABEAT9////AAEDCDUUMQEAAAAAAQQiUSBsJ+GVas+mHmgpLICQiIDoE0UPdUEy6KKsRxqGvxMmtSEHWnm7u0BtS8KN8F+mqHMoz7AqfhN0O+zc0d/P4HHC4BAJAH0I2ZcFAAAAAA==", + "tx": "020000000168adfb4bee9a9e1bc80301a723b260e2d918f09e0decc4bf83d676961e8079670100000000fdffffff0135143101000000002251206c27e1956acfa61e68292c80908880e813450f754132e8a2ac471a86bf1326b566000000", + "txid": "73ec84e10ae40f88615ad0b44edf25ca792c39d2b417512c9548061e4ea5eca6", + "psbt": "cHNidP8BAgQCAAAAAQMEZgAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQBzAgAAAAGTcWaXElgFH86nf7Xg1MMgm6nCcHHWJA+MXIJQ0zIN0AAAAAAA/f///wJxxNQoAQAAABepFBui3lmX+VqG2w2+HPTOa15xffyshwAtMQEAAAAAF6kUZVco82z+NtAapQ0yNnBEafhKVUCHZQAAAAEBIAAtMQEAAAAAF6kUZVco82z+NtAapQ0yNnBEafhKVUCHIgICucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhdHMEQCIFxaU46kmCfFwadXm6WkQ4DwjfS8+lNIyV9krSmhfb6UAiAz+37h4ngLyy5skPcCN4UIiB9vYA8NFNIA9ev14Y28LAEBBBYAFNa5adNt/9rZhpGT9mPuSA39xzSIIgYCucDGhE4SpTHJaOVcVQeOwW2b92vpKQ/YfRzKcrSDmhcI1rlp0wAAAAABDiBorftL7pqeG8gDAacjsmDi2Rjwng3sxL+D1naWHoB5ZwEPBAEAAAABEAT9////AAEDCDUUMQEAAAAAAQQiUSBsJ+GVas+mHmgpLICQiIDoE0UPdUEy6KKsRxqGvxMmtSEHWnm7u0BtS8KN8F+mqHMoz7AqfhN0O+zc0d/P4HHC4BAJAH0I2ZcFAAAAAA==", "upgraded_outs": 1 } } diff --git a/doc/schemas/lightning-utxopsbt.json b/doc/schemas/lightning-utxopsbt.json index 2fca19e57fe4..46180edce2b3 100644 --- a/doc/schemas/lightning-utxopsbt.json +++ b/doc/schemas/lightning-utxopsbt.json @@ -211,7 +211,7 @@ "15000perkw", 214, [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "ef0076fdcdab32289d62254ed72656707ecaf1461910dae9a7dee7628a3780f7:1" ], null, true, @@ -221,14 +221,14 @@ ] }, "response": { - "psbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "psbt": "cHNidP8BAF4CAAAAAfeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQAAAAD9////AUFZ3AsAAAAAIlEgO+E35aPNS3YQRaiMByjTJDUYNvBO1Z39o3m42EZGUreYAAAAAAEAcQIAAAABBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBAAAAAP3///8C1B/00gAAAAAWABRMWEWDJJJR3jDuekFJeSLdjuLAOwDC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", "feerate_per_kw": 15000, "estimated_final_weight": 657, "excess_msat": 0, "change_outnum": 0, "reservations": [ { - "txid": "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3", + "txid": "ef0076fdcdab32289d62254ed72656707ecaf1461910dae9a7dee7628a3780f7", "vout": 1, "was_reserved": true, "reserved": true, @@ -246,21 +246,21 @@ "feerate": "18750perkw", "startweight": 214, "utxos": [ - "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3:1" + "ef0076fdcdab32289d62254ed72656707ecaf1461910dae9a7dee7628a3780f7:1" ], "reservedok": true, "excess_as_change": true } }, "response": { - "psbt": "cHNidP8BAF4CAAAAAbMFPNMIQ2TqCB0v5X8scJh4eVEhwcG3I1h2iff11Pu/AQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABl0vCMXO3vKmwYNrBKr0bsVjo7Wmj501PavWRmxX1dywAAAAAAP3///8Ceh/00gAAAAAWABSauB3UBW2CVXly9l1sU6aMmVAq+ADC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", + "psbt": "cHNidP8BAF4CAAAAAfeAN4pi596n6doQGUbxyn5wVibXTiVinSgyq839dgDvAQAAAAD9////AWINzQsAAAAAIlEgyRg+3pEh88b9FJiCLEenYCcyJ2ackJUIhDusW72BP2iYAAAAAAEAcQIAAAABBZgatReY5gBPyJwl2xQpV55BEK0dIhDVqwVYCf3PB8gBAAAAAP3///8C1B/00gAAAAAWABRMWEWDJJJR3jDuekFJeSLdjuLAOwDC6wsAAAAAFgAUA8/shxXh9ASjbsAR5COPhjKfkJyXAAAAAQEfAMLrCwAAAAAWABQDz+yHFeH0BKNuwBHkI4+GMp+QnAAA", "feerate_per_kw": 18750, "estimated_final_weight": 657, "excess_msat": 0, "change_outnum": 0, "reservations": [ { - "txid": "bffbd4f5f789765823b7c1c12151797898702c7fe52f1d08ea644308d33c05b3", + "txid": "ef0076fdcdab32289d62254ed72656707ecaf1461910dae9a7dee7628a3780f7", "vout": 1, "was_reserved": true, "reserved": true, diff --git a/doc/schemas/lightning-wait.json b/doc/schemas/lightning-wait.json index adca69fbb4bf..fd7baed79bf4 100644 --- a/doc/schemas/lightning-wait.json +++ b/doc/schemas/lightning-wait.json @@ -335,16 +335,7 @@ "nextvalue": 15 } }, - "response": { - "subsystem": "sendpays", - "created": 15, - "details": { - "status": "pending", - "partid": 0, - "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" - } - } + "response": null }, { "request": { @@ -356,16 +347,7 @@ 15 ] }, - "response": { - "subsystem": "sendpays", - "updated": 15, - "details": { - "status": "complete", - "partid": 0, - "groupid": 1, - "payment_hash": "4c6f04eaf19dd956b616f1ba8718df40e387c4a56be36cf4e881a009cbf66899" - } - } + "response": null } ] } diff --git a/doc/schemas/lightning-waitanyinvoice.json b/doc/schemas/lightning-waitanyinvoice.json index cedc2e4ee25b..e415e018816c 100644 --- a/doc/schemas/lightning-waitanyinvoice.json +++ b/doc/schemas/lightning-waitanyinvoice.json @@ -232,21 +232,7 @@ "method": "waitanyinvoice", "params": {} }, - "response": { - "label": "lbl balance l1 to l2", - "bolt11": "lnbcrt5m1pn2s39ksp53sknyy2mxxurt4y0wqgp730z0cnm0vz3zmzth8p79xsrtmg5llxspp5dp94v59nm6c99jf7lc07zmnhqw6kyujx3mkdav7643dczgtdedfqdpcv3jhxcmjd9c8g6t0dcs8xetwvss8xmmdv5s8xct5wvsxcvfqw3hjqmpjxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqqduqqqqgqqqqqqqqpqqqqqzsqqc9qxpqysgqdz9cftkxe6kcqfddyrvr7j57ulsfxxxkgkjyhr3k77n8v59mzs5rmuexz9lxusyhhehlemd9ujclgahln8e0n8y86stc7u8uys6mjqgqerm6q4", - "payment_hash": "684b5650b3deb052c93efe1fe16e7703b56272468eecdeb3daac5b81216dcb52", - "amount_msat": 500000000, - "status": "paid", - "pay_index": 1, - "amount_received_msat": 500000000, - "paid_at": 1722303671, - "payment_preimage": "bed4140e1db302720d7f9547dc9127d45b115080447cce7e23cfd00b60991831", - "description": "description send some sats l1 to l2", - "expires_at": 1722908470, - "created_index": 1, - "updated_index": 1 - } + "response": null }, { "request": { @@ -257,20 +243,7 @@ "timeout": 0 } }, - "response": { - "label": "lbl_l23", - "bolt11": "lnbcrt1pn2s38zsp5lv49w44a8tvkwtkxfxwts8rnr864u59srp7sxuua3haahdhlhtrqpp5p928w8rmsg2hjeymedcn54vxhsz372qhcedgf003nmsknhx9594sdqcdserxgryv4ekxunfwp6xjmmwxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqt5h8te9lkn0jpdkhkmlkzs80aw7mt5kdm6jxmvddkavt3vj0vakkmfcs0hsde8y8g8za46sch2lp4jxy56u8ve25sgpgcsya0vp92sgphzw570", - "payment_hash": "0954771c7b821579649bcb713a5586bc051f2817c65a84bdf19ee169dcc5a16b", - "status": "paid", - "pay_index": 2, - "amount_received_msat": 9900, - "paid_at": 1722303715, - "payment_preimage": "f3a3b40d63e62785f537aad60f93980914c5639872c7746299a6a1228abbc303", - "description": "l23 description", - "expires_at": 1722908514, - "created_index": 8, - "updated_index": 2 - } + "response": null } ] } diff --git a/doc/schemas/lightning-waitblockheight.json b/doc/schemas/lightning-waitblockheight.json index c86e13a44720..ab78ecb9cb7a 100644 --- a/doc/schemas/lightning-waitblockheight.json +++ b/doc/schemas/lightning-waitblockheight.json @@ -76,9 +76,7 @@ "blockheight": 131 } }, - "response": { - "blockheight": 131 - } + "response": null } ] } diff --git a/doc/schemas/lightning-waitinvoice.json b/doc/schemas/lightning-waitinvoice.json index 5441593f9804..953f075afde8 100644 --- a/doc/schemas/lightning-waitinvoice.json +++ b/doc/schemas/lightning-waitinvoice.json @@ -237,21 +237,7 @@ "label": "inv2" } }, - "response": { - "label": "inv2", - "bolt11": "lnbcrt20n1pn2s38fsp55xnux6tuzuutlqhekzytnexpqj6w3q00h6e7wu08ex43rdr4xqdqpp5znq67nu5secgcf79ncjtqfdpjfqh7acaxvngcqwqsvvxwnkyl35qdq8d9h8vvsxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgq9ptnru6v58v8qd58xdqypr86utn6fhssx8rwegsspfp9d975h0t47xn0hea6qrmy2ucxt4l02nkxu7va7d5lqgy8nrqmhxqpm5qauegqjjqr02", - "payment_hash": "14c1af4f9486708c27c59e24b025a192417f771d33268c01c08318674ec4fc68", - "amount_msat": 2000, - "status": "paid", - "pay_index": 4, - "amount_received_msat": 2000, - "paid_at": 1722303723, - "payment_preimage": "1bda6e78384905bc476c6f50b447cf7fbba13a2644d49d85d797a826e8b9a6a0", - "description": "inv2", - "expires_at": 1722908521, - "created_index": 12, - "updated_index": 4 - } + "response": null }, { "request": { @@ -261,21 +247,7 @@ "inv3" ] }, - "response": { - "label": "inv3", - "bolt11": "lnbcrt30n1pn2s38fsp5syqds2z0hgqgf3dcxt9kp5m2rtywxm4u4hr4xe90r885rr609vgqpp52y0xdhlzrua5clpuyw4wcfk9duxwwauzcjxrs9nj00258njmdjnsdq8d9h8vvcxqyjw5qcqp9rzjqdwjkyvjm7apxnssu4qgwhfkd67ghs6n6k48v6uqczgt88p6tky96qqq0vqqqqgqqyqqqqqpqqqqqzsqqc9qxpqysgqkkeex45p62vc7nfjywwfle8yhk9wemyktw2m7924cfmlthk37q6ptjd8vxyaevtejfj44yp55xllqlljxv5vz6wc3gc9jlfkwrkngscqtl0xs8", - "payment_hash": "511e66dfe21f3b4c7c3c23aaec26c56f0ce77782c48c3816727bd543ce5b6ca7", - "amount_msat": 3000, - "status": "paid", - "pay_index": 5, - "amount_received_msat": 3000, - "paid_at": 1722303725, - "payment_preimage": "86e637cb70631a0db88cc8f6ef9a21457b1b85be30236efb769a611b356225cd", - "description": "inv3", - "expires_at": 1722908521, - "created_index": 13, - "updated_index": 5 - } + "response": null } ] } diff --git a/doc/schemas/lightning-waitsendpay.json b/doc/schemas/lightning-waitsendpay.json index 05c91892e8bc..7cc5c2b8c954 100644 --- a/doc/schemas/lightning-waitsendpay.json +++ b/doc/schemas/lightning-waitsendpay.json @@ -234,22 +234,22 @@ "id": "example:waitsendpay#1", "method": "waitsendpay", "params": { - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2" + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310" } }, "response": { "created_index": 2, "id": 2, - "payment_hash": "d598cfc62da16b381b8fb8af9833a24005f730e54cc32c317fecc511ffc6d2a2", + "payment_hash": "paymenthashinvl0310003100031000310003100031000310003100031000310", "groupid": 1, "updated_index": 2, "destination": "035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d", "amount_msat": 10000, "amount_sent_msat": 10001, - "created_at": 1722303675, - "completed_at": 1722303677, + "created_at": 1723161034, + "completed_at": 1723161036, "status": "complete", - "payment_preimage": "984a10782218478cd39e1f9a16795d756c337662067023a3b690bffdb1593f76" + "payment_preimage": "fda362d4b90462b181194c3a38b4ac5202bb830083afa9bb859fe6049f65aef7" } } ] diff --git a/doc/schemas/lightning-withdraw.json b/doc/schemas/lightning-withdraw.json index ea23f4fd9946..03ff55bbef5a 100644 --- a/doc/schemas/lightning-withdraw.json +++ b/doc/schemas/lightning-withdraw.json @@ -109,9 +109,9 @@ } }, "response": { - "tx": "0200000001187e8867dc9462f0acbf9b7ecad69c786bdb04bdc89eb0bea45db35f8cf7dd860000000000fdffffff02237a080000000000160014c000cb41c18473ac5a32d8127d24abc7736cd04f0636e30b0000000022512052021c61da23b2eda3d5000c6d812d0c9b088c237ed2a510abd94d8c3f7c421d20000000", - "txid": "faf2ac1e15fe8df73c411d404224cb481f01cabdde58df83c56d5d6050ec53a9", - "psbt": "cHNidP8BAgQCAAAAAQMEIAAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGdA6aKwu4U7Zes8OwDJHp4bI3maidtrjOK6N85klZucAEAAAAA/f///wIAwusLAAAAABYAFCchPiIXtPVr0Ztsg5Pcn2G+aRIzQD/9EAEAAAAWABRz0UYcTRX0fJpAf766DfDa2wbGUGcAAAABAR8AwusLAAAAABYAFCchPiIXtPVr0Ztsg5Pcn2G+aRIzIgICB+wrNVNHEthq4DDdm/rsCOLd6h7Bzs/7lyXtessSq2ZHMEQCIEW+oeZvFbmuQidamye9/iuDhJ41SARdgZV8yWWjfq8vAiAS3no++NDmJjip3G/y4VTfQ/jiJv2jv9lQKqBUK9hQ0wEiBgIH7Cs1U0cS2GrgMN2b+uwI4t3qHsHOz/uXJe16yxKrZggnIT4iAAAAAAEOIBh+iGfclGLwrL+bfsrWnHhr2wS9yJ6wvqRds1+M992GAQ8EAAAAAAEQBP3///8AIgICLKJZZMteDpQ8BfcEOrSAECukrPM9dXeamXREWCtGR1AIwADLQQwAAAABAwgjeggAAAAAAAEEFgAUwADLQcGEc6xaMtgSfSSrx3Ns0E8M/AlsaWdodG5pbmcEAgABAAEDCAY24wsAAAAAAQQiUSBSAhxh2iOy7aPVAAxtgS0MmwiMI37SpRCr2U2MP3xCHSEHxKQ1JAGJOzVxgiryRaI4NGaYWWe35WSg4OUGHU+NcXEJAIvHqlwOAAAAAA==" + "tx": "02000000016022dbebdf1ced0bfeafe841479f15c0f47ea14619b6b13cf9c026498bbd14780100000000fdffffff02237a080000000000160014c000cb41c18473ac5a32d8127d24abc7736cd04f86f815000000000022512052021c61da23b2eda3d5000c6d812d0c9b088c237ed2a510abd94d8c3f7c421d83000000", + "txid": "c9c7bfa61a01319abf80ccf828248695a4e14bebdf74f20cb8f4d901fbf780ae", + "psbt": "cHNidP8BAgQCAAAAAQMEgwAAAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAGTM/3AZ9luuf0HvJS5M+IZKrdVqbj3di7uDdf6uOhPggEAAAAA/f///wJYXqHsAAAAABYAFKcrrzI/ziyieomgIJaT7rNGBrBygIQeAAAAAAAWABSmBZWCmADNCZgGe62z0YfPA+IyRHkAAAABAR+AhB4AAAAAABYAFKYFlYKYAM0JmAZ7rbPRh88D4jJEIgIDMKdayu0li+a8AtqfqwWKu+DncMrOt8ZJbqrqcBTD05tHMEQCICQ09vSVdkaCTwtRnPyMXlFZT1C14ZO86FofdUyEvQHEAiB9TpyPQDGNwtE7rKZFW0+1xD5cUFT6O51UTUxHmrCg9gEiBgMwp1rK7SWL5rwC2p+rBYq74Odwys63xkluqupwFMPTmwimBZWCAAAAAAEOIGAi2+vfHO0L/q/oQUefFcD0fqFGGbaxPPnAJkmLvRR4AQ8EAQAAAAEQBP3///8AIgICLKJZZMteDpQ8BfcEOrSAECukrPM9dXeamXREWCtGR1AIwADLQQwAAAABAwgjeggAAAAAAAEEFgAUwADLQcGEc6xaMtgSfSSrx3Ns0E8M/AlsaWdodG5pbmcEAgABAAEDCIb4FQAAAAAAAQQiUSBSAhxh2iOy7aPVAAxtgS0MmwiMI37SpRCr2U2MP3xCHSEHxKQ1JAGJOzVxgiryRaI4NGaYWWe35WSg4OUGHU+NcXEJAIvHqlwOAAAAAA==" } }, { @@ -124,14 +124,14 @@ "feerate": "20000perkb", "minconf": 0, "utxos": [ - "f2f4e67dbf2791a3b57dd986418156b116b452c5fc27b077da7c529db82f06f5:0" + "bbd8646202ccddd3a4729b6023f9103f5e676a56e24337c392a01533b91dbf3c:0" ] } }, "response": { - "tx": "0200000001f5062fb89d527cda77b027fcc552b416b156814186d97db5a39127bf7de6f4f20000000000fdffffff0119f70e0000000000225120bac23c32e23d550364e073c832330f46a7a6b941e3b36fe0334932af46d20a6f87000000", - "txid": "41dd478136c95acc82b7669fa4c70843da2ecd04baa7c53cbe8c73d0dd98e5c1", - "psbt": "cHNidP8BAgQCAAAAAQMEhwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQCJAgAAAAGxWGMGDX3aCdIKW4Vrs4nxXQD8LjoWZ2z3R6yqUp0MxAEAAAAA/f///wKSAA8AAAAAACJRIP2rfAH65wwI4LH5rKzKEQpTEh513FSiXnVCQW80Kur3QEIPAAAAAAAiACCWVeKnMwzYbcafjtGEWvVYDdBrFaeUA0yVceU9Vjmzl3oAAAABASuSAA8AAAAAACJRIP2rfAH65wwI4LH5rKzKEQpTEh513FSiXnVCQW80Kur3AQ4g9QYvuJ1SfNp3sCf8xVK0FrFWgUGG2X21o5Env33m9PIBDwQAAAAAARAE/f///wETQFj1/T/JtePk1+LfX9fAK4QBBwl1Xt1YmoE2cQOo/0hAvCLgwb5zSZCrDGAhxdSujHXyVo3a19wl+ayqa0/nckAhFr2SP8yeYDMCCkVocL4aDjUqc7hPoTIp/uS7zAf7okk6CQDK3xgoAAAAAAABAwgZ9w4AAAAAAAEEIlEgusI8MuI9VQNk4HPIMjMPRqemuUHjs2/gM0kyr0bSCm8hB6Jvzf+c2c5Qrvvj78smeIzuWAjjEtHW01YDo2je0daMCQBxtd2rDQAAAAz8CWxpZ2h0bmluZwQCAAEA" + "tx": "02000000013cbf1db93315a092c33743e2566a675e3f10f923609b72a4d3ddcc026264d8bb0000000000fdffffff019264070000000000225120bac23c32e23d550364e073c832330f46a7a6b941e3b36fe0334932af46d20a6f87000000", + "txid": "40e4a3895dfcef5ca96878d9fdc14bc0e04022fe7587b791d476ac6b1232a434", + "psbt": "cHNidP8BAgQCAAAAAQMEhwAAAAEEAQEBBQEBAQYBAwH7BAIAAAAAAQCJAgAAAAEE+1vznBYP+VO/894NEgDqAaQZ9yln4xeQmyB4l3GckQEAAAAA/////wILbgcAAAAAACJRIIXXICXnj9CLthEZ8Jh6sAQfUFYa2m4TDGRTQ9uMRMKv5cgHAAAAAAAiUSCnWD8MQhZjuMp2+leQGLQGgu+FU9c/0GHNjyFuzc7WowAAAAABASsLbgcAAAAAACJRIIXXICXnj9CLthEZ8Jh6sAQfUFYa2m4TDGRTQ9uMRMKvAQ4gPL8duTMVoJLDN0PiVmpnXj8Q+SNgm3Kk093MAmJk2LsBDwQAAAAAARAE/f///wETQFot+IxkczfYez0Y1beZvdlaodu41Tc7Ysuow416vyy9KZZL2CogXjD4t4L4an/SO78tXcY714K0N3/wp1KkBzshFjl7BEmmDZ01Y0QBvOrzvrYRj8IpuFUr1xIvc1gIsoruCQCpzVCHAAAAAAABAwiSZAcAAAAAAAEEIlEgusI8MuI9VQNk4HPIMjMPRqemuUHjs2/gM0kyr0bSCm8hB6Jvzf+c2c5Qrvvj78smeIzuWAjjEtHW01YDo2je0daMCQBxtd2rDQAAAAz8CWxpZ2h0bmluZwQCAAEA" } } ] diff --git a/tests/autogenerate-rpc-examples.py b/tests/autogenerate-rpc-examples.py index 47f28373ff9b..cc658ee7cd11 100644 --- a/tests/autogenerate-rpc-examples.py +++ b/tests/autogenerate-rpc-examples.py @@ -20,6 +20,7 @@ import ast import struct import subprocess +import copy CWD = os.getcwd() REGENERATING_RPCS = [] @@ -32,1173 +33,1246 @@ FUND_CHANNEL_AMOUNT_SAT = 10**6 LOG_FILE = 'autogenerate-examples-status.log' +REPLACE_RESPONSE_VALUES = { + re.compile(re.escape(CWD)): '/root/lightning', + re.compile(r'/tmp/ltests-[^/]+/test_generate_examples_[^/]+/lightning-[^/]+'): '/tmp/.lightning', +} + if os.path.exists(LOG_FILE): - open(LOG_FILE, 'w').close() + open(LOG_FILE, 'w').close() logging.basicConfig(level=logging.INFO, - format='%(levelname)s - %(message)s', - handlers=[ - # logging.FileHandler(LOG_FILE), - logging.StreamHandler() - ]) + format='%(levelname)s - %(message)s', + handlers=[ + logging.FileHandler(LOG_FILE), + logging.StreamHandler() + ]) logger = logging.getLogger(__name__) class TaskFinished(Exception): - def __init__(self, message): - self.message = message - super().__init__(self.message) + def __init__(self, message): + self.message = message + super().__init__(self.message) def update_example(node, method, params, res=None, description=None, execute=True, filename=None): - """Update examples in JSON files with rpc calls and responses""" - try: - def replace_local_paths(data, replacements): - """Replace local paths in JSON objects""" - try: - # For dictionary or list, recursively replace paths - if isinstance(data, dict): - return {k: replace_local_paths(v, replacements) for k, v in data.items()} - elif isinstance(data, list): - return [replace_local_paths(v, replacements) for v in data] - # Replace when it is string - elif isinstance(data, str): - for old_path, new_path in replacements: - data = re.sub(old_path, new_path, data) - return data - # For other data types, return as is - else: - return data - except Exception as e: - logger.error(f'Error in replacing local paths: {e}') - - def replace_with_example_values(schema, res, idx): - """Replace the response values with the 'example_values' from the schema""" - def update_value(schema, res, idx): - if isinstance(res, dict): - for key, value in res.items(): - if key in schema.get('properties', {}): - prop_schema = schema['properties'][key] - if 'example_values' in prop_schema: - if prop_schema['example_values'][idx]: - res[key] = prop_schema['example_values'][idx] - else: - update_value(prop_schema, value, idx) - elif isinstance(res, list): - for index, item in enumerate(res): - if 'items' in schema: - update_value(schema['items'], item, idx) - - update_value(schema['response'], res, idx) - return res - - def format_json_with_jq(json_data): - """Formats the JSON data with jq to avoid check-fmt-schemas errors. - It is because check-fmt-schemas uses jq to format the JSON data and compare the difference. - For example, jq will convert 18446744073709551685 to 18446744073709552000 before comparing. - JQ behaves this way because it uses C doubles to represent numbers, and on pretty much all - modern systems that's an IEEE 754 double, which can only represent integers without loss - between -2^53..2^53. 125276004817190914 is about 14 times larger than the largest integer - that jq can represent losslessly, therefore jq can only approximate it. - Reference: https://github.com/jqlang/jq/issues/369 - """ - jq_command = 'jq .' - if not isinstance(json_data, str): - json_data = json.dumps(json_data) - - # Run the jq command and capture the output - result = subprocess.run( - jq_command, - input=json_data, - text=True, - capture_output=True, - shell=True - ) - if result.returncode != 0: - logger.error(f"Error running jq: {result.stderr}") - return json.loads(result.stdout) - - global CWD, ALL_RPC_EXAMPLES, REGENERATING_RPCS, RPCS_STATUS - # Usually file name is same as method name, but `sql` is an exception; - # For sql, the `sql-template` file should be updated with examples then this template with finally generate the sql file with tables - # See doc/Makefile `doc/schemas/lightning-sql.json` for more details - file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{method}.json') if filename is None else os.path.join(CWD, 'doc', 'schemas', f'lightning-{filename}.json') - with open(file_path, 'r+', encoding='utf-8') as file: - schema = json.load(file) - method_id = len(schema['examples']) + 1 if 'examples' in schema else 1 - req = { - 'id': f'example:{method}#{method_id}', - 'method': method, - 'params': params - } - logger.info(f'Method \'{method}\', Params {params}') - # Execute the RPC call and get the response - if execute: - res = node.rpc.call(method, params) - logger.info(f'{method} response: {res}') - # Return response without updating the file because user doesn't want to update the example - # Executing the method and returing the response is useful for further example updates - if method not in REGENERATING_RPCS: - return res - else: - # Replace local path in the request with default path - if method == 'plugin' and 'plugin' in req['params']: - req['params']['plugin'] = req['params']['plugin'].replace(CWD, '/root/lightning') - methods_to_replace_path = ['commando', 'listconfigs', 'plugin'] - # Replace local paths in responses to ensure the example's consistency for different users - if method in methods_to_replace_path: - replacements = [ - (CWD, '/root/lightning'), - (r'/tmp/ltests-[^/]+/test_generate_examples_[^/]+/lightning-[^/]+', '/tmp/.lightning') - ] - res = replace_local_paths(res, replacements) - # Format the JSON data with jq to avoid check-fmt-schemas errors - res = format_json_with_jq(res) - res = replace_with_example_values(schema, res, method_id - 1) - # Create the example key with description, request & response - schema.setdefault('examples', []).append({'request': req, 'response': res} if description is None else {'description': description, 'request': req, 'response': res}) - # Update the file with the new example - file.seek(0) - json.dump(schema, file, indent=2, ensure_ascii=False) - file.write('\n') - file.truncate() - logger.info(f'Updated {method}#{method_id}') - for rpc in ALL_RPC_EXAMPLES: - if rpc['method'] == method: - rpc['executed'] += 1 - if rpc['executed'] == rpc['num_examples']: - RPCS_STATUS[REGENERATING_RPCS.index(method)] = True - break - # Exit if listed commands have been executed - if all(RPCS_STATUS): - raise TaskFinished('All Done!!!') - return res - except FileNotFoundError as fnf_error: - logger.error(f'File not found error {fnf_error} at: {file_path}') + """Update examples in JSON files with rpc calls and responses""" + try: + def replace_values_in_json(data): + if isinstance(data, dict): + return {key: replace_values_in_json(value) for key, value in data.items()} + elif isinstance(data, list): + return [replace_values_in_json(item) for item in data] + elif isinstance(data, str): + for pattern, replacement in REPLACE_RESPONSE_VALUES.items(): + if isinstance(pattern, re.Pattern): + data = pattern.sub(replacement, data) + elif isinstance(pattern, str): + data = data.replace(pattern, replacement) + return data + elif isinstance(data, int): + return REPLACE_RESPONSE_VALUES.get(data, data) + else: + return data + + global CWD, ALL_RPC_EXAMPLES, REGENERATING_RPCS, RPCS_STATUS + # Usually file name is same as method name, but `sql` is an exception; + # For sql, the `sql-template` file should be updated with examples then this template with finally generate the sql file with tables + # See doc/Makefile `doc/schemas/lightning-sql.json` for more details + file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{method}.json') if filename is None else os.path.join(CWD, 'doc', 'schemas', f'lightning-{filename}.json') + with open(file_path, 'r+', encoding='utf-8') as file: + schema = json.load(file) + method_id = len(schema['examples']) + 1 if 'examples' in schema else 1 + req = { + 'id': f'example:{method}#{method_id}', + 'method': method, + 'params': params + } + logger.info(f'Method \'{method}\', Params {params}') + # Execute the RPC call and get the response + original_res = node.rpc.call(method, params) if execute else None + logger.info(f'{method} response: {original_res}') + # Return response without updating the file because user doesn't want to update the example + # Executing the method and returing the response is useful for further example updates + if method not in REGENERATING_RPCS: + return original_res + else: + req = replace_values_in_json(req) + logger.debug(f'Updated {method} request: {req}') + res = copy.deepcopy(original_res) + res = replace_values_in_json(res) + logger.debug(f'Updated {method} response: {res}') + schema.setdefault('examples', []).append({'request': req, 'response': res} if description is None else {'description': description, 'request': req, 'response': res}) + # Update the file with the new example + file.seek(0) + json.dump(schema, file, indent=2, ensure_ascii=False) + file.write('\n') + file.truncate() + logger.info(f'Updated {method}#{method_id}') + for rpc in ALL_RPC_EXAMPLES: + if rpc['method'] == method: + rpc['executed'] += 1 + if rpc['executed'] == rpc['num_examples']: + RPCS_STATUS[REGENERATING_RPCS.index(method)] = True + break + # Exit if listed commands have been executed + if all(RPCS_STATUS): + raise TaskFinished('All Done!!!') + return original_res + except FileNotFoundError as fnf_error: + logger.error(f'File not found error {fnf_error} at: {file_path}') def setup_test_nodes(node_factory, bitcoind): - """Sets up six test nodes for various transaction scenarios: - l1, l2, l3 for transactions and forwards - l4 for complex transactions (sendpayment, keysend, renepay) - l5 for keysend with routehints and channel backup & recovery - l5, l6 for backup and recovery - l7, l8 for splicing (added later) - l9, l10 for low level fundchannel examples (added later) - l11, l12 for low level openchannel examples (added later) - l13 for recover (added later) - l1->l2, l2->l3, l3->l4, l2->l5 (unannounced), l9->l10, l11->l12 - l1.info['id']: 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 - l2.info['id']: 022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59 - l3.info['id']: 035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d - l4.info['id']: 0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199 - l5.info['id']: 032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e - l6.info['id']: 0265b6ab5ec860cd257865d61ef0bbf5b3339c36cbda8b26b74e7f1dca490b6518 - """ - try: - global FUND_WALLET_AMOUNT_SAT, FUND_CHANNEL_AMOUNT_SAT - options = [ - { - 'experimental-dual-fund': None, - 'experimental-offers': None, - 'may_reconnect': True, - 'dev-hsmd-no-preapprove-check': None, - 'allow-deprecated-apis': True, - 'allow_bad_gossip': True, - 'broken_log': '.*', # plugin-topology: DEPRECATED API USED: *, lightningd-3: had memleak messages, lightningd: MEMLEAK:, lightningd: init_cupdate for unknown scid etc. - 'dev-bitcoind-poll': 3, # Default 1; increased to avoid rpc failures - }.copy() - for i in range(6) - ] - l1, l2, l3, l4, l5, l6 = node_factory.get_nodes(6, opts=options) - # Upgrade wallet - # Write the data/p2sh_wallet_hsm_secret to the hsm_path, so node can spend funds at p2sh_wrapped_addr - p2sh_wrapped_addr = '2N2V4ee2vMkiXe5FSkRqFjQhiS9hKqNytv3' - update_example(node=l1, method='upgradewallet', params={}) - txid = bitcoind.rpc.sendtoaddress(p2sh_wrapped_addr, 20000000 / 10 ** 8) - bitcoind.generate_block(1) - l1.daemon.wait_for_log('Owning output .* txid {} CONFIRMED'.format(txid)) - # Doing it with 'reserved ok' should have 1. We use a big feerate so we can get over the RBF hump - update_example(node=l1, method='upgradewallet', params={'feerate': 'urgent', 'reservedok': True}) - - # Fund node wallets for further transactions - fund_nodes = [l1, l2, l3, l4, l5] - for node in fund_nodes: - node.fundwallet(FUND_WALLET_AMOUNT_SAT) - # Connect nodes and fund channels - update_example(node=l2, method='getinfo', params={}) - update_example(node=l1, method='connect', params={'id': l2.info['id'], 'host': 'localhost', 'port': l2.daemon.port}) - update_example(node=l2, method='connect', params={'id': l3.info['id'], 'host': 'localhost', 'port': l3.daemon.port}) - l3.rpc.connect(l4.info['id'], 'localhost', l4.port) - l2.rpc.connect(l5.info['id'], 'localhost', l5.port) - c12, _ = l1.fundchannel(l2, FUND_CHANNEL_AMOUNT_SAT) - c23, c23res = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) - c34, _ = l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) - c25, _ = l2.fundchannel(l5, announce_channel=False) - mine_funding_to_announce(bitcoind, [l1, l2, l3, l4]) - l1.wait_channel_active(c12) - l1.wait_channel_active(c23) - l1.wait_channel_active(c34) - # Balance these newly opened channels - l1.rpc.pay(l2.rpc.invoice('500000sat', 'lbl balance l1 to l2', 'description send some sats l1 to l2')['bolt11']) - l2.rpc.pay(l3.rpc.invoice('500000sat', 'lbl balance l2 to l3', 'description send some sats l2 to l3')['bolt11']) - l2.rpc.pay(l5.rpc.invoice('500000sat', 'lbl balance l2 to l5', 'description send some sats l2 to l5')['bolt11']) - l3.rpc.pay(l4.rpc.invoice('500000sat', 'lbl balance l3 to l4', 'description send some sats l3 to l4')['bolt11']) - return l1, l2, l3, l4, l5, l6, c12, c23, c25, c34, c23res - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in setting up nodes: {e}') + """Sets up six test nodes for various transaction scenarios: + l1, l2, l3 for transactions and forwards + l4 for complex transactions (sendpayment, keysend, renepay) + l5 for keysend with routehints and channel backup & recovery + l5, l6 for backup and recovery + l7, l8 for splicing (added later) + l9, l10 for low level fundchannel examples (added later) + l11, l12 for low level openchannel examples (added later) + l13 for recover (added later) + l1->l2, l2->l3, l3->l4, l2->l5 (unannounced), l9->l10, l11->l12 + l1.info['id']: 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 + l2.info['id']: 022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59 + l3.info['id']: 035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d + l4.info['id']: 0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199 + l5.info['id']: 032cf15d1ad9c4a08d26eab1918f732d8ef8fdc6abb9640bf3db174372c491304e + l6.info['id']: 0265b6ab5ec860cd257865d61ef0bbf5b3339c36cbda8b26b74e7f1dca490b6518 + """ + try: + global FUND_WALLET_AMOUNT_SAT, FUND_CHANNEL_AMOUNT_SAT + options = [ + { + 'experimental-dual-fund': None, + 'experimental-offers': None, + 'may_reconnect': True, + 'dev-hsmd-no-preapprove-check': None, + 'allow-deprecated-apis': True, + 'allow_bad_gossip': True, + 'broken_log': '.*', # plugin-topology: DEPRECATED API USED: *, lightningd-3: had memleak messages, lightningd: MEMLEAK:, lightningd: init_cupdate for unknown scid etc. + 'dev-bitcoind-poll': 3, # Default 1; increased to avoid rpc failures + }.copy() + for i in range(6) + ] + l1, l2, l3, l4, l5, l6 = node_factory.get_nodes(6, opts=options) + REPLACE_RESPONSE_VALUES.update({ + l1.info['version']: 'v24.08', + l1.info['alias']: 'JUNIORBEAM', + l1.info['binding'][0]['port']: 19734, + f'127.0.0.1:{l1.info["binding"][0]["port"]}': '127.0.0.1:19734', + l2.info['alias']: 'SILENTARTIST', + l2.info['binding'][0]['port']: 19735, + f'127.0.0.1:{l2.info["binding"][0]["port"]}': '127.0.0.1:19735', + l3.info['alias']: 'HOPPINGFIRE', + l3.info['binding'][0]['port']: 19736, + f'127.0.0.1:{l3.info["binding"][0]["port"]}': '127.0.0.1:19736', + l4.info['alias']: 'JUNIORFELONY', + l4.info['binding'][0]['port']: 19737, + f'127.0.0.1:{l4.info["binding"][0]["port"]}': '127.0.0.1:19737', + l5.info['alias']: 'SOMBERFIRE', + l5.info['binding'][0]['port']: 19738, + f'127.0.0.1:{l5.info["binding"][0]["port"]}': '127.0.0.1:19738', + l6.info['alias']: 'LOUDPHOTO', + l6.info['binding'][0]['port']: 19739, + f'127.0.0.1:{l6.info["binding"][0]["port"]}': '127.0.0.1:19739', + }) + # Upgrade wallet + # Write the data/p2sh_wallet_hsm_secret to the hsm_path, so node can spend funds at p2sh_wrapped_addr + p2sh_wrapped_addr = '2N2V4ee2vMkiXe5FSkRqFjQhiS9hKqNytv3' + update_example(node=l1, method='upgradewallet', params={}) + txid = bitcoind.rpc.sendtoaddress(p2sh_wrapped_addr, 20000000 / 10 ** 8) + bitcoind.generate_block(1) + l1.daemon.wait_for_log('Owning output .* txid {} CONFIRMED'.format(txid)) + # Doing it with 'reserved ok' should have 1. We use a big feerate so we can get over the RBF hump + update_example(node=l1, method='upgradewallet', params={'feerate': 'urgent', 'reservedok': True}) + + # Fund node wallets for further transactions + fund_nodes = [l1, l2, l3, l4, l5] + for node in fund_nodes: + node.fundwallet(FUND_WALLET_AMOUNT_SAT) + # Connect nodes and fund channels + update_example(node=l2, method='getinfo', params={}) + update_example(node=l1, method='connect', params={'id': l2.info['id'], 'host': 'localhost', 'port': l2.daemon.port}) + update_example(node=l2, method='connect', params={'id': l3.info['id'], 'host': 'localhost', 'port': l3.daemon.port}) + l3.rpc.connect(l4.info['id'], 'localhost', l4.port) + l2.rpc.connect(l5.info['id'], 'localhost', l5.port) + c12, c12res = l1.fundchannel(l2, FUND_CHANNEL_AMOUNT_SAT) + c23, c23res = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) + c34, c34res = l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) + c25, c25res = l2.fundchannel(l5, announce_channel=False) + mine_funding_to_announce(bitcoind, [l1, l2, l3, l4]) + l1.wait_channel_active(c12) + l1.wait_channel_active(c23) + l1.wait_channel_active(c34) + # Balance these newly opened channels + l1.rpc.pay(l2.rpc.invoice('500000sat', 'lbl balance l1 to l2', 'description send some sats l1 to l2')['bolt11']) + l2.rpc.pay(l3.rpc.invoice('500000sat', 'lbl balance l2 to l3', 'description send some sats l2 to l3')['bolt11']) + l2.rpc.pay(l5.rpc.invoice('500000sat', 'lbl balance l2 to l5', 'description send some sats l2 to l5')['bolt11']) + l3.rpc.pay(l4.rpc.invoice('500000sat', 'lbl balance l3 to l4', 'description send some sats l3 to l4')['bolt11']) + REPLACE_RESPONSE_VALUES.update({ + c12: '109x1x0', + c23: '111x1x1', + c34: '113x1x0', + c25: '115x1x1', + c12res['txid']: 'txidchannel012000012000012000012000012000012000012000012000012000', + c12res['channel_id']: 'channelid0120000120000120000120000120000120000120000120000120000', + c23res['txid']: 'txidchannel023000023000023000023000023000023000023000023000023000', + c23res['channel_id']: 'channelid0230000230000230000230000230000230000230000230000230000', + c34res['txid']: 'txidchannel034000034000034000034000034000034000034000034000034000', + c34res['channel_id']: 'channelid0340000340000340000340000340000340000340000340000340000', + c25res['txid']: 'txidchannel025000025000025000025000025000025000025000025000025000', + c25res['channel_id']: 'channelid0250000250000250000250000250000250000250000250000250000', + }) + return l1, l2, l3, l4, l5, l6, c12, c23, c25, c34, c23res + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in setting up nodes: {e}') def generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind): - """Generate examples for various transactions and forwards""" - try: - logger.info('Simple Transactions Start...') - global FUND_CHANNEL_AMOUNT_SAT - # Simple Transactions by creating invoices, paying invoices, keysends - inv_l31 = update_example(node=l3, method='invoice', params={'amount_msat': 10**4, 'label': 'lbl_l31', 'description': 'Invoice description l31'}) - route_l1_l3 = update_example(node=l1, method='getroute', params={'id': l3.info['id'], 'amount_msat': 10**4, 'riskfactor': 1})['route'] - inv_l32 = update_example(node=l3, method='invoice', params={'amount_msat': '50000msat', 'label': 'lbl_l32', 'description': 'l32 description'}) - update_example(node=l2, method='getroute', params={'id': l4.info['id'], 'amount_msat': 500000, 'riskfactor': 10, 'cltv': 9}) - update_example(node=l1, method='sendpay', params={'route': route_l1_l3, 'payment_hash': inv_l31['payment_hash'], 'payment_secret': inv_l31['payment_secret']}) - update_example(node=l1, method='waitsendpay', params={'payment_hash': inv_l31['payment_hash']}) - update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000}) - update_example(node=l1, method='keysend', params={'destination': l4.info['id'], 'amount_msat': 10000000, 'extratlvs': {'133773310': '68656c6c6f776f726c64', '133773312': '66696c7465726d65'}}) - routehints = [[{ - 'scid': only_one([channel for channel in l2.rpc.listpeerchannels()['channels'] if channel['peer_id'] == l3.info['id']])['alias']['remote'], - 'id': l2.info['id'], - 'feebase': '1msat', - 'feeprop': 10, - 'expirydelta': 9, - }]] - update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000, 'routehints': routehints}) - inv_l11 = l1.rpc.invoice('10000msat', 'lbl_l11', 'l11 description') - inv_l21 = l2.rpc.invoice('any', 'lbl_l21', 'l21 description') - inv_l22 = l2.rpc.invoice('200000msat', 'lbl_l22', 'l22 description') - inv_l33 = l3.rpc.invoice('100000msat', 'lbl_l33', 'l33 description') - inv_l34 = l3.rpc.invoice(4000, 'failed', 'failed description') - update_example(node=l1, method='pay', params=[inv_l32['bolt11']]) - update_example(node=l2, method='pay', params={'bolt11': inv_l33['bolt11']}) - - # Hops, create and send onion for onion routing - def truncate_encode(i: int): - """Encode a tu64 (or tu32 etc) value""" - try: - ret = struct.pack("!Q", i) - while ret.startswith(b'\0'): - ret = ret[1:] - return ret - except Exception as e: - logger.error(f'Error in encoding: {e}') - - def serialize_payload_tlv(n, blockheight: int = 0): - """Serialize payload according to BOLT #4: Onion Routing Protocol""" - try: - block, tx, out = n['channel'].split('x') - payload = TlvPayload() - b = BytesIO() - b.write(truncate_encode(int(n['amount_msat']))) - payload.add_field(2, b.getvalue()) - b = BytesIO() - b.write(truncate_encode(blockheight + n['delay'])) - payload.add_field(4, b.getvalue()) - b = BytesIO() - b.write(struct.pack("!Q", int(block) << 40 | int(tx) << 16 | int(out))) - payload.add_field(6, b.getvalue()) - return payload.to_bytes().hex() - except Exception as e: - logger.error(f'Error in serializing payload: {e}') - - def serialize_payload_final_tlv(n, payment_secret: str, blockheight: int = 0): - """Serialize the last payload according to BOLT #4: Onion Routing Protocol""" - try: - payload = TlvPayload() - b = BytesIO() - b.write(truncate_encode(int(n['amount_msat']))) - payload.add_field(2, b.getvalue()) - b = BytesIO() - b.write(truncate_encode(blockheight + n['delay'])) - payload.add_field(4, b.getvalue()) - b = BytesIO() - b.write(bytes.fromhex(payment_secret)) - b.write(truncate_encode(int(n['amount_msat']))) - payload.add_field(8, b.getvalue()) - return payload.to_bytes().hex() - except Exception as e: - logger.error(f'Error in serializing final payload: {e}') - - blockheight = l1.rpc.getinfo()['blockheight'] - amt = 10**3 - route = l1.rpc.getroute(l4.info['id'], amt, 10)['route'] - inv = l4.rpc.invoice(amt, "lbl l4", "desc l4") - first_hop = route[0] - hops = [] - for h, n in zip(route[:-1], route[1:]): - hops.append({'pubkey': h['id'], 'payload': serialize_payload_tlv(n, blockheight)}) - hops.append({'pubkey': route[-1]['id'], 'payload': serialize_payload_final_tlv(route[-1], inv['payment_secret'], blockheight)}) - onion = update_example(node=l1, method='createonion', params={'hops': hops, 'assocdata': inv['payment_hash']}) - update_example(node=l1, method='createonion', params=[hops, inv['payment_hash'], '41' * 32]) - update_example(node=l1, method='sendonion', params={'onion': onion['onion'], 'first_hop': first_hop, 'payment_hash': inv['payment_hash']}) - l1.rpc.waitsendpay(payment_hash=inv['payment_hash']) - - # Close channels examples - update_example(node=l2, method='close', params={'id': l3.info['id'], 'unilateraltimeout': 1}) - update_example(node=l3, method='close', params={'id': l4.info['id'], 'destination': l4.rpc.newaddr()['bech32']}) - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l1, l2, l3, l4]) - - # Channel 2 to 3 is closed, l1->l3 payment will fail where `failed` forward will be saved on l2 - l1.rpc.sendpay(route_l1_l3, inv_l34['payment_hash'], payment_secret=inv_l34['payment_secret']) - with pytest.raises(RpcError): - l1.rpc.waitsendpay(inv_l34['payment_hash']) - - # Reopen channels for further examples - c23, _ = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) - l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) - mine_funding_to_announce(bitcoind, [l3, l4]) - l2.wait_channel_active(c23) - update_example(node=l2, method='setchannel', params={'id': c23, 'ignorefeelimits': True}) - update_example(node=l2, method='setchannel', params={'id': c25, 'feebase': 4000, 'feeppm': 300, 'enforcedelay': 0}) - - # Some more invoices for signing and preapproving - inv_l12 = l1.rpc.invoice(1000, 'label inv_l12', 'description inv_l12')['bolt11'] - inv_l24 = l2.rpc.invoice(123000, 'label inv_l24', 'description inv_l24', 3600)['bolt11'] - inv_l25 = l2.rpc.invoice(124000, 'label inv_l25', 'description inv_l25', 3600)['bolt11'] - inv_l26 = l2.rpc.invoice(125000, 'label inv_l26', 'description inv_l26', 3600)['bolt11'] - update_example(node=l2, method='signinvoice', params={'invstring': inv_l12}) - update_example(node=l3, method='signinvoice', params=[inv_l26]) - update_example(node=l1, method='preapprovekeysend', params={'destination': l2.info['id'], 'payment_hash': '00' * 32, 'amount_msat': 1000}) - update_example(node=l5, method='preapprovekeysend', params=[l5.info['id'], '01' * 32, 2000]) - update_example(node=l1, method='preapproveinvoice', params={'bolt11': inv_l24}) - update_example(node=l1, method='preapproveinvoice', params=[inv_l25]) - inv_req = update_example(node=l2, method='invoicerequest', params={'amount': 1000000, 'description': 'Simple test'}) - update_example(node=l1, method='sendinvoice', params={'invreq': inv_req['bolt12'], 'label': 'test sendinvoice'}) - inv_l13 = l1.rpc.invoice(amount_msat=100000, label='lbl_l13', description='l13 description', preimage='01' * 32) - update_example(node=l2, method='createinvoice', params={'invstring': inv_l13['bolt11'], 'label': 'lbl_l13', 'preimage': '01' * 32}) - logger.info('Simple Transactions Done!') - return inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating transactions examples: {e}') + """Generate examples for various transactions and forwards""" + try: + logger.info('Simple Transactions Start...') + global FUND_CHANNEL_AMOUNT_SAT + # Simple Transactions by creating invoices, paying invoices, keysends + inv_l31 = update_example(node=l3, method='invoice', params={'amount_msat': 10**4, 'label': 'lbl_l31', 'description': 'Invoice description l31'}) + route_l1_l3 = update_example(node=l1, method='getroute', params={'id': l3.info['id'], 'amount_msat': 10**4, 'riskfactor': 1})['route'] + inv_l32 = update_example(node=l3, method='invoice', params={'amount_msat': '50000msat', 'label': 'lbl_l32', 'description': 'l32 description'}) + REPLACE_RESPONSE_VALUES.update({ + inv_l31['payment_hash']: 'paymenthashinvl0310003100031000310003100031000310003100031000310', + inv_l31['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000000000bolt11invl031000', + inv_l31['payment_secret']: 'paymentsecretinvl00310003100031000310003100031000310003100031000', + inv_l31['expires_at']: 1731100000, + inv_l32['payment_hash']: 'paymenthashinvl0320003200032000320003200032000320003200032000320', + inv_l32['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000000000bolt11invl032000', + inv_l32['payment_secret']: 'paymentsecretinvl00320003200032000320003200032000320003200032000', + inv_l32['expires_at']: 1732100000, + }) + update_example(node=l2, method='getroute', params={'id': l4.info['id'], 'amount_msat': 500000, 'riskfactor': 10, 'cltv': 9}) + update_example(node=l1, method='sendpay', params={'route': route_l1_l3, 'payment_hash': inv_l31['payment_hash'], 'payment_secret': inv_l31['payment_secret']}) + update_example(node=l1, method='waitsendpay', params={'payment_hash': inv_l31['payment_hash']}) + update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000}) + update_example(node=l1, method='keysend', params={'destination': l4.info['id'], 'amount_msat': 10000000, 'extratlvs': {'133773310': '68656c6c6f776f726c64', '133773312': '66696c7465726d65'}}) + routehints = [[{ + 'scid': only_one([channel for channel in l2.rpc.listpeerchannels()['channels'] if channel['peer_id'] == l3.info['id']])['alias']['remote'], + 'id': l2.info['id'], + 'feebase': '1msat', + 'feeprop': 10, + 'expirydelta': 9, + }]] + update_example(node=l1, method='keysend', params={'destination': l3.info['id'], 'amount_msat': 10000, 'routehints': routehints}) + inv_l11 = l1.rpc.invoice('10000msat', 'lbl_l11', 'l11 description') + inv_l21 = l2.rpc.invoice('any', 'lbl_l21', 'l21 description') + inv_l22 = l2.rpc.invoice('200000msat', 'lbl_l22', 'l22 description') + inv_l33 = l3.rpc.invoice('100000msat', 'lbl_l33', 'l33 description') + inv_l34 = l3.rpc.invoice(4000, 'failed', 'failed description') + REPLACE_RESPONSE_VALUES.update({ + inv_l11['payment_hash']: 'paymenthashinvl0110001100011000110001100011000110001100011000310', + inv_l11['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000000000bolt11invl011000', + inv_l11['payment_secret']: 'paymentsecretinvl00110001100011000110001100011000110001100011000', + inv_l11['expires_at']: 1711100000, + inv_l21['payment_hash']: 'paymenthashinvl0210002100021000210002100021000210002100021000320', + inv_l21['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000000000bolt11invl021000', + inv_l21['payment_secret']: 'paymentsecretinvl00210002100021000210002100021000210002100021000', + inv_l21['expires_at']: 1722100000, + inv_l22['payment_hash']: 'paymenthashinvl0220002200022000220002200022000220002200022000310', + inv_l22['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000000000bolt11invl022000', + inv_l22['payment_secret']: 'paymentsecretinvl00220002200022000220002200022000220002200022000', + inv_l22['expires_at']: 1722100000, + inv_l33['payment_hash']: 'paymenthashinvl0330003300033000330003300033000330003300033000310', + inv_l33['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000000000bolt11invl033000', + inv_l33['payment_secret']: 'paymentsecretinvl00330003300033000330003300033000330003300033000', + inv_l33['expires_at']: 1733100000, + inv_l34['payment_hash']: 'paymenthashinvl0340003400034000340003400034000340003400034000310', + inv_l34['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000000000bolt11invl034000', + inv_l34['payment_secret']: 'paymentsecretinvl00340003400034000340003400034000340003400034000', + inv_l34['expires_at']: 1734100000, + }) + pay32res = update_example(node=l1, method='pay', params=[inv_l32['bolt11']]) + logger.info(f'pay32res: {pay32res}') + update_example(node=l2, method='pay', params={'bolt11': inv_l33['bolt11']}) + + # Hops, create and send onion for onion routing + def truncate_encode(i: int): + """Encode a tu64 (or tu32 etc) value""" + try: + ret = struct.pack("!Q", i) + while ret.startswith(b'\0'): + ret = ret[1:] + return ret + except Exception as e: + logger.error(f'Error in encoding: {e}') + + def serialize_payload_tlv(n, blockheight: int = 0): + """Serialize payload according to BOLT #4: Onion Routing Protocol""" + try: + block, tx, out = n['channel'].split('x') + payload = TlvPayload() + b = BytesIO() + b.write(truncate_encode(int(n['amount_msat']))) + payload.add_field(2, b.getvalue()) + b = BytesIO() + b.write(truncate_encode(blockheight + n['delay'])) + payload.add_field(4, b.getvalue()) + b = BytesIO() + b.write(struct.pack("!Q", int(block) << 40 | int(tx) << 16 | int(out))) + payload.add_field(6, b.getvalue()) + return payload.to_bytes().hex() + except Exception as e: + logger.error(f'Error in serializing payload: {e}') + + def serialize_payload_final_tlv(n, payment_secret: str, blockheight: int = 0): + """Serialize the last payload according to BOLT #4: Onion Routing Protocol""" + try: + payload = TlvPayload() + b = BytesIO() + b.write(truncate_encode(int(n['amount_msat']))) + payload.add_field(2, b.getvalue()) + b = BytesIO() + b.write(truncate_encode(blockheight + n['delay'])) + payload.add_field(4, b.getvalue()) + b = BytesIO() + b.write(bytes.fromhex(payment_secret)) + b.write(truncate_encode(int(n['amount_msat']))) + payload.add_field(8, b.getvalue()) + return payload.to_bytes().hex() + except Exception as e: + logger.error(f'Error in serializing final payload: {e}') + + blockheight = l1.rpc.getinfo()['blockheight'] + amt = 10**3 + route = l1.rpc.getroute(l4.info['id'], amt, 10)['route'] + inv = l4.rpc.invoice(amt, "lbl l4", "desc l4") + first_hop = route[0] + hops = [] + for h, n in zip(route[:-1], route[1:]): + hops.append({'pubkey': h['id'], 'payload': serialize_payload_tlv(n, blockheight)}) + hops.append({'pubkey': route[-1]['id'], 'payload': serialize_payload_final_tlv(route[-1], inv['payment_secret'], blockheight)}) + onion = update_example(node=l1, method='createonion', params={'hops': hops, 'assocdata': inv['payment_hash']}) + update_example(node=l1, method='createonion', params=[hops, inv['payment_hash'], '41' * 32]) + update_example(node=l1, method='sendonion', params={'onion': onion['onion'], 'first_hop': first_hop, 'payment_hash': inv['payment_hash']}) + l1.rpc.waitsendpay(payment_hash=inv['payment_hash']) + + # Close channels examples + update_example(node=l2, method='close', params={'id': l3.info['id'], 'unilateraltimeout': 1}) + update_example(node=l3, method='close', params={'id': l4.info['id'], 'destination': l4.rpc.newaddr()['bech32']}) + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l1, l2, l3, l4]) + + # Channel 2 to 3 is closed, l1->l3 payment will fail where `failed` forward will be saved on l2 + l1.rpc.sendpay(route_l1_l3, inv_l34['payment_hash'], payment_secret=inv_l34['payment_secret']) + with pytest.raises(RpcError): + l1.rpc.waitsendpay(inv_l34['payment_hash']) + + # Reopen channels for further examples + c23, _ = l2.fundchannel(l3, FUND_CHANNEL_AMOUNT_SAT) + l3.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) + mine_funding_to_announce(bitcoind, [l3, l4]) + l2.wait_channel_active(c23) + update_example(node=l2, method='setchannel', params={'id': c23, 'ignorefeelimits': True}) + update_example(node=l2, method='setchannel', params={'id': c25, 'feebase': 4000, 'feeppm': 300, 'enforcedelay': 0}) + + # Some more invoices for signing and preapproving + inv_l12 = l1.rpc.invoice(1000, 'label inv_l12', 'description inv_l12') + inv_l24 = l2.rpc.invoice(123000, 'label inv_l24', 'description inv_l24', 3600) + inv_l25 = l2.rpc.invoice(124000, 'label inv_l25', 'description inv_l25', 3600) + inv_l26 = l2.rpc.invoice(125000, 'label inv_l26', 'description inv_l26', 3600) + REPLACE_RESPONSE_VALUES.update({ + inv_l12['payment_hash']: 'paymenthashinvl0120001200012000120001200012000120001200012000310', + inv_l12['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000000000bolt11invl012000', + inv_l12['payment_secret']: 'paymentsecretinvl00120001200012000120001200012000120001200012000', + inv_l12['expires_at']: 1712100000, + inv_l24['payment_hash']: 'paymenthashinvl0240002400024000240002400024000240002400024000310', + inv_l24['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000000000bolt11invl024000', + inv_l24['payment_secret']: 'paymentsecretinvl00240002400024000240002400024000240002400024000', + inv_l24['expires_at']: 1724100000, + inv_l25['payment_hash']: 'paymenthashinvl0250002500025000250002500025000250002500025000310', + inv_l25['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000000000bolt11invl025000', + inv_l25['payment_secret']: 'paymentsecretinvl00250002500025000250002500025000250002500025000', + inv_l25['expires_at']: 1725100000, + inv_l26['payment_hash']: 'paymenthashinvl0260002600026000260002600026000260002600026000310', + inv_l26['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000000000bolt11invl026000', + inv_l26['payment_secret']: 'paymentsecretinvl00260002600026000260002600026000260002600026000', + inv_l26['expires_at']: 1726100000, + }) + update_example(node=l2, method='signinvoice', params={'invstring': inv_l12['bolt11']}) + update_example(node=l3, method='signinvoice', params=[inv_l26['bolt11']]) + update_example(node=l1, method='preapprovekeysend', params={'destination': l2.info['id'], 'payment_hash': '00' * 32, 'amount_msat': 1000}) + update_example(node=l5, method='preapprovekeysend', params=[l5.info['id'], '01' * 32, 2000]) + update_example(node=l1, method='preapproveinvoice', params={'bolt11': inv_l24['bolt11']}) + update_example(node=l1, method='preapproveinvoice', params=[inv_l25['bolt11']]) + inv_req = update_example(node=l2, method='invoicerequest', params={'amount': 1000000, 'description': 'Simple test'}) + update_example(node=l1, method='sendinvoice', params={'invreq': inv_req['bolt12'], 'label': 'test sendinvoice'}) + inv_l13 = l1.rpc.invoice(amount_msat=100000, label='lbl_l13', description='l13 description', preimage='01' * 32) + REPLACE_RESPONSE_VALUES.update({ + inv_l13['payment_hash']: 'paymenthashinvl0130001300013000130001300013000130001300013000310', + inv_l13['bolt11']: 'lnbcrt100n1pnt2000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000000000bolt11invl013000', + inv_l13['payment_secret']: 'paymentsecretinvl00130001300013000130001300013000130001300013000', + inv_l13['expires_at']: 1713100000, + }) + update_example(node=l2, method='createinvoice', params={'invstring': inv_l13['bolt11'], 'label': 'lbl_l13', 'preimage': '01' * 32}) + logger.info('Simple Transactions Done!') + return inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating transactions examples: {e}') def generate_runes_examples(l1, l2, l3): - """Covers all runes related examples""" - try: - logger.info('Runes Start...') - # Runes - trimmed_id = l1.info['id'][:20] - rune_l21 = update_example(node=l2, method='createrune', params={}, description=['This creates a fresh rune which can do anything:']) - rune_l22 = update_example(node=l2, method='createrune', params={'rune': rune_l21['rune'], 'restrictions': 'readonly'}, - description=['We can add restrictions to that rune, like so:', - '', - 'The `readonly` restriction is a short-cut for two restrictions:', - '', - '1: `[\'method^list\', \'method^get\', \'method=summary\']`: You may call list, get or summary.', - '', - '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!' - ]) - update_example(node=l2, method='createrune', params={'rune': rune_l21['rune'], 'restrictions': [['method^list', 'method^get', 'method=summary'], ['method/listdatastore']]}, description=['We can do the same manually (readonly), like so:']) - rune_l23 = update_example(node=l2, method='createrune', params={'restrictions': [[f'id^{trimmed_id}'], ['method=listpeers']]}, description=[f'This will allow the rune to be used for id starting with {trimmed_id}, and for the method listpeers:']) - rune_l24 = update_example(node=l2, method='createrune', params={'restrictions': [['method=pay'], ['pnameamountmsat<10000']]}, description=['This will allow the rune to be used for the method pay, and for the parameter amount\\_msat to be less than 10000:']) - update_example(node=l2, method='createrune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid={l1.info["id"]}', f'parr0={l1.info["id"]}']]}, description=["Let's create a rune which lets a specific peer run listpeers on themselves:"]) - rune_l25 = update_example(node=l2, method='createrune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid^{trimmed_id}', f'parr0^{trimmed_id}']]}, description=["This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 10 bytes of the `listpeers` parameter:"]) - update_example(node=l2, method='createrune', params=[rune_l25['rune'], [['time<"$(($(date +%s) + 24*60*60))"', 'rate=2']]], description=["Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:"]) - update_example(node=l2, method='commando-listrunes', params={'rune': rune_l23['rune']}) - update_example(node=l2, method='commando-listrunes', params={}) - update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'getinfo', 'params': {}}) - update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l23['rune'], 'method': 'listpeers', 'params': [l3.info['id']]}) - inv_l23 = l2.rpc.invoice('any', 'lbl_l23', 'l23 description') - update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'bolt11': inv_l23['bolt11'], 'amount_msat': 9900}}) - update_example(node=l2, method='checkrune', params={'nodeid': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'listpeers', 'params': {}}) - update_example(node=l2, method='checkrune', params={'nodeid': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'amount_msat': 9999}}) - update_example(node=l2, method='showrunes', params={'rune': rune_l21['rune']}) - update_example(node=l2, method='showrunes', params={}) - update_example(node=l2, method='commando-blacklist', params={'start': 1}) - update_example(node=l2, method='commando-blacklist', params={'start': 2, 'end': 3}) - update_example(node=l2, method='blacklistrune', params={'start': 1}) - update_example(node=l2, method='blacklistrune', params={'start': 0, 'end': 2}) - update_example(node=l2, method='blacklistrune', params={'start': 3, 'end': 4}) - - # Commando runes - rune_l11 = update_example(node=l1, method='commando-rune', params={}, description=['This creates a fresh rune which can do anything:']) - update_example(node=l1, method='commando-rune', params={'rune': rune_l11['rune'], 'restrictions': 'readonly'}, - description=['We can add restrictions to that rune, like so:', - '', - 'The `readonly` restriction is a short-cut for two restrictions:', - '', - '1: `[\'method^list\', \'method^get\', \'method=summary\']`: You may call list, get or summary.', - '', - '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!' - ]) - update_example(node=l1, method='commando-rune', params={'rune': rune_l11['rune'], 'restrictions': [['method^list', 'method^get', 'method=summary'], ['method/listdatastore']]}, description=['We can do the same manually (readonly), like so:']) - update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id^{trimmed_id}'], ['method=listpeers']]}, description=[f'This will allow the rune to be used for id starting with {trimmed_id}, and for the method listpeers:']) - update_example(node=l1, method='commando-rune', params={'restrictions': [['method=pay'], ['pnameamountmsat<10000']]}, description=['This will allow the rune to be used for the method pay, and for the parameter amount\\_msat to be less than 10000:']) - update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid={l1.info["id"]}', f'parr0={l1.info["id"]}']]}, description=["Let's create a rune which lets a specific peer run listpeers on themselves:"]) - rune_l15 = update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid^{trimmed_id}', f'parr0^{trimmed_id}']]}, description=["This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 10 bytes of the `listpeers` parameter:"]) - update_example(node=l1, method='commando-rune', params=[rune_l15['rune'], [['time<"$(($(date +%s) + 24*60*60))"', 'rate=2']]], description=["Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:"]) - logger.info('Runes Done!') - return rune_l21 - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating runes examples: {e}') + """Covers all runes related examples""" + try: + logger.info('Runes Start...') + # Runes + trimmed_id = l1.info['id'][:20] + rune_l21 = update_example(node=l2, method='createrune', params={}, description=['This creates a fresh rune which can do anything:']) + rune_l22 = update_example(node=l2, method='createrune', params={'rune': rune_l21['rune'], 'restrictions': 'readonly'}, + description=['We can add restrictions to that rune, like so:', + '', + 'The `readonly` restriction is a short-cut for two restrictions:', + '', + '1: `[\'method^list\', \'method^get\', \'method=summary\']`: You may call list, get or summary.', + '', + '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!' + ]) + update_example(node=l2, method='createrune', params={'rune': rune_l21['rune'], 'restrictions': [['method^list', 'method^get', 'method=summary'], ['method/listdatastore']]}, description=['We can do the same manually (readonly), like so:']) + rune_l23 = update_example(node=l2, method='createrune', params={'restrictions': [[f'id^{trimmed_id}'], ['method=listpeers']]}, description=[f'This will allow the rune to be used for id starting with {trimmed_id}, and for the method listpeers:']) + rune_l24 = update_example(node=l2, method='createrune', params={'restrictions': [['method=pay'], ['pnameamountmsat<10000']]}, description=['This will allow the rune to be used for the method pay, and for the parameter amount\\_msat to be less than 10000:']) + update_example(node=l2, method='createrune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid={l1.info["id"]}', f'parr0={l1.info["id"]}']]}, description=["Let's create a rune which lets a specific peer run listpeers on themselves:"]) + rune_l25 = update_example(node=l2, method='createrune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid^{trimmed_id}', f'parr0^{trimmed_id}']]}, description=["This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 10 bytes of the `listpeers` parameter:"]) + update_example(node=l2, method='createrune', params=[rune_l25['rune'], [['time<"$(($(date +%s) + 24*60*60))"', 'rate=2']]], description=["Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:"]) + update_example(node=l2, method='commando-listrunes', params={'rune': rune_l23['rune']}) + update_example(node=l2, method='commando-listrunes', params={}) + update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'getinfo', 'params': {}}) + update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l23['rune'], 'method': 'listpeers', 'params': [l3.info['id']]}) + inv_l23 = l2.rpc.invoice('any', 'lbl_l23', 'l23 description') + update_example(node=l1, method='commando', params={'peer_id': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'bolt11': inv_l23['bolt11'], 'amount_msat': 9900}}) + update_example(node=l2, method='checkrune', params={'nodeid': l2.info['id'], 'rune': rune_l22['rune'], 'method': 'listpeers', 'params': {}}) + update_example(node=l2, method='checkrune', params={'nodeid': l2.info['id'], 'rune': rune_l24['rune'], 'method': 'pay', 'params': {'amount_msat': 9999}}) + update_example(node=l2, method='showrunes', params={'rune': rune_l21['rune']}) + update_example(node=l2, method='showrunes', params={}) + update_example(node=l2, method='commando-blacklist', params={'start': 1}) + update_example(node=l2, method='commando-blacklist', params={'start': 2, 'end': 3}) + update_example(node=l2, method='blacklistrune', params={'start': 1}) + update_example(node=l2, method='blacklistrune', params={'start': 0, 'end': 2}) + update_example(node=l2, method='blacklistrune', params={'start': 3, 'end': 4}) + + # Commando runes + rune_l11 = update_example(node=l1, method='commando-rune', params={}, description=['This creates a fresh rune which can do anything:']) + update_example(node=l1, method='commando-rune', params={'rune': rune_l11['rune'], 'restrictions': 'readonly'}, + description=['We can add restrictions to that rune, like so:', + '', + 'The `readonly` restriction is a short-cut for two restrictions:', + '', + '1: `[\'method^list\', \'method^get\', \'method=summary\']`: You may call list, get or summary.', + '', + '2: `[\'method/listdatastore\']`: But not listdatastore: that contains sensitive stuff!' + ]) + update_example(node=l1, method='commando-rune', params={'rune': rune_l11['rune'], 'restrictions': [['method^list', 'method^get', 'method=summary'], ['method/listdatastore']]}, description=['We can do the same manually (readonly), like so:']) + update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id^{trimmed_id}'], ['method=listpeers']]}, description=[f'This will allow the rune to be used for id starting with {trimmed_id}, and for the method listpeers:']) + update_example(node=l1, method='commando-rune', params={'restrictions': [['method=pay'], ['pnameamountmsat<10000']]}, description=['This will allow the rune to be used for the method pay, and for the parameter amount\\_msat to be less than 10000:']) + update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid={l1.info["id"]}', f'parr0={l1.info["id"]}']]}, description=["Let's create a rune which lets a specific peer run listpeers on themselves:"]) + rune_l15 = update_example(node=l1, method='commando-rune', params={'restrictions': [[f'id={l1.info["id"]}'], ['method=listpeers'], ['pnum=1'], [f'pnameid^{trimmed_id}', f'parr0^{trimmed_id}']]}, description=["This allows `listpeers` with 1 argument (`pnum=1`), which is either by name (`pnameid`), or position (`parr0`). We could shorten this in several ways: either allowing only positional or named parameters, or by testing the start of the parameters only. Here's an example which only checks the first 10 bytes of the `listpeers` parameter:"]) + update_example(node=l1, method='commando-rune', params=[rune_l15['rune'], [['time<"$(($(date +%s) + 24*60*60))"', 'rate=2']]], description=["Before we give this to our peer, let's add two more restrictions: that it only be usable for 24 hours from now (`time<`), and that it can only be used twice a minute (`rate=2`). `date +%s` can give us the current time in seconds:"]) + logger.info('Runes Done!') + return rune_l21 + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating runes examples: {e}') def generate_datastore_examples(l2): - """Covers all datastore related examples""" - try: - logger.info('Datastore Start...') - update_example(node=l2, method='datastore', params={'key': 'somekey', 'hex': '61', 'mode': 'create-or-append'}) - update_example(node=l2, method='datastore', params={'key': ['test', 'name'], 'string': 'saving data to the store', 'mode': 'must-create'}) - update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'foo', 'mode': 'must-create'}) - update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'bar', 'mode': 'must-append', 'generation': 0}) - update_example(node=l2, method='datastoreusage', params={}) - update_example(node=l2, method='datastoreusage', params={'key': ['test', 'name']}) - update_example(node=l2, method='datastoreusage', params={'key': 'otherkey'}) - update_example(node=l2, method='listdatastore', params={'key': ['test']}) - update_example(node=l2, method='listdatastore', params={'key': 'otherkey'}) - update_example(node=l2, method='deldatastore', params={'key': ['test', 'name']}) - update_example(node=l2, method='deldatastore', params={'key': 'otherkey', 'generation': 1}) - logger.info('Datastore Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating datastore examples: {e}') + """Covers all datastore related examples""" + try: + logger.info('Datastore Start...') + update_example(node=l2, method='datastore', params={'key': 'somekey', 'hex': '61', 'mode': 'create-or-append'}) + update_example(node=l2, method='datastore', params={'key': ['test', 'name'], 'string': 'saving data to the store', 'mode': 'must-create'}) + update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'foo', 'mode': 'must-create'}) + update_example(node=l2, method='datastore', params={'key': 'otherkey', 'string': 'bar', 'mode': 'must-append', 'generation': 0}) + update_example(node=l2, method='datastoreusage', params={}) + update_example(node=l2, method='datastoreusage', params={'key': ['test', 'name']}) + update_example(node=l2, method='datastoreusage', params={'key': 'otherkey'}) + update_example(node=l2, method='listdatastore', params={'key': ['test']}) + update_example(node=l2, method='listdatastore', params={'key': 'otherkey'}) + update_example(node=l2, method='deldatastore', params={'key': ['test', 'name']}) + update_example(node=l2, method='deldatastore', params={'key': 'otherkey', 'generation': 1}) + logger.info('Datastore Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating datastore examples: {e}') def generate_bookkeeper_examples(l2, l3, c23_chan_id): - """Generates all bookkeeper rpc examples""" - try: - logger.info('Bookkeeper Start...') - update_example(node=l2, method='funderupdate', params={}) - update_example(node=l2, method='funderupdate', params={'policy': 'fixed', 'policy_mod': '50000sat', 'min_their_funding_msat': 1000, 'per_channel_min_msat': '1000sat', 'per_channel_max_msat': '500000sat', 'fund_probability': 100, 'fuzz_percent': 0, 'leases_only': False}) - update_example(node=l2, method='bkpr-inspect', params={'account': c23_chan_id}) - update_example(node=l2, method='bkpr-dumpincomecsv', params=['koinly', 'koinly.csv']) - update_example(node=l2, method='bkpr-channelsapy', params={}) - update_example(node=l3, method='bkpr-listbalances', params={}) - update_example(node=l3, method='bkpr-listaccountevents', params={}) - update_example(node=l3, method='bkpr-listaccountevents', params=[c23_chan_id]) - update_example(node=l3, method='bkpr-listincome', params={}) - update_example(node=l3, method='bkpr-listincome', params={'consolidate_fees': False}) - logger.info('Bookkeeper Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating bookkeeper examples: {e}') + """Generates all bookkeeper rpc examples""" + try: + logger.info('Bookkeeper Start...') + update_example(node=l2, method='funderupdate', params={}) + update_example(node=l2, method='funderupdate', params={'policy': 'fixed', 'policy_mod': '50000sat', 'min_their_funding_msat': 1000, 'per_channel_min_msat': '1000sat', 'per_channel_max_msat': '500000sat', 'fund_probability': 100, 'fuzz_percent': 0, 'leases_only': False}) + update_example(node=l2, method='bkpr-inspect', params={'account': c23_chan_id}) + update_example(node=l2, method='bkpr-dumpincomecsv', params=['koinly', 'koinly.csv']) + update_example(node=l2, method='bkpr-channelsapy', params={}) + update_example(node=l3, method='bkpr-listbalances', params={}) + update_example(node=l3, method='bkpr-listaccountevents', params={}) + update_example(node=l3, method='bkpr-listaccountevents', params=[c23_chan_id]) + update_example(node=l3, method='bkpr-listincome', params={}) + update_example(node=l3, method='bkpr-listincome', params={'consolidate_fees': False}) + logger.info('Bookkeeper Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating bookkeeper examples: {e}') def generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34): - """Covers all offers and renepay related examples""" - try: - logger.info('Offers and Renepay Start...') - - # Offers & Offers Lists - offer_l21 = update_example(node=l2, method='offer', params={'amount': '10000msat', 'description': 'Fish sale!'}) - offer_l22 = update_example(node=l2, method='offer', params={'amount': '1000sat', 'description': 'Coffee', 'quantity_max': 10}) - offer_l23 = l2.rpc.offer('2000sat', 'Offer to Disable') - update_example(node=l1, method='fetchinvoice', params={'offer': offer_l21['bolt12'], 'payer_note': 'Thanks for the fish!'}) - update_example(node=l1, method='fetchinvoice', params={'offer': offer_l22['bolt12'], 'amount_msat': 2000000, 'quantity': 2}) - update_example(node=l2, method='disableoffer', params={'offer_id': offer_l23['offer_id']}) - update_example(node=l2, method='listoffers', params={'active_only': True}) - update_example(node=l2, method='listoffers', params=[offer_l23['offer_id']]) - - # Invoice Requests - inv_req_l1_l22 = update_example(node=l2, method='invoicerequest', params={'amount': '10000sat', 'description': 'Requesting for invoice', 'issuer': 'clightning store'}) - update_example(node=l2, method='disableinvoicerequest', params={'invreq_id': inv_req_l1_l22['invreq_id']}) - update_example(node=l2, method='listinvoicerequests', params=[inv_req_l1_l22['invreq_id']]) - update_example(node=l2, method='listinvoicerequests', params={}) - - # Renepay - update_example(node=l1, method='renepay', params={'invstring': inv_l21['bolt11'], 'amount_msat': 400000}) - update_example(node=l2, method='renepay', params={'invstring': inv_l34['bolt11']}) - update_example(node=l1, method='renepaystatus', params={'invstring': inv_l21['bolt11']}) - logger.info('Offers and Renepay Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating offers or renepay examples: {e}') + """Covers all offers and renepay related examples""" + try: + logger.info('Offers and Renepay Start...') + + # Offers & Offers Lists + offer_l21 = update_example(node=l2, method='offer', params={'amount': '10000msat', 'description': 'Fish sale!'}) + offer_l22 = update_example(node=l2, method='offer', params={'amount': '1000sat', 'description': 'Coffee', 'quantity_max': 10}) + offer_l23 = l2.rpc.offer('2000sat', 'Offer to Disable') + REPLACE_RESPONSE_VALUES.update({ + offer_l21['offer_id']: 'offeridl21000002100000210000021000002100000210000021000002100000', + offer_l21['bolt12']: 'lno1qgsq000000bolt12000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021', + offer_l22['offer_id']: 'offeridl22000002200000220000022000002200000220000022000002200000', + offer_l22['bolt12']: 'lno1qgsq000000bolt12000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022', + offer_l23['offer_id']: 'offeridl23000002300000230000023000002300000230000023000002300000', + offer_l23['bolt12']: 'lno1qgsq000000bolt12000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023', + }) + update_example(node=l1, method='fetchinvoice', params={'offer': offer_l21['bolt12'], 'payer_note': 'Thanks for the fish!'}) + update_example(node=l1, method='fetchinvoice', params={'offer': offer_l22['bolt12'], 'amount_msat': 2000000, 'quantity': 2}) + update_example(node=l2, method='disableoffer', params={'offer_id': offer_l23['offer_id']}) + update_example(node=l2, method='listoffers', params={'active_only': True}) + update_example(node=l2, method='listoffers', params=[offer_l23['offer_id']]) + + # Invoice Requests + inv_req_l1_l22 = update_example(node=l2, method='invoicerequest', params={'amount': '10000sat', 'description': 'Requesting for invoice', 'issuer': 'clightning store'}) + update_example(node=l2, method='disableinvoicerequest', params={'invreq_id': inv_req_l1_l22['invreq_id']}) + update_example(node=l2, method='listinvoicerequests', params=[inv_req_l1_l22['invreq_id']]) + update_example(node=l2, method='listinvoicerequests', params={}) + + # Renepay + update_example(node=l1, method='renepay', params={'invstring': inv_l21['bolt11'], 'amount_msat': 400000}) + update_example(node=l2, method='renepay', params={'invstring': inv_l34['bolt11']}) + update_example(node=l1, method='renepaystatus', params={'invstring': inv_l21['bolt11']}) + logger.info('Offers and Renepay Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating offers or renepay examples: {e}') def generate_list_examples(l1, l2, l3, c12, c23, inv_l31, inv_l32): - """Generates lists rpc examples""" - try: - logger.info('Lists Start...') - - # Transactions Lists - update_example(node=l1, method='listfunds', params={}) - update_example(node=l2, method='listforwards', params={'in_channel': c12, 'out_channel': c23, 'status': 'settled'}) - update_example(node=l2, method='listforwards', params={}) - update_example(node=l2, method='listinvoices', params={'label': 'lbl_l21'}) - update_example(node=l2, method='listinvoices', params={}) - update_example(node=l1, method='listhtlcs', params=[c12]) - update_example(node=l1, method='listhtlcs', params={}) - update_example(node=l1, method='listsendpays', params={'bolt11': inv_l31['bolt11']}) - update_example(node=l1, method='listsendpays', params={}) - update_example(node=l1, method='listtransactions', params={}) - update_example(node=l2, method='listpays', params={'bolt11': inv_l32['bolt11']}) - update_example(node=l2, method='listpays', params={}) - update_example(node=l3, method='listclosedchannels', params={}) - - # Network & Nodes Lists - update_example(node=l2, method='listconfigs', params={'config': 'network'}) - update_example(node=l2, method='listconfigs', params={'config': 'experimental-dual-fund'}) - # Schema checker error: listconfigs.json: Additional properties are not allowed ('plugin' was unexpected) - l2.rpc.jsonschemas = {} - update_example(node=l2, method='listconfigs', params={}) - update_example(node=l2, method='listsqlschemas', params={'table': 'offers'}) - update_example(node=l2, method='listsqlschemas', params=['closedchannels']) - update_example(node=l1, method='listpeerchannels', params={'id': l2.info['id']}) - update_example(node=l1, method='listpeerchannels', params={}) - update_example(node=l1, method='listchannels', params={'short_channel_id': c12}) - update_example(node=l1, method='listchannels', params={}) - update_example(node=l2, method='listnodes', params={'id': l3.info['id']}) - update_example(node=l2, method='listnodes', params={}) - update_example(node=l2, method='listpeers', params={'id': l3.info['id']}) - update_example(node=l2, method='listpeers', params={}) - logger.info('Lists Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating lists examples: {e}') + """Generates lists rpc examples""" + try: + logger.info('Lists Start...') + + # Transactions Lists + update_example(node=l1, method='listfunds', params={}) + update_example(node=l2, method='listforwards', params={'in_channel': c12, 'out_channel': c23, 'status': 'settled'}) + update_example(node=l2, method='listforwards', params={}) + update_example(node=l2, method='listinvoices', params={'label': 'lbl_l21'}) + update_example(node=l2, method='listinvoices', params={}) + update_example(node=l1, method='listhtlcs', params=[c12]) + update_example(node=l1, method='listhtlcs', params={}) + update_example(node=l1, method='listsendpays', params={'bolt11': inv_l31['bolt11']}) + update_example(node=l1, method='listsendpays', params={}) + update_example(node=l1, method='listtransactions', params={}) + update_example(node=l2, method='listpays', params={'bolt11': inv_l32['bolt11']}) + update_example(node=l2, method='listpays', params={}) + update_example(node=l3, method='listclosedchannels', params={}) + + # Network & Nodes Lists + update_example(node=l2, method='listconfigs', params={'config': 'network'}) + update_example(node=l2, method='listconfigs', params={'config': 'experimental-dual-fund'}) + # Schema checker error: listconfigs.json: Additional properties are not allowed ('plugin' was unexpected) + l2.rpc.jsonschemas = {} + update_example(node=l2, method='listconfigs', params={}) + update_example(node=l2, method='listsqlschemas', params={'table': 'offers'}) + update_example(node=l2, method='listsqlschemas', params=['closedchannels']) + update_example(node=l1, method='listpeerchannels', params={'id': l2.info['id']}) + update_example(node=l1, method='listpeerchannels', params={}) + update_example(node=l1, method='listchannels', params={'short_channel_id': c12}) + update_example(node=l1, method='listchannels', params={}) + update_example(node=l2, method='listnodes', params={'id': l3.info['id']}) + update_example(node=l2, method='listnodes', params={}) + update_example(node=l2, method='listpeers', params={'id': l3.info['id']}) + update_example(node=l2, method='listpeers', params={}) + logger.info('Lists Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating lists examples: {e}') def generate_wait_examples(l1, l2, bitcoind, executor): - """Generates wait examples""" - try: - logger.info('Wait Start...') - inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1') - inv2 = l2.rpc.invoice(2000, 'inv2', 'inv2') - inv3 = l2.rpc.invoice(3000, 'inv3', 'inv3') - inv4 = l2.rpc.invoice(4000, 'inv4', 'inv4') - inv5 = l2.rpc.invoice(5000, 'inv5', 'inv5') - - # Wait invoice - wi3 = executor.submit(l2.rpc.waitinvoice, 'inv3') - time.sleep(1) - l1.rpc.pay(inv2['bolt11']) - time.sleep(1) - wi2res = executor.submit(l2.rpc.waitinvoice, 'inv2').result(timeout=5) - update_example(node=l2, method='waitinvoice', params={'label': 'inv2'}, res=wi2res, execute=False) - - l1.rpc.pay(inv3['bolt11']) - wi3res = wi3.result(timeout=5) - update_example(node=l2, method='waitinvoice', params=['inv3'], res=wi3res, execute=False) - - # Wait any invoice - wai = executor.submit(l2.rpc.waitanyinvoice) - time.sleep(1) - l1.rpc.pay(inv5['bolt11']) - l1.rpc.pay(inv4['bolt11']) - waires = wai.result(timeout=5) - update_example(node=l2, method='waitanyinvoice', params={}, res=waires, execute=False) - pay_index = waires['pay_index'] - wai_pay_index_res = executor.submit(l2.rpc.waitanyinvoice, pay_index, 0).result(timeout=5) - update_example(node=l2, method='waitanyinvoice', params={'lastpay_index': pay_index, 'timeout': 0}, res=wai_pay_index_res, execute=False) - - # Wait with subsystem examples - update_example(node=l2, method='wait', params={'subsystem': 'invoices', 'indexname': 'created', 'nextvalue': 0}) - - wspres_l1 = l1.rpc.wait(subsystem='sendpays', indexname='created', nextvalue=0) - nextvalue = int(wspres_l1['created']) + 1 - wsp_created_l1 = executor.submit(l1.rpc.call, 'wait', {'subsystem': 'sendpays', 'indexname': 'created', 'nextvalue': nextvalue}) - wsp_updated_l1 = executor.submit(l1.rpc.call, 'wait', {'subsystem': 'sendpays', 'indexname': 'updated', 'nextvalue': nextvalue}) - time.sleep(1) - routestep = { - 'amount_msat': 1000, - 'id': l2.info['id'], - 'delay': 5, - 'channel': first_scid(l1, l2) - } - l1.rpc.sendpay([routestep], inv1['payment_hash'], payment_secret=inv1['payment_secret']) - wspc_res = wsp_created_l1.result(5) - wspu_res = wsp_updated_l1.result(5) - update_example(node=l1, method='wait', params={'subsystem': 'sendpays', 'indexname': 'created', 'nextvalue': nextvalue}, res=wspc_res, execute=False) - update_example(node=l1, method='wait', params=['sendpays', 'updated', nextvalue], res=wspu_res, execute=False) - - # Wait blockheight - curr_blockheight = l2.rpc.getinfo()['blockheight'] - update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight - 1, 'timeout': 600}) - wait_time = 60 - wbh = executor.submit(l2.rpc.waitblockheight, curr_blockheight + 1, wait_time) - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l2]) - wbhres = wbh.result(5) - update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight + 1}, res=wbhres, execute=False) - logger.info('Wait Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating wait examples: {e}') + """Generates wait examples""" + try: + logger.info('Wait Start...') + inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1') + inv2 = l2.rpc.invoice(2000, 'inv2', 'inv2') + inv3 = l2.rpc.invoice(3000, 'inv3', 'inv3') + inv4 = l2.rpc.invoice(4000, 'inv4', 'inv4') + inv5 = l2.rpc.invoice(5000, 'inv5', 'inv5') + # Wait invoice + wi3 = executor.submit(l2.rpc.waitinvoice, 'inv3') + time.sleep(1) + l1.rpc.pay(inv2['bolt11']) + time.sleep(1) + wi2res = executor.submit(l2.rpc.waitinvoice, 'inv2').result(timeout=5) + update_example(node=l2, method='waitinvoice', params={'label': 'inv2'}, res=wi2res, execute=False) + + l1.rpc.pay(inv3['bolt11']) + wi3res = wi3.result(timeout=5) + update_example(node=l2, method='waitinvoice', params=['inv3'], res=wi3res, execute=False) + + # Wait any invoice + wai = executor.submit(l2.rpc.waitanyinvoice) + time.sleep(1) + l1.rpc.pay(inv5['bolt11']) + l1.rpc.pay(inv4['bolt11']) + waires = wai.result(timeout=5) + update_example(node=l2, method='waitanyinvoice', params={}, res=waires, execute=False) + pay_index = waires['pay_index'] + wai_pay_index_res = executor.submit(l2.rpc.waitanyinvoice, pay_index, 0).result(timeout=5) + update_example(node=l2, method='waitanyinvoice', params={'lastpay_index': pay_index, 'timeout': 0}, res=wai_pay_index_res, execute=False) + + # Wait with subsystem examples + update_example(node=l2, method='wait', params={'subsystem': 'invoices', 'indexname': 'created', 'nextvalue': 0}) + + wspres_l1 = l1.rpc.wait(subsystem='sendpays', indexname='created', nextvalue=0) + nextvalue = int(wspres_l1['created']) + 1 + wsp_created_l1 = executor.submit(l1.rpc.call, 'wait', {'subsystem': 'sendpays', 'indexname': 'created', 'nextvalue': nextvalue}) + wsp_updated_l1 = executor.submit(l1.rpc.call, 'wait', {'subsystem': 'sendpays', 'indexname': 'updated', 'nextvalue': nextvalue}) + time.sleep(1) + routestep = { + 'amount_msat': 1000, + 'id': l2.info['id'], + 'delay': 5, + 'channel': first_scid(l1, l2) + } + l1.rpc.sendpay([routestep], inv1['payment_hash'], payment_secret=inv1['payment_secret']) + wspc_res = wsp_created_l1.result(5) + wspu_res = wsp_updated_l1.result(5) + update_example(node=l1, method='wait', params={'subsystem': 'sendpays', 'indexname': 'created', 'nextvalue': nextvalue}, res=wspc_res, execute=False) + update_example(node=l1, method='wait', params=['sendpays', 'updated', nextvalue], res=wspu_res, execute=False) + + # Wait blockheight + curr_blockheight = l2.rpc.getinfo()['blockheight'] + update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight - 1, 'timeout': 600}) + wait_time = 60 + wbh = executor.submit(l2.rpc.waitblockheight, curr_blockheight + 1, wait_time) + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l2]) + wbhres = wbh.result(5) + update_example(node=l2, method='waitblockheight', params={'blockheight': curr_blockheight + 1}, res=wbhres, execute=False) + logger.info('Wait Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating wait examples: {e}') def generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, rune_l21, bitcoind): - """Generates other utilities examples""" - try: - logger.info('General Utils Start...') - global CWD, FUND_CHANNEL_AMOUNT_SAT - update_example(node=l2, method='batching', params={'enable': True}) - update_example(node=l2, method='ping', params={'id': l1.info['id'], 'len': 128, 'pongbytes': 128}) - update_example(node=l2, method='ping', params={'id': l3.info['id'], 'len': 1000, 'pongbytes': 65535}) - update_example(node=l2, method='help', params={'command': 'pay'}) - update_example(node=l2, method='help', params={'command': 'dev'}) - update_example(node=l2, method='setconfig', params=['autoclean-expiredinvoices-age', 300]) - update_example(node=l2, method='setconfig', params={'config': 'min-capacity-sat', 'val': 500000}) - update_example(node=l2, method='addgossip', params={'message': '010078c3314666731e339c0b8434f7824797a084ed7ca3655991a672da068e2c44cb53b57b53a296c133bc879109a8931dc31e6913a4bda3d58559b99b95663e6d52775579447ef5526300e1bb89bc6af8557aa1c3810a91814eafad6d103f43182e17b16644cb38c1d58a8edd094303959a9f1f9d42ff6c32a21f9c118531f512c8679cabaccc6e39dbd95a4dac90e75a258893c3aa3f733d1b8890174d5ddea8003cadffe557773c54d2c07ca1d535c4bf85885f879ae466c16a516e8ffcfec1740e3f5c98ca9ce13f452e867befef5517f306ed6aa5119b79059bcc6f68f329986b665d16de7bc7df64e3537504c91eeabe0e59d3a2b68e4216ead2b0f6e3ef7c000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f0000670000010000022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d590266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351802e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5702324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b'}) - update_example(node=l2, method='addgossip', params={'message': '0102420526c8eb62ec6999bbee5f1de4841cab734374ec642b7deeb0259e76220bf82e97a241c907d5ff52019655f7f9a614c285bb35690f3a1a2b928d7b2349a79e06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f000067000001000065b32a0e010100060000000000000000000000010000000a000000003b023380'}) - update_example(node=l2, method='deprecations', params={'enable': True}) - update_example(node=l2, method='deprecations', params={'enable': False}) - update_example(node=l2, method='getlog', params={'level': 'unusual'}) - update_example(node=l2, method='notifications', params={'enable': True}) - update_example(node=l2, method='notifications', params={'enable': False}) - update_example(node=l2, method='check', params={'command_to_check': 'sendpay', 'route': [{'amount_msat': 1011, 'id': l3.info['id'], 'delay': 20, 'channel': c23}, {'amount_msat': 1000, 'id': l4.info['id'], 'delay': 10, 'channel': c34}], 'payment_hash': '0000000000000000000000000000000000000000000000000000000000000000'}) - update_example(node=l2, method='check', params={'command_to_check': 'dev', 'subcommand': 'slowcmd', 'msec': 1000}) - update_example(node=l6, method='check', params={'command_to_check': 'recover', 'hsmsecret': '6c696768746e696e672d31000000000000000000000000000000000000000000'}) - update_example(node=l2, method='plugin', params={'subcommand': 'start', 'plugin': os.path.join(CWD, 'tests/plugins/allow_even_msgs.py')}) - update_example(node=l2, method='plugin', params={'subcommand': 'stop', 'plugin': os.path.join(CWD, 'tests/plugins/allow_even_msgs.py')}) - update_example(node=l2, method='plugin', params=['list']) - update_example(node=l2, method='sendcustommsg', params={'node_id': l3.info['id'], 'msg': '77770012'}) - - # Wallet Utils - address_l21 = update_example(node=l2, method='newaddr', params={}) - address_l22 = update_example(node=l2, method='newaddr', params={'addresstype': 'p2tr'}) - withdraw_l21 = update_example(node=l2, method='withdraw', params={'destination': address_l21['bech32'], 'satoshi': 555555}) - - bitcoind.generate_block(4, wait_for_mempool=[withdraw_l21['txid']]) - sync_blockheight(bitcoind, [l2]) - - funds_l2 = l2.rpc.listfunds() - withdraw_l22 = update_example(node=l2, method='withdraw', params={'destination': address_l22['p2tr'], 'satoshi': 'all', 'feerate': '20000perkb', 'minconf': 0, 'utxos': [f"{funds_l2['outputs'][2]['txid']}:{funds_l2['outputs'][2]['output']}"]}) - bitcoind.generate_block(4, wait_for_mempool=[withdraw_l22['txid']]) - update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr()['bech32']: '2222000msat'}, {l1.rpc.newaddr()['bech32']: '3333000msat'}]}) - update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}, {l2.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l4.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}]}) - l2.rpc.connect(l4.info['id'], 'localhost', l4.port) - l2.rpc.connect(l5.info['id'], 'localhost', l5.port) - update_example(node=l2, method='disconnect', params={'id': l4.info['id'], 'force': False}) - update_example(node=l2, method='disconnect', params={'id': l5.info['id'], 'force': True}) - update_example(node=l2, method='parsefeerate', params=['unilateral_close']) - update_example(node=l2, method='parsefeerate', params=['9999perkw']) - update_example(node=l2, method='parsefeerate', params=[10000]) - update_example(node=l2, method='parsefeerate', params=['urgent']) - update_example(node=l2, method='feerates', params={'style': 'perkw'}) - update_example(node=l2, method='feerates', params={'style': 'perkb'}) - update_example(node=l2, method='signmessage', params={'message': 'this is a test!'}) - update_example(node=l2, method='signmessage', params={'message': 'message for you'}) - update_example(node=l2, method='checkmessage', params={'message': 'testcase to check new rpc error', 'zbase': 'd66bqz3qsku5fxtqsi37j11pci47ydxa95iusphutggz9ezaxt56neh77kxe5hyr41kwgkncgiu94p9ecxiexgpgsz8daoq4tw8kj8yx', 'pubkey': '03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7'}) - update_example(node=l2, method='checkmessage', params={'message': 'this is a test!', 'zbase': 'd6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7'}) - update_example(node=l2, method='decodepay', params={'bolt11': inv_l11['bolt11']}) - update_example(node=l2, method='decode', params=[rune_l21['rune']]) - update_example(node=l2, method='decode', params=[inv_l22['bolt11']]) - - # PSBT - amount1 = 1000000 - amount2 = 3333333 - result = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount1, 'locktime': 111}, description=[f'Here is a command to make a PSBT with a {amount1:,} sat output that leads to the on-chain wallet:']) - update_example(node=l1, method='setpsbtversion', params={'psbt': result['psbt'], 'version': 0}) - result = l1.rpc.addpsbtoutput(amount2, result['psbt']) - update_example(node=l1, method='addpsbtoutput', params=[amount2, result['psbt']], res=result, execute=False) - dest = l1.rpc.newaddr('p2tr')['p2tr'] - result = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount2, 'initialpsbt': result['psbt'], 'destination': dest}) - l1.rpc.addpsbtoutput(amount2, result['psbt'], None, dest) - update_example(node=l1, method='setpsbtversion', params=[result['psbt'], 2]) - - out_total = Millisatoshi(3000000 * 1000) - funding = l1.rpc.fundpsbt(satoshi=out_total, feerate=7500, startweight=42) - psbt = bitcoind.rpc.decodepsbt(funding['psbt']) - saved_input = psbt['tx']['vin'][0] - l1.rpc.unreserveinputs(funding['psbt']) - psbt = bitcoind.rpc.createpsbt([{'txid': saved_input['txid'], - 'vout': saved_input['vout']}], []) - out_1_ms = Millisatoshi(funding['excess_msat']) - output_psbt = bitcoind.rpc.createpsbt([], [{'bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg': float((out_total + out_1_ms).to_btc())}]) - fullpsbt = bitcoind.rpc.joinpsbts([funding['psbt'], output_psbt]) - l1.rpc.reserveinputs(fullpsbt) - signed_psbt = l1.rpc.signpsbt(fullpsbt)['signed_psbt'] - update_example(node=l1, method='sendpsbt', params={'psbt': signed_psbt}) - - # SQL - update_example(node=l1, filename='sql-template', method='sql', params={'query': 'SELECT id FROM peers'}, description=['A simple peers selection query:']) - update_example(node=l1, filename='sql-template', method='sql', params=[f'SELECT nodeid,last_timestamp FROM nodes WHERE last_timestamp>=1669578892'], description=["A statement containing `=` needs `-o` in shell:"]) - update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid != x'{l3.info['id']}'"], description=['If you want to get specific nodeid values from the nodes table:']) - update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid IN (x'{l1.info['id']}', x'{l3.info['id']}')"], description=["If you want to compare a BLOB column, `x'hex'` or `X'hex'` are needed:"]) - update_example(node=l1, filename='sql-template', method='sql', params=['SELECT peer_id, short_channel_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid'], description=['Related tables are usually referenced by JOIN:']) - update_example(node=l2, filename='sql-template', method='sql', params=['SELECT COUNT(*) FROM forwards'], description=["Simple function usage, in this case COUNT. Strings inside arrays need \", and ' to protect them from the shell:"]) - update_example(node=l1, filename='sql-template', method='sql', params=['SELECT * from peerchannels_features']) - logger.info('General Utils Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating utils examples: {e}') + """Generates other utilities examples""" + try: + logger.info('General Utils Start...') + global CWD, FUND_CHANNEL_AMOUNT_SAT + update_example(node=l2, method='batching', params={'enable': True}) + update_example(node=l2, method='ping', params={'id': l1.info['id'], 'len': 128, 'pongbytes': 128}) + update_example(node=l2, method='ping', params={'id': l3.info['id'], 'len': 1000, 'pongbytes': 65535}) + update_example(node=l2, method='help', params={'command': 'pay'}) + update_example(node=l2, method='help', params={'command': 'dev'}) + update_example(node=l2, method='setconfig', params=['autoclean-expiredinvoices-age', 300]) + update_example(node=l2, method='setconfig', params={'config': 'min-capacity-sat', 'val': 500000}) + update_example(node=l2, method='addgossip', params={'message': '010078c3314666731e339c0b8434f7824797a084ed7ca3655991a672da068e2c44cb53b57b53a296c133bc879109a8931dc31e6913a4bda3d58559b99b95663e6d52775579447ef5526300e1bb89bc6af8557aa1c3810a91814eafad6d103f43182e17b16644cb38c1d58a8edd094303959a9f1f9d42ff6c32a21f9c118531f512c8679cabaccc6e39dbd95a4dac90e75a258893c3aa3f733d1b8890174d5ddea8003cadffe557773c54d2c07ca1d535c4bf85885f879ae466c16a516e8ffcfec1740e3f5c98ca9ce13f452e867befef5517f306ed6aa5119b79059bcc6f68f329986b665d16de7bc7df64e3537504c91eeabe0e59d3a2b68e4216ead2b0f6e3ef7c000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f0000670000010000022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d590266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351802e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5702324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b'}) + update_example(node=l2, method='addgossip', params={'message': '0102420526c8eb62ec6999bbee5f1de4841cab734374ec642b7deeb0259e76220bf82e97a241c907d5ff52019655f7f9a614c285bb35690f3a1a2b928d7b2349a79e06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f000067000001000065b32a0e010100060000000000000000000000010000000a000000003b023380'}) + update_example(node=l2, method='deprecations', params={'enable': True}) + update_example(node=l2, method='deprecations', params={'enable': False}) + update_example(node=l2, method='getlog', params={'level': 'unusual'}) + update_example(node=l2, method='notifications', params={'enable': True}) + update_example(node=l2, method='notifications', params={'enable': False}) + update_example(node=l2, method='check', params={'command_to_check': 'sendpay', 'route': [{'amount_msat': 1011, 'id': l3.info['id'], 'delay': 20, 'channel': c23}, {'amount_msat': 1000, 'id': l4.info['id'], 'delay': 10, 'channel': c34}], 'payment_hash': '0000000000000000000000000000000000000000000000000000000000000000'}) + update_example(node=l2, method='check', params={'command_to_check': 'dev', 'subcommand': 'slowcmd', 'msec': 1000}) + update_example(node=l6, method='check', params={'command_to_check': 'recover', 'hsmsecret': '6c696768746e696e672d31000000000000000000000000000000000000000000'}) + update_example(node=l2, method='plugin', params={'subcommand': 'start', 'plugin': os.path.join(CWD, 'tests/plugins/allow_even_msgs.py')}) + update_example(node=l2, method='plugin', params={'subcommand': 'stop', 'plugin': os.path.join(CWD, 'tests/plugins/allow_even_msgs.py')}) + update_example(node=l2, method='plugin', params=['list']) + update_example(node=l2, method='sendcustommsg', params={'node_id': l3.info['id'], 'msg': '77770012'}) + + # Wallet Utils + address_l21 = update_example(node=l2, method='newaddr', params={}) + address_l22 = update_example(node=l2, method='newaddr', params={'addresstype': 'p2tr'}) + withdraw_l21 = update_example(node=l2, method='withdraw', params={'destination': address_l21['bech32'], 'satoshi': 555555}) + + bitcoind.generate_block(4, wait_for_mempool=[withdraw_l21['txid']]) + sync_blockheight(bitcoind, [l2]) + + funds_l2 = l2.rpc.listfunds() + withdraw_l22 = update_example(node=l2, method='withdraw', params={'destination': address_l22['p2tr'], 'satoshi': 'all', 'feerate': '20000perkb', 'minconf': 0, 'utxos': [f"{funds_l2['outputs'][2]['txid']}:{funds_l2['outputs'][2]['output']}"]}) + bitcoind.generate_block(4, wait_for_mempool=[withdraw_l22['txid']]) + update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr()['bech32']: '2222000msat'}, {l1.rpc.newaddr()['bech32']: '3333000msat'}]}) + update_example(node=l2, method='multiwithdraw', params={'outputs': [{l1.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}, {l2.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l3.rpc.newaddr()['bech32']: 1000}, {l4.rpc.newaddr('p2tr')['p2tr']: 1000}, {l1.rpc.newaddr()['bech32']: 1000}]}) + l2.rpc.connect(l4.info['id'], 'localhost', l4.port) + l2.rpc.connect(l5.info['id'], 'localhost', l5.port) + update_example(node=l2, method='disconnect', params={'id': l4.info['id'], 'force': False}) + update_example(node=l2, method='disconnect', params={'id': l5.info['id'], 'force': True}) + update_example(node=l2, method='parsefeerate', params=['unilateral_close']) + update_example(node=l2, method='parsefeerate', params=['9999perkw']) + update_example(node=l2, method='parsefeerate', params=[10000]) + update_example(node=l2, method='parsefeerate', params=['urgent']) + update_example(node=l2, method='feerates', params={'style': 'perkw'}) + update_example(node=l2, method='feerates', params={'style': 'perkb'}) + update_example(node=l2, method='signmessage', params={'message': 'this is a test!'}) + update_example(node=l2, method='signmessage', params={'message': 'message for you'}) + update_example(node=l2, method='checkmessage', params={'message': 'testcase to check new rpc error', 'zbase': 'd66bqz3qsku5fxtqsi37j11pci47ydxa95iusphutggz9ezaxt56neh77kxe5hyr41kwgkncgiu94p9ecxiexgpgsz8daoq4tw8kj8yx', 'pubkey': '03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7'}) + update_example(node=l2, method='checkmessage', params={'message': 'this is a test!', 'zbase': 'd6tqaeuonjhi98mmont9m4wag7gg4krg1f4txonug3h31e9h6p6k6nbwjondnj46dkyausobstnk7fhyy998bhgc1yr98dfmhb4k54d7'}) + update_example(node=l2, method='decodepay', params={'bolt11': inv_l11['bolt11']}) + update_example(node=l2, method='decode', params=[rune_l21['rune']]) + update_example(node=l2, method='decode', params=[inv_l22['bolt11']]) + + # PSBT + amount1 = 1000000 + amount2 = 3333333 + result = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount1, 'locktime': 111}, description=[f'Here is a command to make a PSBT with a {amount1:,} sat output that leads to the on-chain wallet:']) + update_example(node=l1, method='setpsbtversion', params={'psbt': result['psbt'], 'version': 0}) + result = l1.rpc.addpsbtoutput(amount2, result['psbt']) + update_example(node=l1, method='addpsbtoutput', params=[amount2, result['psbt']], res=result, execute=False) + dest = l1.rpc.newaddr('p2tr')['p2tr'] + result = update_example(node=l1, method='addpsbtoutput', params={'satoshi': amount2, 'initialpsbt': result['psbt'], 'destination': dest}) + l1.rpc.addpsbtoutput(amount2, result['psbt'], None, dest) + update_example(node=l1, method='setpsbtversion', params=[result['psbt'], 2]) + + out_total = Millisatoshi(3000000 * 1000) + funding = l1.rpc.fundpsbt(satoshi=out_total, feerate=7500, startweight=42) + psbt = bitcoind.rpc.decodepsbt(funding['psbt']) + saved_input = psbt['tx']['vin'][0] + l1.rpc.unreserveinputs(funding['psbt']) + psbt = bitcoind.rpc.createpsbt([{'txid': saved_input['txid'], + 'vout': saved_input['vout']}], []) + out_1_ms = Millisatoshi(funding['excess_msat']) + output_psbt = bitcoind.rpc.createpsbt([], [{'bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg': float((out_total + out_1_ms).to_btc())}]) + fullpsbt = bitcoind.rpc.joinpsbts([funding['psbt'], output_psbt]) + l1.rpc.reserveinputs(fullpsbt) + signed_psbt = l1.rpc.signpsbt(fullpsbt)['signed_psbt'] + update_example(node=l1, method='sendpsbt', params={'psbt': signed_psbt}) + + # SQL + update_example(node=l1, filename='sql-template', method='sql', params={'query': 'SELECT id FROM peers'}, description=['A simple peers selection query:']) + update_example(node=l1, filename='sql-template', method='sql', params=[f'SELECT nodeid,last_timestamp FROM nodes WHERE last_timestamp>=1669578892'], description=["A statement containing `=` needs `-o` in shell:"]) + update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid != x'{l3.info['id']}'"], description=['If you want to get specific nodeid values from the nodes table:']) + update_example(node=l1, filename='sql-template', method='sql', params=[f"SELECT nodeid FROM nodes WHERE nodeid IN (x'{l1.info['id']}', x'{l3.info['id']}')"], description=["If you want to compare a BLOB column, `x'hex'` or `X'hex'` are needed:"]) + update_example(node=l1, filename='sql-template', method='sql', params=['SELECT peer_id, short_channel_id, to_us_msat, total_msat, peerchannels_status.status FROM peerchannels INNER JOIN peerchannels_status ON peerchannels_status.row = peerchannels.rowid'], description=['Related tables are usually referenced by JOIN:']) + update_example(node=l2, filename='sql-template', method='sql', params=['SELECT COUNT(*) FROM forwards'], description=["Simple function usage, in this case COUNT. Strings inside arrays need \", and ' to protect them from the shell:"]) + update_example(node=l1, filename='sql-template', method='sql', params=['SELECT * from peerchannels_features']) + logger.info('General Utils Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating utils examples: {e}') def generate_splice_examples(node_factory, bitcoind): - """Generates splice related examples""" - try: - logger.info('Splice Start...') - global FUND_WALLET_AMOUNT_SAT, FUND_CHANNEL_AMOUNT_SAT - # Basic setup for l7->l8 - options = [ - { - 'experimental-splicing': None, - 'allow-deprecated-apis': True, - 'allow_bad_gossip': True, - 'broken_log': '.*', - 'dev-bitcoind-poll': 3, - }.copy() - for i in range(2) - ] - l7, l8 = node_factory.get_nodes(2, opts=options) - l7.fundwallet(FUND_WALLET_AMOUNT_SAT) - l7.rpc.connect(l8.info['id'], 'localhost', l8.port) - c1112, _ = l7.fundchannel(l8, FUND_CHANNEL_AMOUNT_SAT) - mine_funding_to_announce(bitcoind, [l7, l8]) - l7.wait_channel_active(c1112) - chan_id = l7.get_channel_id(l8) - - # Splice - funds_result = l7.rpc.fundpsbt('109000sat', 'slow', 166, excess_as_change=True) - result = update_example(node=l7, method='splice_init', params={'channel_id': chan_id, 'relative_amount': 100000, 'initialpsbt': funds_result['psbt']}) - result = update_example(node=l7, method='splice_update', params={'channel_id': chan_id, 'psbt': result['psbt']}) - result = l7.rpc.signpsbt(result['psbt']) - result = update_example(node=l7, method='splice_signed', params={'channel_id': chan_id, 'psbt': result['signed_psbt']}) - - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l7]) - l7.daemon.wait_for_log(' to CHANNELD_NORMAL') - time.sleep(1) - - # Splice out - funds_result = l7.rpc.addpsbtoutput(100000) - - # Pay with fee by subtracting 5000 from channel balance - result = update_example(node=l7, method='splice_init', params=[chan_id, -105000, funds_result['psbt']]) - result = update_example(node=l7, method='splice_update', params=[chan_id, result['psbt']]) - result = update_example(node=l7, method='splice_signed', params=[chan_id, result['psbt']]) - update_example(node=l7, method='stop', params={}) - logger.info('Splice Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating splicing examples: {e}') + """Generates splice related examples""" + try: + logger.info('Splice Start...') + global FUND_WALLET_AMOUNT_SAT, FUND_CHANNEL_AMOUNT_SAT + # Basic setup for l7->l8 + options = [ + { + 'experimental-splicing': None, + 'allow-deprecated-apis': True, + 'allow_bad_gossip': True, + 'broken_log': '.*', + 'dev-bitcoind-poll': 3, + }.copy() + for i in range(2) + ] + l7, l8 = node_factory.get_nodes(2, opts=options) + l7.fundwallet(FUND_WALLET_AMOUNT_SAT) + l7.rpc.connect(l8.info['id'], 'localhost', l8.port) + c78, c78res = l7.fundchannel(l8, FUND_CHANNEL_AMOUNT_SAT) + mine_funding_to_announce(bitcoind, [l7, l8]) + l7.wait_channel_active(c78) + chan_id = l7.get_channel_id(l8) + REPLACE_RESPONSE_VALUES.update({ + l7.info['alias']: 'SILENTTRINITY', + l7.info['binding'][0]['port']: 19740, + f'127.0.0.1:{l7.info["binding"][0]["port"]}': '127.0.0.1:19740', + l8.info['alias']: 'GREENPLOW', + l8.info['binding'][0]['port']: 19741, + f'127.0.0.1:{l8.info["binding"][0]["port"]}': '127.0.0.1:19741', + c78res['txid']: 'txidchannel07800007800007800007800007800007800007800007800007800', + c78res['channel_id']: 'channelid0780000780000780000780000780000780000780000780000780000', + }) + # Splice + funds_result = l7.rpc.fundpsbt('109000sat', 'slow', 166, excess_as_change=True) + result = update_example(node=l7, method='splice_init', params={'channel_id': chan_id, 'relative_amount': 100000, 'initialpsbt': funds_result['psbt']}) + result = update_example(node=l7, method='splice_update', params={'channel_id': chan_id, 'psbt': result['psbt']}) + result = l7.rpc.signpsbt(result['psbt']) + result = update_example(node=l7, method='splice_signed', params={'channel_id': chan_id, 'psbt': result['signed_psbt']}) + + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l7]) + l7.daemon.wait_for_log(' to CHANNELD_NORMAL') + time.sleep(1) + + # Splice out + funds_result = l7.rpc.addpsbtoutput(100000) + + # Pay with fee by subtracting 5000 from channel balance + result = update_example(node=l7, method='splice_init', params=[chan_id, -105000, funds_result['psbt']]) + result = update_example(node=l7, method='splice_update', params=[chan_id, result['psbt']]) + result = update_example(node=l7, method='splice_signed', params=[chan_id, result['psbt']]) + update_example(node=l7, method='stop', params={}) + logger.info('Splice Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating splicing examples: {e}') def generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5): - """Generates fundchannel and openchannel related examples""" - try: - logger.info('Channels Start...') - global FUND_WALLET_AMOUNT_SAT, FUND_CHANNEL_AMOUNT_SAT - # Basic setup for l9->l10 for fundchannel examples - options = [ - { - 'may_reconnect': True, - 'dev-no-reconnect': None, - 'allow-deprecated-apis': True, - 'allow_bad_gossip': True, - 'broken_log': '.*', - 'dev-bitcoind-poll': 3, - }.copy() - for i in range(2) - ] - l9, l10 = node_factory.get_nodes(2, opts=options) - amount = 2 ** 24 - l9.fundwallet(amount + 10000000) - bitcoind.generate_block(1) - wait_for(lambda: len(l9.rpc.listfunds()["outputs"]) != 0) - l9.rpc.connect(l10.info['id'], 'localhost', l10.port) - - fund_start = update_example(node=l9, method='fundchannel_start', params=[l10.info['id'], amount]) - tx_prep = update_example(node=l9, method='txprepare', params=[[{fund_start['funding_address']: amount}]]) - update_example(node=l9, method='fundchannel_cancel', params=[l10.info['id']]) - update_example(node=l9, method='txdiscard', params=[tx_prep['txid']]) - fund_start = update_example(node=l9, method='fundchannel_start', params={'id': l10.info['id'], 'amount': amount}) - tx_prep = update_example(node=l9, method='txprepare', params={'outputs': [{fund_start['funding_address']: amount}]}) - update_example(node=l9, method='fundchannel_complete', params=[l10.info['id'], tx_prep['psbt']]) - update_example(node=l9, method='txsend', params=[tx_prep['txid']]) - l9.rpc.close(l10.info['id']) - - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l9]) - - amount = 1000000 - fund_start = l9.rpc.fundchannel_start(l10.info['id'], amount) - tx_prep = l9.rpc.txprepare([{fund_start['funding_address']: amount}]) - update_example(node=l9, method='fundchannel_cancel', params={'id': l10.info['id']}) - update_example(node=l9, method='txdiscard', params={'txid': tx_prep['txid']}) - funding_addr = l9.rpc.fundchannel_start(l10.info['id'], amount)['funding_address'] - tx_prep = l9.rpc.txprepare([{funding_addr: amount}]) - update_example(node=l9, method='fundchannel_complete', params={'id': l10.info['id'], 'psbt': tx_prep['psbt']}) - update_example(node=l9, method='txsend', params={'txid': tx_prep['txid']}) - l9.rpc.close(l10.info['id']) - - # Basic setup for l11->l12 for openchannel examples - options = [ - { - 'experimental-dual-fund': None, - 'may_reconnect': True, - 'dev-no-reconnect': None, - 'allow_warning': True, - 'allow-deprecated-apis': True, - 'allow_bad_gossip': True, - 'broken_log': '.*', - 'dev-bitcoind-poll': 3, - }.copy() - for i in range(2) - ] - l11, l12 = node_factory.get_nodes(2, opts=options) - l11.fundwallet(FUND_WALLET_AMOUNT_SAT) - l11.rpc.connect(l12.info['id'], 'localhost', l12.port) - c78res = l11.rpc.fundchannel(l12.info['id'], FUND_CHANNEL_AMOUNT_SAT) - chan_id = c78res['channel_id'] - vins = bitcoind.rpc.decoderawtransaction(c78res['tx'])['vin'] - assert(only_one(vins)) - prev_utxos = ["{}:{}".format(vins[0]['txid'], vins[0]['vout'])] - - l11.daemon.wait_for_log(' to DUALOPEND_AWAITING_LOCKIN') - chan = only_one(l11.rpc.listpeerchannels(l12.info['id'])['channels']) - rate = int(chan['feerate']['perkw']) - next_feerate = '{}perkw'.format(rate * 4) - - # Initiate an RBF - startweight = 42 + 172 - initpsbt = update_example(node=l11, method='utxopsbt', params=[FUND_CHANNEL_AMOUNT_SAT, next_feerate, startweight, prev_utxos, None, True, None, None, True]) - bump = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT, initpsbt['psbt'], next_feerate]) - - update_example(node=l11, method='openchannel_abort', params={'channel_id': chan_id}) - bump = update_example(node=l11, method='openchannel_bump', params={'channel_id': chan_id, 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': initpsbt['psbt'], 'funding_feerate': next_feerate}) - update = update_example(node=l11, method='openchannel_update', params={'channel_id': chan_id, 'psbt': bump['psbt']}) - signed = update_example(node=l11, method='signpsbt', params={'psbt': update['psbt']}) - update_example(node=l11, method='openchannel_signed', params={'channel_id': chan_id, 'signed_psbt': signed['signed_psbt']}) - - # 5x the feerate to beat the min-relay fee - chan = only_one(l11.rpc.listpeerchannels(l12.info['id'])['channels']) - rate = int(chan['feerate']['perkw']) - next_feerate = '{}perkw'.format(rate * 5) - - # Another RBF with double the channel amount - startweight = 42 + 172 - initpsbt = update_example(node=l11, method='utxopsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT * 2, 'feerate': next_feerate, 'startweight': startweight, 'utxos': prev_utxos, 'reservedok': True, 'excess_as_change': True}) - bump = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT * 2, initpsbt['psbt'], next_feerate]) - update = update_example(node=l11, method='openchannel_update', params=[chan_id, bump['psbt']]) - signed_psbt = update_example(node=l11, method='signpsbt', params=[update['psbt']])['signed_psbt'] - update_example(node=l11, method='openchannel_signed', params=[chan_id, signed_psbt]) - - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l11]) - l11.daemon.wait_for_log(' to CHANNELD_NORMAL') - - # Fundpsbt, channelopen init, abort, unreserve - psbt_init = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT, 'feerate': '253perkw', 'startweight': 250, 'reserve': 0}) - start = update_example(node=l11, method='openchannel_init', params={'id': l12.info['id'], 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': psbt_init['psbt']}) - l11.rpc.openchannel_abort(start['channel_id']) - update_example(node=l11, method='unreserveinputs', params={'psbt': psbt_init['psbt'], 'reserve': 200}) - - psbt_init = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT // 2, 'feerate': 'urgent', 'startweight': 166, 'reserve': 0, 'excess_as_change': True, 'min_witness_weight': 110}) - start = update_example(node=l11, method='openchannel_init', params=[l12.info['id'], FUND_CHANNEL_AMOUNT_SAT // 2, psbt_init['psbt']]) - l11.rpc.openchannel_abort(start['channel_id']) - update_example(node=l11, method='unreserveinputs', params=[psbt_init['psbt']]) - - # Reserveinputs - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l11]) - outputs = l11.rpc.listfunds()['outputs'] - psbt_1 = bitcoind.rpc.createpsbt([{'txid': outputs[0]['txid'], 'vout': outputs[0]['output']}], []) - update_example(node=l11, method='reserveinputs', params={'psbt': psbt_1}) - l11.rpc.unreserveinputs(psbt_1) - psbt_2 = bitcoind.rpc.createpsbt([{'txid': outputs[1]['txid'], 'vout': outputs[1]['output']}], []) - update_example(node=l11, method='reserveinputs', params={'psbt': psbt_2}) - l11.rpc.unreserveinputs(psbt_2) - - # Multifundchannel 1 - l3.rpc.connect(l5.info['id'], 'localhost', l5.port) - l4.rpc.connect(l1.info['id'], 'localhost', l1.port) - c35res = update_example(node=l3, method='fundchannel', params={'id': l5.info['id'], 'amount': FUND_CHANNEL_AMOUNT_SAT, 'announce': True}) - outputs = l4.rpc.listfunds()['outputs'] - utxo = f"{outputs[0]['txid']}:{outputs[0]['output']}" - c41res = update_example(node=l4, method='fundchannel', - params={'id': l1.info['id'], 'amount': 'all', 'feerate': 'normal', 'push_msat': 100000, 'utxos': [utxo]}, - description=[f'This example shows how to to open new channel with peer {l1.info["id"]} from one whole utxo {utxo} (you can use **listfunds** command to get txid and vout):']) - # Close newly funded channels to bring the setup back to initial state - l3.rpc.close(c35res['channel_id']) - print(f'c41res: {c41res}') - l4.rpc.close(c41res['channel_id']) - l3.rpc.disconnect(l5.info['id'], True) - l4.rpc.disconnect(l1.info['id'], True) - - # Multifundchannel 2 - l1.fundwallet(10**8) - l1.rpc.connect(l3.info['id'], 'localhost', l3.port) - l1.rpc.connect(l4.info['id'], 'localhost', l4.port) - l1.rpc.connect(l5.info['id'], 'localhost', l5.port) - multifund_res1 = update_example(node=l1, method='multifundchannel', params={ - 'destinations': - [ - { - 'id': f'{l3.info["id"]}@127.0.0.1:{l3.port}', - 'amount': '20000sat' - }, - { - 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', - 'amount': '0.0003btc' - }, - { - 'id': f'{l5.info["id"]}@127.0.0.1:{l5.port}', - 'amount': 'all' - } - ], - 'feerate': '10000perkw', - 'commitment_feerate': '2000perkw' - }, description=[ - 'This example opens three channels at once, with amounts 20,000 sats, 30,000 sats', - 'and the final channel using all remaining funds (actually, capped at 16,777,215 sats', - 'because large-channels is not enabled):' - ]) - for channel in multifund_res1['channel_ids']: - l1.rpc.close(channel['channel_id']) - l1.fundwallet(10**8) - multifund_res2 = update_example(node=l1, method='multifundchannel', params={ - 'destinations': - [ - { - 'id': f'03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:{l3.port}', - 'amount': 50000 - }, - { - 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', - 'amount': 50000 - }, - { - 'id': f'{l1.info["id"]}@127.0.0.1:{l1.port}', - 'amount': 50000 - } - ], 'minchannels': 1 - }) - # Close newly funded channels to bring the setup back to initial state - for channel in multifund_res2['channel_ids']: - l1.rpc.close(channel['channel_id']) - l1.rpc.disconnect(l3.info['id'], True) - l1.rpc.disconnect(l4.info['id'], True) - l1.rpc.disconnect(l5.info['id'], True) - bitcoind.generate_block(1) - sync_blockheight(bitcoind, [l1, l3, l4, l5]) - logger.info('Channels Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating fundchannel and openchannel examples: {e}') + """Generates fundchannel and openchannel related examples""" + try: + logger.info('Channels Start...') + global FUND_WALLET_AMOUNT_SAT, FUND_CHANNEL_AMOUNT_SAT + # Basic setup for l9->l10 for fundchannel examples + options = [ + { + 'may_reconnect': True, + 'dev-no-reconnect': None, + 'allow-deprecated-apis': True, + 'allow_bad_gossip': True, + 'broken_log': '.*', + 'dev-bitcoind-poll': 3, + }.copy() + for i in range(2) + ] + l9, l10 = node_factory.get_nodes(2, opts=options) + REPLACE_RESPONSE_VALUES.update({ + l9.info['alias']: 'SOMBERCHIPMUNK', + l9.info['binding'][0]['port']: 19742, + f'127.0.0.1:{l9.info["binding"][0]["port"]}': '127.0.0.1:19742', + l10.info['alias']: 'LIGHTNINGWALK', + l10.info['binding'][0]['port']: 19743, + f'127.0.0.1:{l10.info["binding"][0]["port"]}': '127.0.0.1:19743', + }) + amount = 2 ** 24 + l9.fundwallet(amount + 10000000) + bitcoind.generate_block(1) + wait_for(lambda: len(l9.rpc.listfunds()["outputs"]) != 0) + l9.rpc.connect(l10.info['id'], 'localhost', l10.port) + + fund_start = update_example(node=l9, method='fundchannel_start', params=[l10.info['id'], amount]) + tx_prep = update_example(node=l9, method='txprepare', params=[[{fund_start['funding_address']: amount}]]) + update_example(node=l9, method='fundchannel_cancel', params=[l10.info['id']]) + update_example(node=l9, method='txdiscard', params=[tx_prep['txid']]) + fund_start = update_example(node=l9, method='fundchannel_start', params={'id': l10.info['id'], 'amount': amount}) + tx_prep = update_example(node=l9, method='txprepare', params={'outputs': [{fund_start['funding_address']: amount}]}) + update_example(node=l9, method='fundchannel_complete', params=[l10.info['id'], tx_prep['psbt']]) + update_example(node=l9, method='txsend', params=[tx_prep['txid']]) + l9.rpc.close(l10.info['id']) + + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l9]) + + amount = 1000000 + fund_start = l9.rpc.fundchannel_start(l10.info['id'], amount) + tx_prep = l9.rpc.txprepare([{fund_start['funding_address']: amount}]) + update_example(node=l9, method='fundchannel_cancel', params={'id': l10.info['id']}) + update_example(node=l9, method='txdiscard', params={'txid': tx_prep['txid']}) + funding_addr = l9.rpc.fundchannel_start(l10.info['id'], amount)['funding_address'] + tx_prep = l9.rpc.txprepare([{funding_addr: amount}]) + update_example(node=l9, method='fundchannel_complete', params={'id': l10.info['id'], 'psbt': tx_prep['psbt']}) + update_example(node=l9, method='txsend', params={'txid': tx_prep['txid']}) + l9.rpc.close(l10.info['id']) + + # Basic setup for l11->l12 for openchannel examples + options = [ + { + 'experimental-dual-fund': None, + 'may_reconnect': True, + 'dev-no-reconnect': None, + 'allow_warning': True, + 'allow-deprecated-apis': True, + 'allow_bad_gossip': True, + 'broken_log': '.*', + 'dev-bitcoind-poll': 3, + }.copy() + for i in range(2) + ] + l11, l12 = node_factory.get_nodes(2, opts=options) + l11.fundwallet(FUND_WALLET_AMOUNT_SAT) + l11.rpc.connect(l12.info['id'], 'localhost', l12.port) + c1112res = l11.rpc.fundchannel(l12.info['id'], FUND_CHANNEL_AMOUNT_SAT) + chan_id = c1112res['channel_id'] + REPLACE_RESPONSE_VALUES.update({ + l11.info['alias']: 'SLICKERMONTANA', + l11.info['binding'][0]['port']: 19744, + f'127.0.0.1:{l11.info["binding"][0]["port"]}': '127.0.0.1:19744', + l12.info['alias']: 'STRANGEWAFFLE', + l12.info['binding'][0]['port']: 19745, + f'127.0.0.1:{l12.info["binding"][0]["port"]}': '127.0.0.1:19745', + c1112res['txid']: 'txidchannel01112001112001112001112001112001112001112001112001112', + c1112res['channel_id']: 'channelid0111200111200111200111200111200111200111200111200111200', + }) + logger.warning(f'Replace List: {REPLACE_RESPONSE_VALUES}') + vins = bitcoind.rpc.decoderawtransaction(c1112res['tx'])['vin'] + assert(only_one(vins)) + prev_utxos = ["{}:{}".format(vins[0]['txid'], vins[0]['vout'])] + + l11.daemon.wait_for_log(' to DUALOPEND_AWAITING_LOCKIN') + chan = only_one(l11.rpc.listpeerchannels(l12.info['id'])['channels']) + rate = int(chan['feerate']['perkw']) + next_feerate = '{}perkw'.format(rate * 4) + + # Initiate an RBF + startweight = 42 + 172 + initpsbt = update_example(node=l11, method='utxopsbt', params=[FUND_CHANNEL_AMOUNT_SAT, next_feerate, startweight, prev_utxos, None, True, None, None, True]) + bump = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT, initpsbt['psbt'], next_feerate]) + + update_example(node=l11, method='openchannel_abort', params={'channel_id': chan_id}) + bump = update_example(node=l11, method='openchannel_bump', params={'channel_id': chan_id, 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': initpsbt['psbt'], 'funding_feerate': next_feerate}) + update = update_example(node=l11, method='openchannel_update', params={'channel_id': chan_id, 'psbt': bump['psbt']}) + signed = update_example(node=l11, method='signpsbt', params={'psbt': update['psbt']}) + update_example(node=l11, method='openchannel_signed', params={'channel_id': chan_id, 'signed_psbt': signed['signed_psbt']}) + + # 5x the feerate to beat the min-relay fee + chan = only_one(l11.rpc.listpeerchannels(l12.info['id'])['channels']) + rate = int(chan['feerate']['perkw']) + next_feerate = '{}perkw'.format(rate * 5) + + # Another RBF with double the channel amount + startweight = 42 + 172 + initpsbt = update_example(node=l11, method='utxopsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT * 2, 'feerate': next_feerate, 'startweight': startweight, 'utxos': prev_utxos, 'reservedok': True, 'excess_as_change': True}) + bump = update_example(node=l11, method='openchannel_bump', params=[chan_id, FUND_CHANNEL_AMOUNT_SAT * 2, initpsbt['psbt'], next_feerate]) + update = update_example(node=l11, method='openchannel_update', params=[chan_id, bump['psbt']]) + signed_psbt = update_example(node=l11, method='signpsbt', params=[update['psbt']])['signed_psbt'] + update_example(node=l11, method='openchannel_signed', params=[chan_id, signed_psbt]) + + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l11]) + l11.daemon.wait_for_log(' to CHANNELD_NORMAL') + + # Fundpsbt, channelopen init, abort, unreserve + psbt_init = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT, 'feerate': '253perkw', 'startweight': 250, 'reserve': 0}) + start = update_example(node=l11, method='openchannel_init', params={'id': l12.info['id'], 'amount': FUND_CHANNEL_AMOUNT_SAT, 'initialpsbt': psbt_init['psbt']}) + l11.rpc.openchannel_abort(start['channel_id']) + update_example(node=l11, method='unreserveinputs', params={'psbt': psbt_init['psbt'], 'reserve': 200}) + + psbt_init = update_example(node=l11, method='fundpsbt', params={'satoshi': FUND_CHANNEL_AMOUNT_SAT // 2, 'feerate': 'urgent', 'startweight': 166, 'reserve': 0, 'excess_as_change': True, 'min_witness_weight': 110}) + start = update_example(node=l11, method='openchannel_init', params=[l12.info['id'], FUND_CHANNEL_AMOUNT_SAT // 2, psbt_init['psbt']]) + l11.rpc.openchannel_abort(start['channel_id']) + update_example(node=l11, method='unreserveinputs', params=[psbt_init['psbt']]) + + # Reserveinputs + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l11]) + outputs = l11.rpc.listfunds()['outputs'] + psbt_1 = bitcoind.rpc.createpsbt([{'txid': outputs[0]['txid'], 'vout': outputs[0]['output']}], []) + update_example(node=l11, method='reserveinputs', params={'psbt': psbt_1}) + l11.rpc.unreserveinputs(psbt_1) + psbt_2 = bitcoind.rpc.createpsbt([{'txid': outputs[1]['txid'], 'vout': outputs[1]['output']}], []) + update_example(node=l11, method='reserveinputs', params={'psbt': psbt_2}) + l11.rpc.unreserveinputs(psbt_2) + + # Multifundchannel 1 + l3.rpc.connect(l5.info['id'], 'localhost', l5.port) + l4.rpc.connect(l1.info['id'], 'localhost', l1.port) + c35res = update_example(node=l3, method='fundchannel', params={'id': l5.info['id'], 'amount': FUND_CHANNEL_AMOUNT_SAT, 'announce': True}) + outputs = l4.rpc.listfunds()['outputs'] + utxo = f"{outputs[0]['txid']}:{outputs[0]['output']}" + c41res = update_example(node=l4, method='fundchannel', + params={'id': l1.info['id'], 'amount': 'all', 'feerate': 'normal', 'push_msat': 100000, 'utxos': [utxo]}, + description=[f'This example shows how to to open new channel with peer {l1.info["id"]} from one whole utxo {utxo} (you can use **listfunds** command to get txid and vout):']) + # Close newly funded channels to bring the setup back to initial state + l3.rpc.close(c35res['channel_id']) + print(f'c41res: {c41res}') + l4.rpc.close(c41res['channel_id']) + l3.rpc.disconnect(l5.info['id'], True) + l4.rpc.disconnect(l1.info['id'], True) + + # Multifundchannel 2 + l1.fundwallet(10**8) + l1.rpc.connect(l3.info['id'], 'localhost', l3.port) + l1.rpc.connect(l4.info['id'], 'localhost', l4.port) + l1.rpc.connect(l5.info['id'], 'localhost', l5.port) + multifund_res1 = update_example(node=l1, method='multifundchannel', params={ + 'destinations': + [ + { + 'id': f'{l3.info["id"]}@127.0.0.1:{l3.port}', + 'amount': '20000sat' + }, + { + 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', + 'amount': '0.0003btc' + }, + { + 'id': f'{l5.info["id"]}@127.0.0.1:{l5.port}', + 'amount': 'all' + } + ], + 'feerate': '10000perkw', + 'commitment_feerate': '2000perkw' + }, description=[ + 'This example opens three channels at once, with amounts 20,000 sats, 30,000 sats', + 'and the final channel using all remaining funds (actually, capped at 16,777,215 sats', + 'because large-channels is not enabled):' + ]) + for channel in multifund_res1['channel_ids']: + l1.rpc.close(channel['channel_id']) + l1.fundwallet(10**8) + multifund_res2 = update_example(node=l1, method='multifundchannel', params={ + 'destinations': + [ + { + 'id': f'03a389b3a2f7aa6f9f4ccc19f2bd7a2eba83596699e86b715caaaa147fc37f3144@127.0.0.1:{l3.port}', + 'amount': 50000 + }, + { + 'id': f'{l4.info["id"]}@127.0.0.1:{l4.port}', + 'amount': 50000 + }, + { + 'id': f'{l1.info["id"]}@127.0.0.1:{l1.port}', + 'amount': 50000 + } + ], 'minchannels': 1 + }) + # Close newly funded channels to bring the setup back to initial state + for channel in multifund_res2['channel_ids']: + l1.rpc.close(channel['channel_id']) + l1.rpc.disconnect(l3.info['id'], True) + l1.rpc.disconnect(l4.info['id'], True) + l1.rpc.disconnect(l5.info['id'], True) + bitcoind.generate_block(1) + sync_blockheight(bitcoind, [l1, l3, l4, l5]) + logger.info('Channels Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating fundchannel and openchannel examples: {e}') def generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23): - """Records autoclean and delete examples""" - try: - logger.info('Auto-clean and Delete Start...') - global FUND_CHANNEL_AMOUNT_SAT - l2.rpc.close(l5.info['id']) - update_example(node=l2, method='dev-forget-channel', params={'id': l5.info['id']}, description=[f'Forget a channel by peer pubkey when only one channel exists with the peer:']) - - # Create invoices for delpay and delinvoice examples - inv_l35 = l3.rpc.invoice('50000sat', 'lbl_l35', 'l35 description') - inv_l36 = l3.rpc.invoice('50000sat', 'lbl_l36', 'l36 description') - inv_l37 = l3.rpc.invoice('50000sat', 'lbl_l37', 'l37 description') - - # For MPP payment from l1 to l4; will use for delpay groupdid and partid example - inv_l41 = l4.rpc.invoice('5000sat', 'lbl_l41', 'l41 description') - l2.rpc.connect(l4.info['id'], 'localhost', l4.port) - c24, _ = l2.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) - l2.rpc.pay(l4.rpc.invoice(500000000, 'lbl balance l2 to l4', 'description send some sats l2 to l4')['bolt11']) - # Create two routes; l1->l2->l3->l4 and l1->l2->l4 - route_l1_l4 = l1.rpc.getroute(l4.info['id'], '4000sat', 1)['route'] - route_l1_l2_l4 = [{'amount_msat': '1000sat', 'id': l2.info['id'], 'delay': 5, 'channel': c12}, - {'amount_msat': '1000sat', 'id': l4.info['id'], 'delay': 5, 'channel': c24}] - l1.rpc.sendpay(route_l1_l4, inv_l41['payment_hash'], amount_msat='5000sat', groupid=1, partid=1, payment_secret=inv_l41['payment_secret']) - l1.rpc.sendpay(route_l1_l2_l4, inv_l41['payment_hash'], amount_msat='5000sat', groupid=1, partid=2, payment_secret=inv_l41['payment_secret']) - # Close l2->l4 for initial state - l2.rpc.close(l4.info['id']) - l2.rpc.disconnect(l4.info['id'], True) - - # Delinvoice - l1.rpc.pay(inv_l35['bolt11']) - l1.rpc.pay(inv_l37['bolt11']) - update_example(node=l3, method='delinvoice', params={'label': 'lbl_l36', 'status': 'unpaid'}) - - # invoice already deleted, pay will fail; used for delpay failed example - with pytest.raises(RpcError): - l1.rpc.pay(inv_l36['bolt11']) - - listsendpays_l1 = l1.rpc.listsendpays()['payments'] - sendpay_g1_p1 = next((x for x in listsendpays_l1 if 'groupid' in x and x['groupid'] == 1 and 'partid' in x and x['partid'] == 2), None) - update_example(node=l1, method='delpay', params={'payment_hash': listsendpays_l1[0]['payment_hash'], 'status': 'complete'}) - update_example(node=l1, method='delpay', params=[listsendpays_l1[-1]['payment_hash'], listsendpays_l1[-1]['status']]) - update_example(node=l1, method='delpay', params={'payment_hash': sendpay_g1_p1['payment_hash'], 'status': sendpay_g1_p1['status'], 'groupid': 1, 'partid': 2}) - update_example(node=l3, method='delinvoice', params={'label': 'lbl_l37', 'status': 'paid', 'desconly': True}) - - # Delforward - failed_forwards = l2.rpc.listforwards('failed')['forwards'] - local_failed_forwards = l2.rpc.listforwards('local_failed')['forwards'] - if len(local_failed_forwards) > 0 and 'in_htlc_id' in local_failed_forwards[0]: - update_example(node=l2, method='delforward', params={'in_channel': c12, 'in_htlc_id': local_failed_forwards[0]['in_htlc_id'], 'status': 'local_failed'}) - if len(failed_forwards) > 0 and 'in_htlc_id' in failed_forwards[0]: - update_example(node=l2, method='delforward', params=[c12, failed_forwards[0]['in_htlc_id'], 'failed']) - update_example(node=l2, method='dev-forget-channel', params={'id': l3.info['id'], 'short_channel_id': c23, 'force': True}, description=[f'Forget a channel by short channel id when peer has multiple channels:']) - - # Autoclean - update_example(node=l2, method='autoclean-once', params=['failedpays', 1]) - update_example(node=l2, method='autoclean-once', params=['succeededpays', 1]) - update_example(node=l2, method='autoclean-status', params={'subsystem': 'expiredinvoices'}) - update_example(node=l2, method='autoclean-status', params={}) - logger.info('Auto-clean and Delete Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating autoclean and delete examples: {e}') + """Records autoclean and delete examples""" + try: + logger.info('Auto-clean and Delete Start...') + global FUND_CHANNEL_AMOUNT_SAT + l2.rpc.close(l5.info['id']) + update_example(node=l2, method='dev-forget-channel', params={'id': l5.info['id']}, description=[f'Forget a channel by peer pubkey when only one channel exists with the peer:']) + + # Create invoices for delpay and delinvoice examples + inv_l35 = l3.rpc.invoice('50000sat', 'lbl_l35', 'l35 description') + inv_l36 = l3.rpc.invoice('50000sat', 'lbl_l36', 'l36 description') + inv_l37 = l3.rpc.invoice('50000sat', 'lbl_l37', 'l37 description') + + # For MPP payment from l1 to l4; will use for delpay groupdid and partid example + inv_l41 = l4.rpc.invoice('5000sat', 'lbl_l41', 'l41 description') + l2.rpc.connect(l4.info['id'], 'localhost', l4.port) + c24, _ = l2.fundchannel(l4, FUND_CHANNEL_AMOUNT_SAT) + l2.rpc.pay(l4.rpc.invoice(500000000, 'lbl balance l2 to l4', 'description send some sats l2 to l4')['bolt11']) + # Create two routes; l1->l2->l3->l4 and l1->l2->l4 + route_l1_l4 = l1.rpc.getroute(l4.info['id'], '4000sat', 1)['route'] + route_l1_l2_l4 = [{'amount_msat': '1000sat', 'id': l2.info['id'], 'delay': 5, 'channel': c12}, + {'amount_msat': '1000sat', 'id': l4.info['id'], 'delay': 5, 'channel': c24}] + l1.rpc.sendpay(route_l1_l4, inv_l41['payment_hash'], amount_msat='5000sat', groupid=1, partid=1, payment_secret=inv_l41['payment_secret']) + l1.rpc.sendpay(route_l1_l2_l4, inv_l41['payment_hash'], amount_msat='5000sat', groupid=1, partid=2, payment_secret=inv_l41['payment_secret']) + # Close l2->l4 for initial state + l2.rpc.close(l4.info['id']) + l2.rpc.disconnect(l4.info['id'], True) + + # Delinvoice + l1.rpc.pay(inv_l35['bolt11']) + l1.rpc.pay(inv_l37['bolt11']) + update_example(node=l3, method='delinvoice', params={'label': 'lbl_l36', 'status': 'unpaid'}) + + # invoice already deleted, pay will fail; used for delpay failed example + with pytest.raises(RpcError): + l1.rpc.pay(inv_l36['bolt11']) + + listsendpays_l1 = l1.rpc.listsendpays()['payments'] + sendpay_g1_p1 = next((x for x in listsendpays_l1 if 'groupid' in x and x['groupid'] == 1 and 'partid' in x and x['partid'] == 2), None) + update_example(node=l1, method='delpay', params={'payment_hash': listsendpays_l1[0]['payment_hash'], 'status': 'complete'}) + update_example(node=l1, method='delpay', params=[listsendpays_l1[-1]['payment_hash'], listsendpays_l1[-1]['status']]) + update_example(node=l1, method='delpay', params={'payment_hash': sendpay_g1_p1['payment_hash'], 'status': sendpay_g1_p1['status'], 'groupid': 1, 'partid': 2}) + update_example(node=l3, method='delinvoice', params={'label': 'lbl_l37', 'status': 'paid', 'desconly': True}) + + # Delforward + failed_forwards = l2.rpc.listforwards('failed')['forwards'] + local_failed_forwards = l2.rpc.listforwards('local_failed')['forwards'] + if len(local_failed_forwards) > 0 and 'in_htlc_id' in local_failed_forwards[0]: + update_example(node=l2, method='delforward', params={'in_channel': c12, 'in_htlc_id': local_failed_forwards[0]['in_htlc_id'], 'status': 'local_failed'}) + if len(failed_forwards) > 0 and 'in_htlc_id' in failed_forwards[0]: + update_example(node=l2, method='delforward', params=[c12, failed_forwards[0]['in_htlc_id'], 'failed']) + update_example(node=l2, method='dev-forget-channel', params={'id': l3.info['id'], 'short_channel_id': c23, 'force': True}, description=[f'Forget a channel by short channel id when peer has multiple channels:']) + + # Autoclean + update_example(node=l2, method='autoclean-once', params=['failedpays', 1]) + update_example(node=l2, method='autoclean-once', params=['succeededpays', 1]) + update_example(node=l2, method='autoclean-status', params={'subsystem': 'expiredinvoices'}) + update_example(node=l2, method='autoclean-status', params={}) + logger.info('Auto-clean and Delete Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating autoclean and delete examples: {e}') def generate_backup_recovery_examples(node_factory, l4, l5, l6): - """Node backup and recovery examples""" - try: - logger.info('Backup and Recovery Start...') - - # New node l13 used for recover example - l13 = node_factory.get_node() - - update_example(node=l5, method='makesecret', params=['73636220736563726574']) - update_example(node=l5, method='makesecret', params={'string': 'scb secret'}) - update_example(node=l4, method='emergencyrecover', params={}) - backup_l4 = update_example(node=l4, method='staticbackup', params={}) - - # Recover channels - l4.stop() - os.unlink(os.path.join(l4.daemon.lightning_dir, TEST_NETWORK, 'lightningd.sqlite3')) - l4.start() - time.sleep(1) - update_example(node=l4, method='recoverchannel', params=[backup_l4['scb']]) - - # Emergency recover - l5.stop() - os.unlink(os.path.join(l5.daemon.lightning_dir, TEST_NETWORK, 'lightningd.sqlite3')) - l5.start() - time.sleep(1) - update_example(node=l5, method='emergencyrecover', params={}) - - # Recover - def get_hsm_secret(n): - """Returns codex32 and hex""" - try: - hsmfile = os.path.join(n.daemon.lightning_dir, TEST_NETWORK, "hsm_secret") - codex32 = subprocess.check_output(["tools/hsmtool", "getcodexsecret", hsmfile, "leet"]).decode('utf-8').strip() - with open(hsmfile, "rb") as f: - hexhsm = f.read().hex() - return codex32, hexhsm - except Exception as e: - logger.error(f'Error in getting hsm secret: {e}') - - _, l6hex = get_hsm_secret(l6) - l13codex32, _ = get_hsm_secret(l13) - update_example(node=l6, method='recover', params={'hsmsecret': l6hex}) - update_example(node=l13, method='recover', params={'hsmsecret': l13codex32}) - logger.info('Backup and Recovery Done!') - except TaskFinished: - raise - except Exception as e: - logger.error(f'Error in generating backup and recovery examples: {e}') + """Node backup and recovery examples""" + try: + logger.info('Backup and Recovery Start...') + + # New node l13 used for recover example + l13 = node_factory.get_node() + + update_example(node=l5, method='makesecret', params=['73636220736563726574']) + update_example(node=l5, method='makesecret', params={'string': 'scb secret'}) + update_example(node=l4, method='emergencyrecover', params={}) + backup_l4 = update_example(node=l4, method='staticbackup', params={}) + + # Recover channels + l4.stop() + os.unlink(os.path.join(l4.daemon.lightning_dir, TEST_NETWORK, 'lightningd.sqlite3')) + l4.start() + time.sleep(1) + update_example(node=l4, method='recoverchannel', params=[backup_l4['scb']]) + + # Emergency recover + l5.stop() + os.unlink(os.path.join(l5.daemon.lightning_dir, TEST_NETWORK, 'lightningd.sqlite3')) + l5.start() + time.sleep(1) + update_example(node=l5, method='emergencyrecover', params={}) + + # Recover + def get_hsm_secret(n): + """Returns codex32 and hex""" + try: + hsmfile = os.path.join(n.daemon.lightning_dir, TEST_NETWORK, "hsm_secret") + codex32 = subprocess.check_output(["tools/hsmtool", "getcodexsecret", hsmfile, "leet"]).decode('utf-8').strip() + with open(hsmfile, "rb") as f: + hexhsm = f.read().hex() + return codex32, hexhsm + except Exception as e: + logger.error(f'Error in getting hsm secret: {e}') + + _, l6hex = get_hsm_secret(l6) + l13codex32, _ = get_hsm_secret(l13) + update_example(node=l6, method='recover', params={'hsmsecret': l6hex}) + update_example(node=l13, method='recover', params={'hsmsecret': l13codex32}) + logger.info('Backup and Recovery Done!') + except TaskFinished: + raise + except Exception as e: + logger.error(f'Error in generating backup and recovery examples: {e}') @unittest.skipIf(GENERATE_EXAMPLES is not True, 'Generates examples for doc/schema/lightning-*.json files.') def test_generate_examples(node_factory, bitcoind, executor): - """Re-generates examples for doc/schema/lightning-*.json files""" - try: - global ALL_METHOD_NAMES, ALL_RPC_EXAMPLES, REGENERATING_RPCS, RPCS_STATUS - - def list_all_examples(): - """list all methods used in 'update_example' calls to ensure that all methods are covered""" - try: - global REGENERATING_RPCS - methods = {} - file_path = os.path.abspath(__file__) - - # Parse and traverse this file's content to list all methods & file names - with open(file_path, "r") as file: - file_content = file.read() - tree = ast.parse(file_content) - for node in ast.walk(tree): - if isinstance(node, ast.Call) and isinstance(node.func, ast.Name) and node.func.id == 'update_example': - for keyword in node.keywords: - if (keyword.arg == 'method' and isinstance(keyword.value, ast.Str)) or (keyword.arg == 'filename' and isinstance(keyword.value, ast.Str)): - method_name = keyword.value.s - if method_name not in methods: - methods[method_name] = {'method': method_name, 'num_examples': 1, 'executed': 0} - else: - methods[method_name]['num_examples'] += 1 - return list(methods.values()) - except Exception as e: - logger.error(f'Error in listing all examples: {e}') - - def list_missing_examples(): - """Checks for missing example file or example & log an error if missing.""" - try: - global ALL_METHOD_NAMES - for file_name in os.listdir('doc/schemas'): - if not file_name.endswith('.json'): - continue - file_name_str = str(file_name).replace('lightning-', '').replace('.json', '') - # Log an error if the method is not in the list - if file_name_str not in ALL_METHOD_NAMES: - logger.error(f'Missing File or Example {file_name_str}.') - except Exception as e: - logger.error(f'Error in listing missing examples: {e}') - - def clear_existing_examples(): - """Clear existing examples in JSON files to regenrate them later""" - global REGENERATING_RPCS - for rpc in REGENERATING_RPCS: - try: - global CWD - file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{rpc}.json') - with open(file_path, 'r+', encoding='utf-8') as file: - data = json.load(file) - # Deletes the 'examples' key corresponding to the method's file - if 'examples' in data: - del data['examples'] - file.seek(0) - json.dump(data, file, indent=2, ensure_ascii=False) - file.write('\n') - file.truncate() - except FileNotFoundError as fnf_error: - logger.error(f'File not found error {fnf_error} for {file_path}') - except Exception as e: - logger.error(f'Error saving example in file {file_path}: {e}') - logger.info(f'Cleared Examples: {REGENERATING_RPCS}') - return None - - ALL_RPC_EXAMPLES = list_all_examples() - ALL_METHOD_NAMES = [example['method'] for example in ALL_RPC_EXAMPLES] - logger.info(f'This test can reproduce examples for {len(ALL_RPC_EXAMPLES)} methods: {ALL_METHOD_NAMES}') - REGENERATING_RPCS = [rpc.strip() for rpc in os.getenv("REGENERATE").split(',')] if os.getenv("REGENERATE") else ALL_METHOD_NAMES - logger.info(f'Regenerating examples for: {REGENERATING_RPCS}') - RPCS_STATUS = [False] * len(REGENERATING_RPCS) - list_missing_examples() - clear_existing_examples() - l1, l2, l3, l4, l5, l6, c12, c23, c25, c34, c23res = setup_test_nodes(node_factory, bitcoind) - inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 = generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind) - rune_l21 = generate_runes_examples(l1, l2, l3) - generate_datastore_examples(l2) - generate_bookkeeper_examples(l2, l3, c23res['channel_id']) - generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34) - generate_list_examples(l1, l2, l3, c12, c23, inv_l31, inv_l32) - generate_wait_examples(l1, l2, bitcoind, executor) - generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, rune_l21, bitcoind) - generate_splice_examples(node_factory, bitcoind) - generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5) - generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23) - generate_backup_recovery_examples(node_factory, l4, l5, l6) - logger.info('All examples generated successfully!') - except TaskFinished as m: - logger.info(m) - except Exception as e: - # FIXME: The test passes but with flaky errors: - # 1: plugin-bcliBROKEN: bitcoin-cli -regtest -datadir=/tmp/ltests-65999628/test_generate_examples_1/lightning-6/ -rpcclienttimeout=60 -rpcport=57425 -rpcuser=... -stdinrpcpass getblockhash 159 exited 1 (after 60 other errors) - # 'Error: Specified data directory \"/tmp/ltests-65999628/test_generate_examples_1/lightning-6/\" does not exist.\n'; we have been retrying command for --bitcoin-retry-timeout=60 seconds; bitcoind setup or our --bitcoin-* configs broken? - # 2: Node /tmp/ltests-joqzs3fy/test_generate_examples_1/lightning-3/ has memory leaks: [{"subdaemon": "lightningd"}] - logger.error(e) + """Re-generates examples for doc/schema/lightning-*.json files""" + try: + global ALL_METHOD_NAMES, ALL_RPC_EXAMPLES, REGENERATING_RPCS, RPCS_STATUS + + def list_all_examples(): + """list all methods used in 'update_example' calls to ensure that all methods are covered""" + try: + global REGENERATING_RPCS + methods = {} + file_path = os.path.abspath(__file__) + + # Parse and traverse this file's content to list all methods & file names + with open(file_path, "r") as file: + file_content = file.read() + tree = ast.parse(file_content) + for node in ast.walk(tree): + if isinstance(node, ast.Call) and isinstance(node.func, ast.Name) and node.func.id == 'update_example': + for keyword in node.keywords: + if (keyword.arg == 'method' and isinstance(keyword.value, ast.Str)) or (keyword.arg == 'filename' and isinstance(keyword.value, ast.Str)): + method_name = keyword.value.s + if method_name not in methods: + methods[method_name] = {'method': method_name, 'num_examples': 1, 'executed': 0} + else: + methods[method_name]['num_examples'] += 1 + return list(methods.values()) + except Exception as e: + logger.error(f'Error in listing all examples: {e}') + + def list_missing_examples(): + """Checks for missing example file or example & log an error if missing.""" + try: + global ALL_METHOD_NAMES + for file_name in os.listdir('doc/schemas'): + if not file_name.endswith('.json'): + continue + file_name_str = str(file_name).replace('lightning-', '').replace('.json', '') + # Log an error if the method is not in the list + if file_name_str not in ALL_METHOD_NAMES: + logger.error(f'Missing File or Example {file_name_str}.') + except Exception as e: + logger.error(f'Error in listing missing examples: {e}') + + def clear_existing_examples(): + """Clear existing examples in JSON files to regenrate them later""" + global REGENERATING_RPCS + for rpc in REGENERATING_RPCS: + try: + global CWD + file_path = os.path.join(CWD, 'doc', 'schemas', f'lightning-{rpc}.json') + with open(file_path, 'r+', encoding='utf-8') as file: + data = json.load(file) + # Deletes the 'examples' key corresponding to the method's file + if 'examples' in data: + del data['examples'] + file.seek(0) + json.dump(data, file, indent=2, ensure_ascii=False) + file.write('\n') + file.truncate() + except FileNotFoundError as fnf_error: + logger.error(f'File not found error {fnf_error} for {file_path}') + except Exception as e: + logger.error(f'Error saving example in file {file_path}: {e}') + logger.info(f'Cleared Examples: {REGENERATING_RPCS}') + return None + + ALL_RPC_EXAMPLES = list_all_examples() + ALL_METHOD_NAMES = [example['method'] for example in ALL_RPC_EXAMPLES] + logger.info(f'This test can reproduce examples for {len(ALL_RPC_EXAMPLES)} methods: {ALL_METHOD_NAMES}') + REGENERATING_RPCS = [rpc.strip() for rpc in os.getenv("REGENERATE").split(',')] if os.getenv("REGENERATE") else ALL_METHOD_NAMES + logger.info(f'Regenerating examples for: {REGENERATING_RPCS}') + RPCS_STATUS = [False] * len(REGENERATING_RPCS) + list_missing_examples() + clear_existing_examples() + l1, l2, l3, l4, l5, l6, c12, c23, c25, c34, c23res = setup_test_nodes(node_factory, bitcoind) + inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 = generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind) + rune_l21 = generate_runes_examples(l1, l2, l3) + generate_datastore_examples(l2) + generate_bookkeeper_examples(l2, l3, c23res['channel_id']) + generate_offers_renepay_examples(l1, l2, inv_l21, inv_l34) + generate_list_examples(l1, l2, l3, c12, c23, inv_l31, inv_l32) + generate_wait_examples(l1, l2, bitcoind, executor) + generate_utils_examples(l1, l2, l3, l4, l5, l6, c23, c34, inv_l11, inv_l22, rune_l21, bitcoind) + generate_splice_examples(node_factory, bitcoind) + generate_channels_examples(node_factory, bitcoind, l1, l3, l4, l5) + generate_autoclean_delete_examples(l1, l2, l3, l4, l5, c12, c23) + generate_backup_recovery_examples(node_factory, l4, l5, l6) + logger.info('All examples generated successfully!') + except TaskFinished as m: + logger.info(m) + except Exception as e: + # FIXME: The test passes but with flaky errors: + # 1: plugin-bcliBROKEN: bitcoin-cli -regtest -datadir=/tmp/ltests-65999628/test_generate_examples_1/lightning-6/ -rpcclienttimeout=60 -rpcport=57425 -rpcuser=... -stdinrpcpass getblockhash 159 exited 1 (after 60 other errors) + # 'Error: Specified data directory \"/tmp/ltests-65999628/test_generate_examples_1/lightning-6/\" does not exist.\n'; we have been retrying command for --bitcoin-retry-timeout=60 seconds; bitcoind setup or our --bitcoin-* configs broken? + # 2: Node /tmp/ltests-joqzs3fy/test_generate_examples_1/lightning-3/ has memory leaks: [{"subdaemon": "lightningd"}] + logger.error(e)