Skip to content

Commit 8645a6b

Browse files
Include boltz regtest as submodule (#774)
* Include boltz regtest as submodule * Address feedback
1 parent a06c6d5 commit 8645a6b

21 files changed

+35
-974
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "regtest/boltz"]
2+
path = regtest/boltz
3+
url = https://github.com/BoltzExchange/regtest.git

regtest/.env

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
COMPOSE_PROFILES=default
2-
SCRIPTS_IMAGE=boltz/scripts:latest
3-
LND_IMAGE=boltz/lnd:latest
4-
CLN_IMAGE=boltz/c-lightning-plugins:latest
5-
POSTGRES_IMAGE=postgres:14-alpine
6-
BOLTZ_BACKEND_IMAGE=boltz/boltz:latest
7-
BOLTZ_WEBAPP_IMAGE=boltz/web-app:latest
8-
BOLTZ_CLIENT_IMAGE=boltz/boltz-client:latest
9-
FOUNDRY_IMAGE=boltz/foundry:latest
10-
BITCOIN_CORE_IMAGE=boltz/bitcoin-core:latest
11-
ELEMENTS_IMAGE=boltz/elements:latest
12-
ELECTRS_IMAGE=boltz/electrs:latest
13-
ESPLORA_IMAGE=boltz/esplora:latest
14-
RIF_RELAY_IMAGE=boltz/rif-relay:latest
15-
NGINX_IMAGE=nginx:alpine
16-
NBXPLORER_IMAGE=nicolasdorier/nbxplorer:2.5.4
171
MEMPOOL_WEB_IMAGE=mempool/frontend:latest
182
MEMPOOL_API_IMAGE=mempool/backend:latest
193
MEMPOOL_DB_IMAGE=mariadb:10.5.21
20-
RT_SYNC_IMAGE=hydrayse/data-sync:latest
4+
RT_SYNC_IMAGE=danielgranhao/data-sync:latest

regtest/.gitignore

-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
.DS_Store
22
.idea/
3-
data/cln1/*
4-
!data/cln1/.gitkeep
5-
data/cln2/*
6-
!data/cln2/.gitkeep
7-
data/lnd1/*
8-
!data/lnd1/.gitkeep
9-
data/lnd2/*
10-
!data/lnd2/.gitkeep
11-
data/backend/*
12-
!data/backend/boltz.conf
13-
!data/backend/seed.dat
14-
data/elements/*
15-
!data/elements/elements.conf
16-
!data/elements/elements.cookie
17-
data/bitcoind/*
18-
!data/bitcoind/.gitkeep
19-
data/boltz-client/*
20-
!data/boltz-client/boltz.toml
21-
docker-compose.override.yml
223
data/mempool/*
234
!data/mempool/.gitkeep
245
data/mempool-db/*

regtest/README.md

+9-32
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,23 @@
11
# Regtest environment for Breez SDK - Nodeless (Liquid Implementation)
22

3-
Based on [Boltz Regtest](https://github.com/BoltzExchange/regtest)
3+
Based on [Boltz Regtest](https://github.com/BoltzExchange/regtest) (included as a submodule in `./boltz`)
44

5-
## Usage
5+
## Setup
66

7-
```bash
8-
./start.sh
9-
```
7+
To use the regtest environment, git submodules have to be initialized.
108

119
```bash
12-
./stop.sh
10+
git submodule update --init
1311
```
1412

13+
## Usage
14+
1515
```bash
16-
./restart.sh
16+
./start.sh
1717
```
1818

19-
- Web App: [http://localhost:8080](http://localhost:8080)
20-
21-
Data dirs for the services are stored in `./data` folder.
22-
23-
### Scripts container
24-
2519
```bash
26-
docker exec -it boltz-scripts bash
20+
./stop.sh
2721
```
2822

29-
- bitcoin-cli-sim-client
30-
- bitcoin-cli-sim-server
31-
- elements-cli-sim-client
32-
- elements-cli-sim-server
33-
- boltzcli-sim ([boltz-client](https://github.com/BoltzExchange/boltz-client))
34-
- lightning-cli-sim
35-
- lncli-sim
36-
37-
Since there are two lnd and two cln instances, use `lncli-sim 1` or `lightning-cli-sim 1` to interact with the first instance and `lncli-sim 2` or `lightning-cli-sim 2` to interact with the second.
38-
39-
Or alternatively, you can `source aliases.sh` to have these convenience scripts available on the host machine.
40-
41-
### Block explorers
42-
43-
[Esplora](https://github.com/Blockstream/esplora) is running for the Bitcoin Core and Elements regtest:
44-
45-
- Bitcoin: [http://localhost:4002](http://localhost:4002)
46-
- Elements: [http://localhost:4003](http://localhost:4003)
23+
See [Boltz Regtest README](https://github.com/BoltzExchange/regtest/blob/master/README.md) for more info.

regtest/aliases.sh

-20
This file was deleted.

regtest/boltz

Submodule boltz added at a03857c

regtest/data/backend-nginx/default.conf

-32
This file was deleted.

regtest/data/backend/boltz.conf

-173
This file was deleted.

regtest/data/backend/seed.dat

-1
This file was deleted.

regtest/data/bitcoind/.gitkeep

Whitespace-only changes.

regtest/data/boltz-client/boltz.toml

-55
This file was deleted.

regtest/data/cln1/.gitkeep

Whitespace-only changes.

regtest/data/cln2/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)