mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-18 22:34:22 +01:00
update all references to go build and cln_plugin
This commit is contained in:
2
.github/actions/build-lspd/action.yaml
vendored
2
.github/actions/build-lspd/action.yaml
vendored
@@ -23,4 +23,4 @@ runs:
|
|||||||
name: build-artifacts
|
name: build-artifacts
|
||||||
path: |
|
path: |
|
||||||
lspd
|
lspd
|
||||||
lspd_plugin
|
lspd_cln_plugin
|
||||||
|
|||||||
4
.github/actions/test-lspd/action.yaml
vendored
4
.github/actions/test-lspd/action.yaml
vendored
@@ -37,7 +37,7 @@ runs:
|
|||||||
- name: Set permissions
|
- name: Set permissions
|
||||||
run: |
|
run: |
|
||||||
chmod 755 lspd
|
chmod 755 lspd
|
||||||
chmod 755 lspd_plugin
|
chmod 755 lspd_cln_plugin
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache LND client
|
- name: Cache LND client
|
||||||
@@ -126,7 +126,7 @@ runs:
|
|||||||
--lightningdexec ${{ github.workspace }}/lightning_git/lightningd/lightningd \
|
--lightningdexec ${{ github.workspace }}/lightning_git/lightningd/lightningd \
|
||||||
--lndexec ~/go_lnd_lsp/bin/lnd \
|
--lndexec ~/go_lnd_lsp/bin/lnd \
|
||||||
--lndmobileexec ~/go_lnd_client/bin/lnd \
|
--lndmobileexec ~/go_lnd_client/bin/lnd \
|
||||||
--clnpluginexec ${{ github.workspace }}/lspd_plugin \
|
--clnpluginexec ${{ github.workspace }}/lspd_cln_plugin \
|
||||||
--lspdexec ${{ github.workspace }}/lspd \
|
--lspdexec ${{ github.workspace }}/lspd \
|
||||||
--lspdmigrationsdir ${{ github.workspace }}/postgresql/migrations \
|
--lspdmigrationsdir ${{ github.workspace }}/postgresql/migrations \
|
||||||
--preservelogs \
|
--preservelogs \
|
||||||
|
|||||||
@@ -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
|
- lnd v0.16.4 breez client version https://github.com/breez/lnd/commit/3c0854adcfc924a6d759a6ee4640c41266b9f8b4
|
||||||
- bitcoind (tested with v23.0)
|
- bitcoind (tested with v23.0)
|
||||||
- bitcoin-cli (tested with v23.0)
|
- bitcoin-cli (tested with v23.0)
|
||||||
- build of lspd (go build .)
|
- build of lspd (`make release-lspd`)
|
||||||
- build of lspd cln plugin (go build -o lspd_plugin cln_plugin/cmd)
|
- 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).
|
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 \
|
--lightningdexec /full/path/to/lightningd \
|
||||||
--lndexec /full/path/to/lnd \
|
--lndexec /full/path/to/lnd \
|
||||||
--lndmobileexec /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 \
|
--lspdexec /full/path/to/lspd \
|
||||||
--lspdmigrationsdir /full/path/to/lspd/postgresql/migrations
|
--lspdmigrationsdir /full/path/to/lspd/postgresql/migrations
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ Resources:
|
|||||||
bitcoin-retry-timeout=3600
|
bitcoin-retry-timeout=3600
|
||||||
alias="${LSPName}"
|
alias="${LSPName}"
|
||||||
wallet=postgres://lightning:$LIGHTNING_DB_PASSWORD@localhost:5432/lightning
|
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
|
lsp-listen=127.0.0.1:12312
|
||||||
max-concurrent-htlcs=30
|
max-concurrent-htlcs=30
|
||||||
dev-allowdustreserve=true
|
dev-allowdustreserve=true
|
||||||
@@ -273,13 +273,10 @@ Resources:
|
|||||||
cd /opt/lspd
|
cd /opt/lspd
|
||||||
source /etc/bash.bashrc
|
source /etc/bash.bashrc
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
sudo env "PATH=$PATH" go get
|
sudo env "PATH=$PATH" make release-all
|
||||||
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 cp lspd /usr/local/bin/
|
sudo cp lspd /usr/local/bin/
|
||||||
sudo mkdir /home/lightning/.lightning/plugins
|
sudo mkdir /home/lightning/.lightning/plugins
|
||||||
sudo cp lspd_plugin /home/lightning/.lightning/plugins/
|
sudo cp lspd_cln_plugin /home/lightning/.lightning/plugins/
|
||||||
|
|
||||||
cat <<EOL | sudo tee /etc/systemd/system/lspd.service
|
cat <<EOL | sudo tee /etc/systemd/system/lspd.service
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ addr=:9735
|
|||||||
bitcoin-retry-timeout=3600
|
bitcoin-retry-timeout=3600
|
||||||
alias="${LSPName}"
|
alias="${LSPName}"
|
||||||
wallet=postgres://lightning:$LIGHTNING_DB_PASSWORD@localhost:5432/lightning
|
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
|
lsp-listen=127.0.0.1:12312
|
||||||
max-concurrent-htlcs=30
|
max-concurrent-htlcs=30
|
||||||
dev-allowdustreserve=true
|
dev-allowdustreserve=true
|
||||||
@@ -204,13 +204,10 @@ git clone https://github.com/breez/lspd.git /opt/lspd
|
|||||||
cd /opt/lspd
|
cd /opt/lspd
|
||||||
source /etc/bash.bashrc
|
source /etc/bash.bashrc
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
sudo env "PATH=$PATH" go get
|
sudo env "PATH=$PATH" make release-all
|
||||||
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 cp lspd /usr/local/bin/
|
sudo cp lspd /usr/local/bin/
|
||||||
sudo mkdir /home/lightning/.lightning/plugins
|
sudo mkdir /home/lightning/.lightning/plugins
|
||||||
sudo cp lspd_plugin /home/lightning/.lightning/plugins/
|
sudo cp lspd_cln_plugin /home/lightning/.lightning/plugins/
|
||||||
|
|
||||||
cat <<EOL | sudo tee /etc/systemd/system/lspd.service
|
cat <<EOL | sudo tee /etc/systemd/system/lspd.service
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ Needs to be built from source:
|
|||||||
```
|
```
|
||||||
git clone https://github.com/breez/lspd
|
git clone https://github.com/breez/lspd
|
||||||
cd lspd
|
cd lspd
|
||||||
go build . # compile lspd
|
make release-all
|
||||||
go build -o lspd_plugin ./cln_plugin/cmd # compile lspd cln plugin
|
|
||||||
```
|
```
|
||||||
|
This will create two binaries, `lspd` and `lspd_cln_plugin`
|
||||||
|
|
||||||
#### Postgresql
|
#### Postgresql
|
||||||
Lspd supports postgresql backend. To create database and new role to access it on your postgres server use:
|
Lspd supports postgresql backend. To create database and new role to access it on your postgres server use:
|
||||||
@@ -64,11 +64,11 @@ In order to run lspd on top of CLN, you need to run the lspd process and run cln
|
|||||||
|
|
||||||
1. Run cln with the following options set:
|
1. Run cln with the following options set:
|
||||||
- `--developer`: to allow passing the `--dev-allowdustreserve` flag
|
- `--developer`: to allow passing the `--dev-allowdustreserve` flag
|
||||||
- `--plugin=/path/to/lspd_plugin`: to use lspd as plugin
|
- `--plugin=/path/to/lspd_cln_plugin`: to use lspd as plugin
|
||||||
- `--max-concurrent-htlcs=30`: In order to use zero reserve channels on the client side, (local max_accepted_htlcs + remote max_accepted_htlcs + 2) * dust limit must be lower than the channel capacity. Reduce max-concurrent-htlcs or increase channel capacity accordingly.
|
- `--max-concurrent-htlcs=30`: In order to use zero reserve channels on the client side, (local max_accepted_htlcs + remote max_accepted_htlcs + 2) * dust limit must be lower than the channel capacity. Reduce max-concurrent-htlcs or increase channel capacity accordingly.
|
||||||
- `--dev-allowdustreserve=true`: In order to allow zero reserve on the client side (requires developer mode turned on)
|
- `--dev-allowdustreserve=true`: In order to allow zero reserve on the client side (requires developer mode turned on)
|
||||||
- `--allow-deprecated-apis=true`: lspd currently uses a deprecated api, so needs this flag set.
|
- `--allow-deprecated-apis=true`: lspd currently uses a deprecated api, so needs this flag set.
|
||||||
- `--lsp-listen=127.0.0.1:<port>`: 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:<port>`: 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
|
1. Run lspd
|
||||||
|
|
||||||
### Final step
|
### Final step
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Needs to be build from source:
|
|||||||
```
|
```
|
||||||
git clone https://github.com/breez/lspd
|
git clone https://github.com/breez/lspd
|
||||||
cd lspd
|
cd lspd
|
||||||
go build . # compile lspd
|
make release-lspd # compile lspd
|
||||||
```
|
```
|
||||||
### Postgresql
|
### Postgresql
|
||||||
Lspd supports postgresql backend. Create new database and user for lspd:
|
Lspd supports postgresql backend. Create new database and user for lspd:
|
||||||
|
|||||||
Reference in New Issue
Block a user