Update Core Lightning (#475)

This commit is contained in:
ShahanaFarooqui 2023-05-18 11:58:17 -07:00 committed by GitHub
parent eb8f30736d
commit e8ec88c2b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 40 deletions

View File

@ -383,13 +383,13 @@ ssh umbrel@umbrel.local
2\. Next, we'll switch to the forked remote app repo:
```sh
sudo ./scripts/repo checkout https://github.com/<username>/umbrel-apps.git
sudo ./umbrel/scripts/repo checkout https://github.com/<username>/umbrel-apps.git
```
3\. Once the repo has updated, it's time to test our app:
```sh
sudo ./scripts/app install btc-rpc-explorer
sudo ./umbrel/scripts/app install btc-rpc-explorer
```
The app should now be accessible at http://umbrel.local:3002
@ -397,12 +397,12 @@ The app should now be accessible at http://umbrel.local:3002
4\. To uninstall:
```sh
sudo ./scripts/app uninstall btc-rpc-explorer
sudo ./umbrel/scripts/app uninstall btc-rpc-explorer
```
> When testing your app, make sure to verify that any application state that needs to be persisted is in-fact being persisted in volumes.
>
> A good way to test this is to restart the app with `scripts/app stop <app-id> && scripts/app start <app-id>`. If any state is lost, it means that state should be mapped to a persistent volume.
> A good way to test this is to restart the app with `./umbrel/scripts/app stop <app-id> && ./umbrel/scripts/app start <app-id>`. If any state is lost, it means that state should be mapped to a persistent volume.
>
> When stopping/starting the app, all data in volumes will be persisted and anything else will be discarded. When uninstalling/installing an app, even persistent data will be discarded.

View File

@ -7,24 +7,32 @@ services:
APP_PORT: $APP_CORE_LIGHTNING_PORT
app:
image: getumbrel/umbrel-core-lightning:v0.1.0@sha256:8586dc018f82f5663a50a11c785ceeb025f9bf1e547372f18de4a1fb3f3641e2
command: npm run dev:backend
image: ghcr.io/elementsproject/cln-application:0.0.2@sha256:97cd49f94a05cbf2908572d2427d1c6de3227863df5bfa1e9fe2ba6138a1e185
command: npm run start
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/lightningd:/lightningd
- "${APP_CORE_LIGHTNING_REST_CERT_DIR}:/c-lightning-rest/certs"
- ${APP_DATA_DIR}/data/app:${APP_CONFIG_DIR}
- ${APP_DATA_DIR}/data/lightningd:${APP_CORE_LIGHTNING_DATA_DIR}
- ${APP_CORE_LIGHTNING_REST_CERT_DIR}:${APP_REST_CERT_VOLUME_DIR}
environment:
PORT: "${APP_CORE_LIGHTNING_PORT}"
LIGHTNING_HOST: ${APP_CORE_LIGHTNING_DAEMON_IP}
LIGHTNING_NETWORK: bitcoin
LIGHTNING_GRPC_PORT: ${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
LIGHTNING_REST_PORT: ${APP_CORE_LIGHTNING_REST_PORT}
LIGHTNING_REST_MACAROON_PATH: "/c-lightning-rest/certs/access.macaroon"
LIGHTNING_REST_HIDDEN_SERVICE: http://${APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE}
APP_CORE_LIGHTNING_IP: ${APP_CORE_LIGHTNING_IP}
APP_CORE_LIGHTNING_PORT: ${APP_CORE_LIGHTNING_PORT}
APP_CORE_LIGHTNING_BITCOIN_NETWORK: ${APP_CORE_LIGHTNING_BITCOIN_NETWORK}
APP_CORE_LIGHTNING_DAEMON_IP: ${APP_CORE_LIGHTNING_DAEMON_IP}
APP_CORE_LIGHTNING_DAEMON_GRPC_PORT: ${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
APP_CORE_LIGHTNING_WEBSOCKET_PORT: ${APP_CORE_LIGHTNING_WEBSOCKET_PORT}
APP_CORE_LIGHTNING_REST_PORT: ${APP_CORE_LIGHTNING_REST_PORT}
APP_CORE_LIGHTNING_REST_CERT_DIR: ${APP_REST_CERT_VOLUME_DIR}
APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE: http://${APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE}
CORE_LIGHTNING_PATH: ${CORE_LIGHTNING_PATH}
COMMANDO_CONFIG: ${COMMANDO_CONFIG}
APP_CONFIG_DIR: ${APP_CONFIG_DIR}
APP_MODE: ${APP_MODE}
DEVICE_DOMAIN_NAME: ${DEVICE_DOMAIN_NAME}
LOCAL_HOST: http://${DEVICE_DOMAIN_NAME}
CA_CERT: /lightningd/bitcoin/ca.pem
CLIENT_KEY: /lightningd/bitcoin/client-key.pem
CLIENT_CERT: /lightningd/bitcoin/client.pem
CA_CERT: ${APP_CORE_LIGHTNING_DATA_DIR}/bitcoin/ca.pem
CLIENT_KEY: ${APP_CORE_LIGHTNING_DATA_DIR}/bitcoin/client-key.pem
CLIENT_CERT: ${APP_CORE_LIGHTNING_DATA_DIR}/bitcoin/client.pem
networks:
default:
ipv4_address: ${APP_CORE_LIGHTNING_IP}
@ -49,6 +57,7 @@ services:
restart: on-failure
ports:
- ${APP_CORE_LIGHTNING_DAEMON_PORT}:9735
- ${APP_CORE_LIGHTNING_WEBSOCKET_PORT}:${APP_CORE_LIGHTNING_WEBSOCKET_PORT}
command:
- --bitcoin-rpcconnect=${APP_BITCOIN_NODE_IP}
- --bitcoin-rpcuser=${APP_BITCOIN_RPC_USER}
@ -59,6 +68,8 @@ services:
- --tor-service-password=${TOR_PASSWORD}
- --network=${APP_CORE_LIGHTNING_BITCOIN_NETWORK}
- --database-upgrade=true
- --experimental-websocket-port=${APP_CORE_LIGHTNING_WEBSOCKET_PORT}
- --experimental-offers
#- --grpc-port=${APP_CORE_LIGHTNING_DAEMON_GRPC_PORT}
volumes:
- "${APP_DATA_DIR}/data/lightningd:/data/.lightning"

View File

@ -5,6 +5,7 @@ export APP_CORE_LIGHTNING_REST_PORT="2104"
export APP_CORE_LIGHTNING_DAEMON_IP="10.21.21.96"
export APP_CORE_LIGHTNING_DAEMON_PORT="9736"
export APP_CORE_LIGHTNING_DAEMON_GRPC_PORT="2105"
export APP_CORE_LIGHTNING_WEBSOCKET_PORT="2106"
export APP_CORE_LIGHTNING_REST_CERT_DIR="${EXPORTS_APP_DIR}/data/c-lightning-rest/certs"
@ -15,3 +16,10 @@ fi
rest_hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}-rest/hostname"
export APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE="$(cat "${rest_hidden_service_file}" 2>/dev/null || echo "notyetset.onion")"
export APP_CONFIG_DIR="/data/app"
export APP_MODE="production"
export APP_CORE_LIGHTNING_DATA_DIR="/root/.lightning"
export APP_REST_CERT_VOLUME_DIR="/c-lightning-rest/certs"
export CORE_LIGHTNING_PATH="/root/.lightning"
export COMMANDO_CONFIG="/root/.lightning/.commando-env"

View File

@ -2,51 +2,50 @@ manifestVersion: 1.1
id: core-lightning
category: Finance
name: Core Lightning
version: "22.11.1"
version: "22.11.1-ui"
tagline: Run your personal Core Lightning node
description: >-
Get started with the Lightning network today with Core Lightning - a
Lightning Network implementation focusing on spec compliance and performance.
The Lightning Network allows ultra cheap and almost instant Bitcoin transactions.
By running a Lightning node, you can not only self-custody your Bitcoin on
Lightning, but also earn sats by routing payments on the network.
Connect Zeus or any other wallet that supports Core Lightning's REST interface
to remotely manage and access your node from anywhere.
Core Lightning and Application powered by Blockstream.
Powered by Core Lightning from Elements.
An official app from Umbrel.
developer: Umbrel
website: https://umbrel.com
developer: Core Lightning
website: https://blockstream.com/lightning/
dependencies:
- bitcoin
repo: https://github.com/getumbrel/umbrel-core-lightning
support: https://community.getumbrel.com/c/bitcoin-and-lightning
repo: https://github.com/ElementsProject/cln-application
support: https://community.corelightning.org/home
port: 2103
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
- 4.jpg
path: ""
defaultPassword: ""
submitter: Umbrel
submission: https://github.com/getumbrel/umbrel-apps/pull/7
submitter: Core Lightning
submission: https://github.com/getumbrel/umbrel-apps/pull/475
releaseNotes: >-
- We reintroduced a number of deprecated features, since some integrations had missed the deprecation window, and asked for some more time to update their apps
- This update brings a stunning new look and intuitive UI, maintained officially by Blockstream
- The new experimental reckless plugin manager can be used to download, install and uninstall plugins on the fly. We have many new features planned for it, so stay tuned.
- Core Lightning node control with Commando RPC calls, lnmessage, websocket-port & runes
- When receiving a keysend any extra TLV fields will be stored so they can be retrieved later.
- Database upgrade support with database-update flag
- The --database-update=false flag allows users wanting to test unreleased versions from accidentally upgrading the database, and then be unable to switch to a released version again.
- Offers and fetchinvoice plugins enabled through experimental-offers
- Several performance issues, particularly for larger nodes, have been addressed
- Application Features:
* Smooth withdrawals and deposits
* Simple opening and closing of channels
* Effortless sending and receiving of invoices
* Convenient management of offers (bolt12)
* Seamless keysend functionality
* And much more...
And much more. Full changelog from v0.11.1 can be found here: https://github.com/ElementsProject/lightning/releases
Click here for full changelog: https://github.com/ElementsProject/lightning/releases/tag/v22.11.1