From a072e5c090f773c1347a92cb37a43824cf5d9d4d Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 5 Feb 2024 14:43:42 +0100 Subject: [PATCH] update all references to go build and cln_plugin --- .github/actions/build-lspd/action.yaml | 2 +- .github/actions/test-lspd/action.yaml | 4 ++-- README.md | 6 +++--- deploy/deploy.yml | 9 +++------ deploy/lspd-install.sh | 9 +++------ docs/CLN.md | 8 ++++---- docs/LND.md | 2 +- 7 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.github/actions/build-lspd/action.yaml b/.github/actions/build-lspd/action.yaml index e4f5a67..e2b4902 100644 --- a/.github/actions/build-lspd/action.yaml +++ b/.github/actions/build-lspd/action.yaml @@ -23,4 +23,4 @@ runs: name: build-artifacts path: | lspd - lspd_plugin + lspd_cln_plugin diff --git a/.github/actions/test-lspd/action.yaml b/.github/actions/test-lspd/action.yaml index 7a0a995..1670e57 100644 --- a/.github/actions/test-lspd/action.yaml +++ b/.github/actions/test-lspd/action.yaml @@ -37,7 +37,7 @@ runs: - name: Set permissions run: | chmod 755 lspd - chmod 755 lspd_plugin + chmod 755 lspd_cln_plugin shell: bash - name: Cache LND client @@ -126,7 +126,7 @@ runs: --lightningdexec ${{ github.workspace }}/lightning_git/lightningd/lightningd \ --lndexec ~/go_lnd_lsp/bin/lnd \ --lndmobileexec ~/go_lnd_client/bin/lnd \ - --clnpluginexec ${{ github.workspace }}/lspd_plugin \ + --clnpluginexec ${{ github.workspace }}/lspd_cln_plugin \ --lspdexec ${{ github.workspace }}/lspd \ --lspdmigrationsdir ${{ github.workspace }}/postgresql/migrations \ --preservelogs \ diff --git a/README.md b/README.md index b74e3be..027ea26 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,8 @@ In order to run the integration tests, you need: - lnd v0.16.4 breez client version https://github.com/breez/lnd/commit/3c0854adcfc924a6d759a6ee4640c41266b9f8b4 - bitcoind (tested with v23.0) - bitcoin-cli (tested with v23.0) -- build of lspd (go build .) -- build of lspd cln plugin (go build -o lspd_plugin cln_plugin/cmd) +- build of lspd (`make release-lspd`) +- build of lspd cln plugin (`make release-plugin`) To run the integration tests, run the following command from the lspd root directory (replacing the appropriate paths). @@ -44,7 +44,7 @@ go test -timeout 20m -v ./itest \ --lightningdexec /full/path/to/lightningd \ --lndexec /full/path/to/lnd \ --lndmobileexec /full/path/to/lnd \ - --clnpluginexec /full/path/to/lspd_plugin \ + --clnpluginexec /full/path/to/lspd_cln_plugin \ --lspdexec /full/path/to/lspd \ --lspdmigrationsdir /full/path/to/lspd/postgresql/migrations ``` diff --git a/deploy/deploy.yml b/deploy/deploy.yml index bb702a2..e44bedd 100644 --- a/deploy/deploy.yml +++ b/deploy/deploy.yml @@ -231,7 +231,7 @@ Resources: bitcoin-retry-timeout=3600 alias="${LSPName}" wallet=postgres://lightning:$LIGHTNING_DB_PASSWORD@localhost:5432/lightning - plugin=/home/lightning/.lightning/plugins/lspd_plugin + plugin=/home/lightning/.lightning/plugins/lspd_cln_plugin lsp-listen=127.0.0.1:12312 max-concurrent-htlcs=30 dev-allowdustreserve=true @@ -273,13 +273,10 @@ Resources: cd /opt/lspd source /etc/bash.bashrc export PATH=$PATH:/usr/local/go/bin - sudo env "PATH=$PATH" go get - sudo env "PATH=$PATH" go get github.com/breez/lspd/cln_plugin - sudo env "PATH=$PATH" go build . - sudo env "PATH=$PATH" go build -o lspd_plugin ./cln_plugin/cmd + sudo env "PATH=$PATH" make release-all sudo cp lspd /usr/local/bin/ sudo mkdir /home/lightning/.lightning/plugins - sudo cp lspd_plugin /home/lightning/.lightning/plugins/ + sudo cp lspd_cln_plugin /home/lightning/.lightning/plugins/ cat <`: Set on which port the lspd_plugin will listen for lspd communication, must be the same port that is used in pluginAddress parameter in NODES env variable. + - `--lsp-listen=127.0.0.1:`: Set on which port the lspd_cln_plugin will listen for lspd communication, must be the same port that is used in pluginAddress parameter in NODES env variable. 1. Run lspd ### Final step diff --git a/docs/LND.md b/docs/LND.md index e5f35b4..e2b97c5 100644 --- a/docs/LND.md +++ b/docs/LND.md @@ -14,7 +14,7 @@ Needs to be build from source: ``` git clone https://github.com/breez/lspd cd lspd -go build . # compile lspd +make release-lspd # compile lspd ``` ### Postgresql Lspd supports postgresql backend. Create new database and user for lspd: