The guide was again updated to the latest version of everything:
Bitcoin Core v26.0
electrs v0.10.2
Core Lightning v23.11.2
RTL v0.15.0
Upgrading worked mostly as I previously described here:
https://bitcointalk.org/index.php?topic=5366854.msg61920456#msg61920456However, this time there are a few changes regarding the Lightning REST API. I switched from
c-lightning-REST to the new
CLNRest API built into Core Lightning since v23.08, because sticking to the old method was giving me some issues when upgrading.
The following changes need to be made. After upgrading Core Lightning, do the following:
cd /home/bitcoin/lightning
pip install -r plugins/clnrest/requirements.txt
nano /home/bitcoin/.lightning/bitcoin/lightningd.conf
Add the following lines to the end of the file:
# REST API
clnrest-port=3010
Then, after upgrading RTL, edit this line in
/home/bitcoin/RTL/RTL-Config.json and replace
CLT with
CLN, and port number
3001 with
3010:
"lnImplementation": "CLN"
[...]
"lnServerUrl": "https://127.0.0.1:3010"
Also, add this element to the
Authentication section of this file (look at the
updated guide for the whole file):
"runePath": "/home/bitcoin/RTL/rune0"
Lastly, create a 'rune', which is like an access token in Core Lightning, as follows:
lightning-cli createrune
lightning-cli showrunes
You'll get an output like this.
$ lightning-cli showrunes
{
"runes": [
{
"rune": "SGVsbG8gQml0Y29pbnRhbGshIFRoaXMgaXMgYSBkZW1vLg==",
"last_used": 1199145600.138712375,
"unique_id": "0",
"restrictions": [],
"restrictions_as_english": ""
}
]
}
Create a file
/home/bitcoin/RTL/rune0 with the following contents. Paste the rune from above between the quotes, as shown here.
LIGHTNING_RUNE="SGVsbG8gQml0Y29pbnRhbGshIFRoaXMgaXMgYSBkZW1vLg=="
Now you do a clean restart of your node or restart all the services individually.
sudo service bitcoind restart
sudo service electrs restart
sudo service lightningd restart
sudo service RTL restart